feat: remap "add cursor above" to D instead of Alt-C #12072
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There have been several discussions that people would prefer if the editor did not make any default Alt-* keymappings:
So this PR is going to help a little bit with that.
I remapped
Alt-C
(copy_selection_on_prev_line
) toD
because it adds a cursor above, andD
is above theC
key.Alt-C
requires 3 keystrokes (alt, shift, C) and is uncomfortable to typeTo me, it makes sense that
D
andC
will be together. TheC
which adds a cursor below, is lower. AndD
which adds a cursor above, is aboveC
. I think there is logic to that.D is also not mapped to anything at the moment.
This is just my opinion and if you have a better place to put this keymap then please let me know! I feel like the alt-* keymappings should be gradually removed