[Geany-Users] SnippetsKeybindings

Geoff Kaniuk geoff at xxxxx
Sun Apr 29 11:56:15 UTC 2018

Thank you Lex for your quick response.

The  Help->Keyboard Shortcuts is useful, but rather I was looking for 
the inverse: i.e given a key press, what does it do? In the meantime I 
remembered that all the keybindigs are stored locally in
keybindings.conf, and I have now created an index from that.

It shows that some of the standard non-alphanumeric keys on the keyboard 
have not need used such as (`), ([) and certainly <Ctrl>[ does produce 
my brace_inline.

Experimenting with keybindings->change shows that <Primary><Shift>~
can be used as a keybinding (for build options for example). However the 
snippet brace_inline=<Ctrl><Shift>~ failed.

Are shift keys not allowed in keybinding snippets?


33 Ashbury Close, Cambridge CB1 3RW 01223 710582

On 29/04/18 01:04, Lex Trotman wrote:
> On 29 April 2018 at 02:05, Geoff Kaniuk <geoff at kaniuk.co.uk> wrote:
>> Hello Geany List,
>> I am trying to create a shortcut key to insert an in-line block. Ideally
>> what I would like is to type Ctrl+KEY which then produces { | }. Searching
>> through the Keybindings documentation in the Geany manual, I found that
>> KEY=4 works, but no other alpha key works.
>> I have made the following additions to my snippets.conf:
>> [Special]
>> brace_inline={ %cursor% }
>> [Keybindings]
>> brace_inline=<Ctrl>4
>> block_cursor=<Ctrl>8
>> [C++]
>> bi_=%brace_inline%
>> The <Ctrl>4 binding works.
>> The <Ctrl>8 binding works
>> The bi_TAB snippet works.
>> It took quite a bit of experimenting and searching to discover the Ctrl+4
>> solution.  I really would like to get this under my belt as key binding in
>> snippets is a really very useful feature.  My questions are:
>> Is there somewhere an index of which keys have been allocated?
> Help->Keyboard Shortcuts?
>> Which keys I can use in [keybindings]
> Try it in the keybindings change sub-dialog, you press the sequence
> and it tells you the spelling.
>> Many thanks for any hints as to where I should be looking.
>> --
>> Geoff
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list