Re: Key bindings

From: mitchell <mforal.n....at.gmail.com>
Date: Wed, 27 Jan 2010 06:47:25 -0800 (PST)

Rob,

> With a German keyboard layout the default keybindings for "enclose
> in"/"select in" do not work in some cases, since the shift key is
> needed (or not): { without shift key, single quotes with shift key.
> (I'm using Textadept on Linux.)
>
> I can of course change the keybindings to get it working:
> keys.ac = { -- enClose in...
>     ["s'"]  = { m_editing.enclose, 'sng_quotes' },
>     ['{'] = { m_editing.enclose, 'braces'     },
>   }
>
> Since shift is a modifier key, the "s" apparently can't be left out.
> Is there another workaround? This might be confusing for new users
> with non-US keyboard layouts.

If you could maybe compile a list of changes, they could probably be
added to the default key_commands.lua shipped with ta.

> Another question: Is it possible to change the key bindings in a file
> of my .textadept folder or do I have to change them in core/ext/
> key_commands.lua?

You may have your own key_commands.lua in ~/.textadept. Keep in mind
if it exists, the key_commands.lua in core/ext/ will NOT be loaded
first.

Mitchell

>
> Help would be much appreciated,
> Robert
Received on Wed 27 Jan 2010 - 09:47:25 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:38:56 EST