commit 6351dab3e6afebd7bc73edc0c21a36bdb309ae3a
parent 3ef6399d56de0552e8ad21fd1a0e4458136a28b2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 24 Mar 2024 12:28:35 +0100
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.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -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);