New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added keybindings for custom commands 4-9 #858
Conversation
Could you point me to some guide or info on how to update the docs? |
|
Just to make it clear: you don't need to build the HTML from geany.txt for this PR. Just modify the doc/geany.txt file. |
It would be good if you could fix the merge conflict as well. |
Apart from the missing manual update and merge conflict (easy to fix), untested but looks good. |
Hum, however, do we want to have default bindings for these? Remember that a binding in Geany overrides one in a plugin, so if a user already had mapped one of those to a plugin it will override the user choice. (AFAIK) |
https://github.com/b4n/geany/tree/tsahlin/more-cc-kb rebases this on top of matser (fixing the conflict), and updates the documentation |
Since we recommend plugins not set default bindings we probably should not trample all over users existing bindings with Geany itself. That of course means we can never add any default bindings to Geany evermore. |
It seems like a bug (if true) that adding new default keybinding overrides those set explicitly by the user, for plugins. We should be able to add new keybindings and they should only have effect if the user hasn't customized them like they does for core keybindings. @b4n any idea where/why this bug exists for the case of plugin keybindings? |
@codebrainz I believe its because the Geany keybindings are searched before the plugin ones. |
If you mean it searches default Geany keybindings before customized plugin ones, then yeah, that's definitively a bug then. It should do:
One could argue whether core or plugin keybindings should be used first, but nothing the user has customized (ie. the stuff in home dir) should ever be overridden by system defaults, IMO. |
IIRC it doesn't differentiate between customised and default after startup and loading of the config files. |
Apart from the discussion about Geany's handling of core and plugin keybindings which seem to be an issue on its own, I'd like to get this one ready. @tsahlin would you mind incoporating b4n's changes (resolved merge conflict & doc update) into this PR and remove the default values for the keybindings? Then we could merge this PR. |
Sorry to say I won't have any time to fix this for another 6 weeks. I'm also really a newbie at git/github so it's not straightforward. If anyone is willing and can spare the time, feel free to modify the PR to better fit the project. |
@b4n could you just merge your branch with the resolved conflicts and remove the defaults for the new keybindings? I guess this would least work and we would get this one done. |
@eht16 done |
Added additional keybindings so that one can have up to 9 custom editor commands.
Split from previous pull request #792