Re: [code] [textadept] Auto-complete keys in Curses

From: Mitchell <m.att.foicica.com>
Date: Mon, 2 Sep 2013 15:16:23 -0400 (EDT)

Robert,

On Sat, 31 Aug 2013, Robert Gieseke wrote:

> Hi,
>
> I noted an inconsistency between the definition and documentation for the
> complete word short cut of the curses version. Don't know which one is
> supposed to be the right one.
>
> l. 39
> -- Ctrl+Enter |^⎋ |M-Enter^(†) |Complete word
>
> and
>
> l.392
> keys[not OSX and (not CURSES and 'c\n' or 'cmj')
> or 'cesc'] = m_editing.autocomplete_word
> if CURSES and WIN32 then keys['c\r'] = keys['cmj'] end

On non-Win32 platforms, Enter is ^J, so M-Enter is M-^J, or cmj. On Win32,
it is the more expected 'c\r' and thus mapped to cmj, the latter of which
I don't think is producable on Win32...

You can always experiment with curses key representations by uncommenting
the "if CURSES then gui.statusbar_text = ..." line in `core/keys.lua`.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 02 Sep 2013 - 15:16:23 EDT

This archive was generated by hypermail 2.2.0 : Tue 03 Sep 2013 - 06:41:38 EDT