mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
bindings: let M-" place/remove an anchor, and let M-' jump to one
On my current laptop, typing <Alt+Insert> is awkward because it requires holding down <Fn> too. Also, M-" and M-' are in the normal symbols area of the keyboard, which makes them easier to type and more discoverable. Furthermore, being next to M-: and M-; (on a US keyboard) reinforces the meanings: start/place, stop/remove, run/goto.
This commit is contained in:
parent
3ef6399d56
commit
6351dab3e6
@ -1316,6 +1316,8 @@ void shortcut_init(void)
|
||||
add_to_sclist(MMAIN, "M-Ins", ALT_INSERT, put_or_lift_anchor, 0);
|
||||
add_to_sclist(MMAIN, "M-PgUp", ALT_PAGEUP, to_prev_anchor, 0);
|
||||
add_to_sclist(MMAIN, "M-PgDn", ALT_PAGEDOWN, to_next_anchor, 0);
|
||||
add_to_sclist(MMAIN, "M-\"", 0, put_or_lift_anchor, 0);
|
||||
add_to_sclist(MMAIN, "M-'", 0, to_next_anchor, 0);
|
||||
#endif
|
||||
#ifdef ENABLE_WORDCOMPLETION
|
||||
add_to_sclist(MMAIN, "^]", 0, complete_a_word, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user