flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.34k stars 293 forks source link

Make all shortcuts customizable #590

Open ElbertCode opened 1 year ago

ElbertCode commented 1 year ago

Is your feature request related to a problem? Please describe. If you press Ctrl + ?, a window opens in which several shortcuts are listed, but they are not configurable.

Describe the solution you'd like However, there are a few shortcuts that are customisable, they are listed in the settings. Here you could also list the other shortcuts and make them configurable. To keep the settings from becoming too confusing, you could also create a submenu inside the settings in which you set all the shortcuts. Then you could even make different submenus for the categories of shortcuts (e.g. general (menus, ...), pen, text editing, ...).

Describe alternatives you've considered You could also make the shortcuts configurable right in the ctrl + ? menu, but I would personally prefer the configuration being done in the settings and the menu just showing the current state.

Additional context As for the idea with the submenu, I was inspired by the accessibility settings of the new GNOME version 44, which also divide the different categories into submenus.

valeratrades commented 3 months ago

People who want configurable shortcuts wouldn't mind a config file, so maybe it could be easier to roll this out to linux only at first, to postpone gui decisions?

Another consideration: if shortcuts are customizable, we probably want to have normal/insert or global/insert scope specification for them, so that it's possible to define say u for undo, and not have it clash with text-input mode, while having the main Ctrl-[0-9] suite still be accessible there.

If no gui is involved, I could probably make a prototype myself too, if you greenlight it.

tornikeo commented 2 months ago

In my case, I just wanted to rebind my xp-pen's keys to something that works in RNote. Since modifying RNote is not yet possible, I instead rebound the xp-pen's buttons, using OpenTabletDriver. Using xinput to do this is also possible, but much harder.

For Linux users. Here's how I solved this:

In my case, I have a XP-Pen with 4 auxiliary buttons. I wanted the first button rebound to Ctrl-Z.

Now it works!

MMachado05 commented 43 minutes ago

People who want configurable shortcuts wouldn't mind a config file, so maybe it could be easier to roll this out to linux only at first, to postpone gui decisions?

Another consideration: if shortcuts are customizable, we probably want to have normal/insert or global/insert scope specification for them, so that it's possible to define say u for undo, and not have it clash with text-input mode, while having the main Ctrl-[0-9] suite still be accessible there.

If no gui is involved, I could probably make a prototype myself too, if you greenlight it.

I don't think this is true at all. Changing default keyboard shortcuts is something anyone might do, and it becomes easier when it's just a matter of clicking some empty box, inputting the key presses you want to have trigger the action, and then waiting for them to register. I think a lot of artists who use things like Krita/Photoshop do this a ton, and they've likely never needed to look at a config file to do so.

Like, I would love to just map letters unused elsewhere (such as 'p') to turn on certain tools, like the pen, rather than have to take my hand off my tablet to use a CTRL-based shortcut.