Feature request: configurable keyboard shortcuts #1406
Replies: 6 comments
-
@inventhouse Hi, thank you for this feedback. Just to let you know, we have a "rule of three" when it comes to features. If three people have independently asked for it, then we look to implement it. This is usually done via a "spike" PR around which discussion and input can form before we finalise the implementation. This is the first time anyone has asked for customisation of key bindings. Just so you have some context:
However, to counter-act that third point, we have the rule of three. ;-) I hope this makes sense... and please don't think I'm saying "nope". I'm just giving a bit of context so you know we're not pushing back... just trying to keep Mu simple and beginner focused (but within a framework for making features happen, when folks let us know they need 'em). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed explanation; I agree that keeping a "beginner" focus is good. As for points two and three: you're right, I don't use Mu as my primary editor (hence being used to other shortcuts 😉 ) but there are some things is really darn convenient for - serial console, plotter, and making small edits right on the device like adding or commenting out log lines and such. I tried to hack my copy to change the shortcut but I'm really unfamiliar with Qt and wasn't able to get |
Beta Was this translation helpful? Give feedback.
-
Perhaps you need to escape the "/" as |
Beta Was this translation helpful? Give feedback.
-
Nope, |
Beta Was this translation helpful? Give feedback.
-
Investigated a bit. It seems that the editor component, QScintilla, is handling CTRL-/ by itself. My observation is that hitting that key combination moves the cursor to the previous word (or something similar). Here's a minimal code sample that illustrates the behaviour:
Unfortunately, the docs for QScintilla weren't helpful enough in guiding me through the possibility of disabling what I imagine is an out-of-the-box key configuration. PS: Tested on macOS, but I presume behaviour will be equivalent on other platforms. |
Beta Was this translation helpful? Give feedback.
-
Interesting! I'm also on macOS and, yes, I see the back-by-word behavior, but didn't know why setting a specific key combo didn't override the built-in one, so I assumed I wasn't doing it right 🤷♂ Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm used to
Cmd-/
to toggle commenting selected lines, but Mu hard-codes the keyboard shortcut for that instead of letting me set it:mu/mu/app.py
Line 154 in 4344548
I would like to be able to configure my keyboard shortcuts, either in a preferences editor or in a configuration file of some kind.
Beta Was this translation helpful? Give feedback.
All reactions