[Geany] Key bindings for snippets

Frank Lanitz frank at xxxxx
Mon May 31 09:53:57 UTC 2010


On Sat, 29 May 2010 20:07:37 +0200, Enrico Tröger
<enrico.troeger at uvena.de> wrote:
> On Wed, 26 May 2010 12:52:52 +0000, Frank wrote:
> 
>> Hi,
>>
>> On Wed, 26 May 2010 13:52:22 +0300, Андрей Ковтун <kovtunos at yandex.ru>
>> wrote:
>>
>> > can I set the key bindings for certain snippet? For example, when I
>> > press Ctrl+B selected text wrapped with tag <strong>, and when I
>> > press Ctrl+Alt+1 with tag <h1> etc.
>>
>> I think this can be done in a nice way with xmltagging function we
>> added a couple of weeks ago to addons plugin. Right now you can set up
>> keybinding which is opening and dialog where you can insert the tag
>> you like to add around the selection. Of course there is some room to
>> imporve but this is a start :)
>>
>> Currently its only available inside svn version of geany-plugins
>> combined plugins project, but with upcoming 0.19 release in near
>> future it will be also part of official release.
> 
> But for snippets directly there are no keybinding mappings available.
> Maybe this could be implemented as a plugin if someone wants to do it.

you mean a keybinding/function, which is taking the selected text and
using this as input for e.g. %cursor (or maybe some new place holder)
from snippets.conf? Would be cool. 

Thanks, 
Frank 




More information about the Users mailing list