[Geany-devel] Keybindings for GeanyPy

Lex Trotman elextr at xxxxx
Fri Aug 5 22:33:14 UTC 2011


On 6 August 2011 04:26, Dimitar Zhekov <dimitar.zhekov at gmail.com> wrote:
> On Thu, 04 Aug 2011 20:01:23 -0700
> Matthew Brush <mbrush at codebrainz.ca> wrote:
>
>> I'm seeking ideas/advice for how I can implement keybindings for Python
>> plugins[1].  [...] I'm at the design state right now, so if anyone has
>> any ideas for how I should implement this, using either Geany's plugin
>> API, PyGTK directly, or something else [...]
>
> I'm not sure what you're trying to do, but geanyextrasel attaches itself
> to main window's key-press and defines it's own keys. Their priority is
> less than the keybindings of Geany IIRC. Hope that helps.

The priority is a result of the fact that Geany binds to the signal first.

But plugins don't need to bind to the key event signal themselves,
they can add themselves to Geany keybindings (see for eg addons) and
its a nicer user experience if all the keybindings are defined in one
place.

Cheers
Lex

>
> --
> E-gards: Jimmy
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>



More information about the Devel mailing list