Skip to content

missing functions from api keybindings #2

Open

Description

@olymk2

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.

Activity

  1. papahippo commented on Feb 28, 2013

    @papahippo

    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

    Screenshot from 2013-02-28 11:32:14

  2. codebrainz commented on Mar 1, 2013

    @codebrainz
    Owner

    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

  3. codebrainz commented on Mar 1, 2013

    @codebrainz
    Owner

    @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).

  4. olymk2 commented on Mar 1, 2013

    @olymk2
    ContributorAuthor

    @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 :)

  5. papahippo commented on Mar 1, 2013

    @papahippo

    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
    #2 (comment).

  6. olymk2 commented on Mar 3, 2013

    @olymk2
    ContributorAuthor

    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 :)

  7. gtjoseph commented on Aug 15, 2015

    @gtjoseph

    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?

  8. elextr commented on Aug 18, 2015

    @elextr
    Collaborator

    @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.

  9. gtjoseph commented on Aug 18, 2015

    @gtjoseph

    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

  10. gtjoseph commented on Aug 18, 2015

    @gtjoseph

    @elextr Do you have a reference to the new plugin api or 1.26? Can't seem to find it anywhere.

  11. elextr commented on Aug 18, 2015

    @elextr
    Collaborator

    geany/geany#469 is the predecessor change, I think the Python specific stuff is unavailable ATM until 469 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions