Exploring the design space of keyboard shortcuts #700
Replies: 5 comments 8 replies
-
A feedback from a Discord user about clashing keybindings prompted this discussion. |
Beta Was this translation helpful? Give feedback.
-
I haven’t been using Dendron long enough for any keybinding to have become a reflex yet, so I wouldn’t mind if they all changed! I don’t know what the correct technical term is, but some key binding in VS Code are “melodies” rather than “chords”. By “chord” I mean all keys depressed simultaneously, e.g. “cmd-shift-n” for new window; and by “melody” I mean a key combination followed by another, so Zen mode is triggered by “cmd-k” followed by “z”. On my VS Code “alt-d” (for Dendron) is currently free. So we could use “melodies” starting with “alt-d” followed by another key for a whole slew of Dendron commands. |
Beta Was this translation helpful? Give feedback.
-
Came over from #1587. I have a clash with cmd + shift + down which triggers lookup. Typically most people use cmd+shift+down to select current line till end of file |
Beta Was this translation helpful? Give feedback.
-
I think a key question is are you interested in supporting non developer users? If yes, you likely have 2 groups of users. Those who use VSCode & Dendron exclusively for notes, and those who use it for development + Dendron. We could call them Users and Developers. For example, I've been recommending the digital garden concept to a few people recently. Most of the non developers I spoke to preferred the visual appearance and relative simplicity (compared to VS+Dendron) of logseq. While I (developer) prefer the flexibility and power of Dendron. Personally, I'm considering using VSCodium for Dendron exclusively, and VSCode for my development. That would put me in both categories in some way. Users - Likely expect simple to remember shortcuts that are similar to other programs. So only chords. They also likely don't care if you overwrite default actions in VSCode, because they don't use VSCode, they only use Dendron. Developers - Likely already have a lot of shortcuts configured and don't want Dendron to compete with them. In this case, using a melody approach would make a lot of sense. One activation command to remember for dendron, then shortcuts which are more easily remembered because they're somewhat mnemonic. [Sidenote]: One other note to add, GitHub uses multi key shortcuts on their web ui. In an ideal world, Dendron would support both. During install / setup, ask users if they want to overwrite default shortcuts, or if they prefer the melody approach. |
Beta Was this translation helpful? Give feedback.
-
I wrote earlier that I think that applications should "stay away" from global OS bindings. Another area I that should not be overridden lightly are default VSCode bindings. One such example is how Dendron has bound I think that using sequence keybindings with a separate namespace (prefix) for the extension is a good way to go. Alt/Opt+D was suggested earlier. Coming from vim, it is not uncommon to allow the user to specify a plugin leader key which is then used as the keyboard binding prefix for all plugin key bindings. I'm not sure if that is possible in VSCode, but that would allow the user to choose a leader keybinding that is available to them. I e.g. use the PlantUML extension that adds a binding to Alt/Opt+D, so if Dendron had had a key sequence system with a customizable leader binding, I could have opted to use another keyboard binding as my Dendron prefix if the default one is already taken in my setup. |
Beta Was this translation helpful? Give feedback.
-
If you had any difficulties getting used to the keyboard shortcuts of Dendron commands, feel free to express it here as they are valuable insights to how we want to move forward with shortcuts. More general thoughts on this matter is of course welcome as well :)
Beta Was this translation helpful? Give feedback.
All reactions