mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
Move default comment toggle binding to pound
This is a common rebind in both the helix and kakoune community. Some reasons this is desirable: * Pound is a common symbol for commenting in many languages * Pound is not bound to anything else, and it is not obvious what else it would be bound to * `C-c` should really be reserved for cancelling subshells from `:sh`, `|` and friends Most sensible alternatives are taken: * `/` is search * `*` adds selection to search register * `-` is not common, and though not currently taken, may make sense as the opposite of `_`, for another PR to implement. * `c` change selection * `A-c` change selection w/o yank * `C` copy selection down * `A-C` copy selection up
This commit is contained in:
parent
03612174ee
commit
8afdb30de3
@ -192,8 +192,7 @@ pub fn default() -> HashMap<Mode, Keymap> {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// move under <space>c
|
"#" => toggle_comments,
|
||||||
"C-c" => toggle_comments,
|
|
||||||
|
|
||||||
// z family for save/restore/combine from/to sels from register
|
// z family for save/restore/combine from/to sels from register
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user