missing functions from api keybindings
any chance you can add support for these http://www.geany.org/manual/reference/keybindings_8h.html in particular i am after the keybindings_send_command option so i can trigure build and compile from my plugin.
I'm writing a geanypy plugin to support Abc music format. Currently, I trigger the derivation of .ps, .svg and .pdf files - and the display of the .svg by hooking into the file save action. This approach is maybe necessary for triggering the .svg display, but I might be better to treat the abcm2ps commands as 'quasi-compilers', in order to cheaply latch onto the easy regexp-driven error highlighting.
The ability to trigger 'regular' 'compile' actions from a geanypy plugin would help me to solve this conundrum neatly.
I hasten to add, this is not a 'show stopper' for me; more a question of 'the icing on the cake'.
BTW, I can post my work to date on this plugin ('abc_craft.py') if it would interest others but it would need to have a"work in progress" label. I'm attaching a screenshot; not sure how it'll look - apologies in advance!
Larry Myerscough - aka papahippo

Hi Larry,
It looks the functionality is exposed in Geany's C plugin API, so it should be do able. If you can ping/remind me towards the end of March, I'll have a look at wrapping it for GeanyPy.
About sharing your work, I think it's about time I come up with a way to have a list of people's GeanyPy plugins, whether it be a text file listing in the source or maybe the Github wiki or something. Your suggestions are welcome on ways to do this.
BTW, cool plugin in the screenshot, it looks like the musical version of my Markdown plugin for Geany :)
P.S. Don't hesitate to open a new "Issue", it's kind of harder to track when you add to a semi-unrelated one (but not a big deal).
Cheers
@olymk2 BTW, a way to expose the keybindings has finally been devised (copying how GeanyLua does it), it's just "a mere matter of programming" now :) I'll update this Issue once it's eventually implemented (no promises on when yet though, sorry).
@codebrainz thats great news, as for list of plugins mine are hosted here, https://launchpad.net/~oly most are packaged, i also have a ppa for geanypy there :)
Hi Oliver,
Just looked at your webkit plugin source; looks quite mature and professional. How it is presented on launchpad also looks like something I could learn from. I haven't downloaded and tried it yet. (I'm currently working on the more ordinary aspects of my abc support - compile and make settings etc.)
Larry Myerscough
On 03/01/2013 10:54 AM, Oliver Marks wrote:
@codebrainz https://github.com/codebrainz thats great news, as for list of plugins mine are hosted here, https://launchpad.net/~oly https://launchpad.net/%7Eoly most are packaged, i also have a ppa for geanypy there :)
— Reply to this email directly or view it on GitHub https://github.com/codebrainz/geanypy/issues/2#issuecomment-14280544.
Dont know about that i kind of knocked it up quickly as a test on how todo it, i think it works to some degree and i managed to hack the inspect window into another window which is quite handy. but i plan to use it as a based for another plugin :)
Any progress on keybindings? I took bindings.c from the keybindings branch, pulled it into master, then added support for send_command (from geanylua). It all works OK although it doesn't clean up very well. Any reason other than the cleanup that this wouldn't be acceptable?
@gtjoseph there is a new plugin API coming (intended to be in 1.26) which makes Python and other plugins first class citizens just like C/C++ ones, so they can use the standard plugin keybindings mechanism. As this will obsolete geanypy in its current form its unlikely that any significant changes will be made to it.
Ah. Well I posted a pull request anyway. I was using geanylua for custom keybinding stuff but it's broken with Lua 5.2+.
Thanks
@elextr Do you have a reference to the new plugin api or 1.26? Can't seem to find it anywhere.
https://github.com/geany/geany/pull/469 is the predecessor change, I think the Python specific stuff is unavailable ATM until 469 has been merged.