It would be nice if you could add keyboard shortcut for inserting Codeblock, it would eventually speed up writing things.
I also hope so
You can define your own keybindings for any menu item if you like. Please check "Changing accelerators" in "Key Bindings" manual page.
hmmm .. can you be more specific how to do that? I see "Key Bindings" manual, but I don't see how to add new key binding to it; what to edit, how to do that .. thank you
Quote from that page
Changing accelerators
Gtk+ implements a feature that allows you to change accelerators (keybindings for menu items) interactively. To use this feature you need to either enable this setting in the settings manager of you desktop environment or add the line:
gtk-can-change-accels = 1
to ~/.gtkrc-2.0 . Zim will remember any changes. If you ever want to reset to the default bindings just remove the "accelmap" file from ~/.config/zim/.
It was enough for me to google missing bits and set shortcuts that I need. Would you care to make pull request with clarification for this manual section?
@Self-Perfection I can read this but when editing "accelmap" what to insert there, I cannot find binding for Insert code block
(gtk_accel_path "<Actions>/?????/????" "<Alt>b")
The easiest way is to enable gtk-can-change-accels. If that is enabled it is enough to hover mouse cursor over menu item that needs changing and press desired hotkey
For manual editing you need to set accel for "<Actions>/MainWindowExtension/insert_sourceview"
How can this be achieved on Windows?
Most helpful comment
How can this be achieved on Windows?