Open Odonno opened 4 months ago
I'm absolutely up for adding additional shortcuts and adopting the vscode keymap, however I think it's important for cmd+K to remain working within editors (and everywhere else throughout the app), even if this means we have to drop or preferably remap certain shortcuts
I can understand the point. Better stick with consistency. But it just feels frustrating not to be able to use the common comment/uncomment key bindings, even more frustrating when it opens the command palette.
One idea could be to offer a remapping of key bindings. Kind of what video games offers. But that seems too much effort and code for such a feature.
Another idea that can be simple to do could be to disable command palette (via feature flag) so that we can enable the comment key bindings. It would be trading a feature for another. Not liking it much though.
I'm satisfied if we keep commenting on cmd + /
so we can leave cmd + K
accessible from editors
Improve experience by adding vscode keymap. At least for me, it make
CTRL+K+C
andCTRL+K+U
works.vscode-keymap
plugin to add additional keymaps https://github.com/replit/codemirror-vscode-keymapmod+K
hotkey confitionally (disabled when in-editor) to be able to useCTRL+K+C
andCTRL+K+U
. Search window still works outside the query editorhasEditorFocus
andsetHasEditorFocus
in theInterfaceStore
Note: there is a warning to set
defaultKeymap: false
. I did not make this change and still to work as-is. I am note sure if anything is broken.