Jürgen has done some work to make the search shortcuts work better, and it's led to the question how to bind word-find-backwards. The usual shortcut for that (on non-Mac machines) is S-F3 (with F3 being word-find). On LyX, that is taken by bookmark-save 3; similarly S-Fn (n a number) always sets a bookmark.
I propose to change bookmark-save n to M-n; this goes better with C-n, which is what is bound to bookmark-goto n. That would free up S-F3 for find-next-backwards, and also free up the other S-Fn. I also thought about using "C-S-1", e.g., but that doesn't work, because S-1 types "!" here, so it actually has to be: \bind "S-C-exclam" "bookmark-save 1" \bind "S-C-at" "bookmark-save 2" \bind "C-S-numbersign" "bookmark-save 3" \bind "C-S-dollar" "bookmark-save 4" \bind "C-S-percent" "bookmark-save 5" \bind "C-S-asciicircum" "bookmark-save 6" \bind "C-S-ampersand" "bookmark-save 7" \bind "C-S-asterisk" "bookmark-save 8" \bind "C-S-parenleft" "bookmark-save 9" to work with my keyboard. I assume that would lead to chaos with non-English keyboards. Riki
>From 7c30ab72debad77fe879867b1ef7f2564d72e6d7 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck <rikih...@lyx.org> Date: Sat, 13 Feb 2021 11:23:38 -0500 Subject: [PATCH] Change bookmark shortcuts, freeing up S-F3 for word-find-backwards. --- lib/bind/cua.bind | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/bind/cua.bind b/lib/bind/cua.bind index fc776c2dac..2b5630f1b4 100644 --- a/lib/bind/cua.bind +++ b/lib/bind/cua.bind @@ -107,7 +107,7 @@ Format 5 #bind "C-F1" "help-context" # Not yet implemented! \bind "F2" "buffer-write force" \bind "F3" "word-find" -\bind "C-F3" "word-find-backward" +\bind "S-F3" "word-find-backward" \bind "C-F4" "buffer-close" \bind "M-F4" "lyx-quit" \bind "F5" "screen-recenter" @@ -199,24 +199,24 @@ Format 5 # bookmarks # -\bind "C-~S-1" "bookmark-goto 1" -\bind "C-~S-2" "bookmark-goto 2" -\bind "C-~S-3" "bookmark-goto 3" -\bind "C-~S-4" "bookmark-goto 4" -\bind "C-~S-5" "bookmark-goto 5" -\bind "C-~S-6" "bookmark-goto 6" -\bind "C-~S-7" "bookmark-goto 7" -\bind "C-~S-8" "bookmark-goto 8" -\bind "C-~S-9" "bookmark-goto 9" -\bind "S-F1" "bookmark-save 1" -\bind "S-F2" "bookmark-save 2" -\bind "S-F3" "bookmark-save 3" -\bind "S-F4" "bookmark-save 4" -\bind "S-F5" "bookmark-save 5" -\bind "S-F6" "bookmark-save 6" -\bind "S-F7" "bookmark-save 7" -\bind "S-F8" "bookmark-save 8" -\bind "S-F9" "bookmark-save 9" +\bind "C-1" "bookmark-goto 1" +\bind "C-2" "bookmark-goto 2" +\bind "C-3" "bookmark-goto 3" +\bind "C-4" "bookmark-goto 4" +\bind "C-5" "bookmark-goto 5" +\bind "C-6" "bookmark-goto 6" +\bind "C-7" "bookmark-goto 7" +\bind "C-8" "bookmark-goto 8" +\bind "C-9" "bookmark-goto 9" +\bind "S-C-exclam" "bookmark-save 1" +\bind "S-C-at" "bookmark-save 2" +\bind "C-S-numbersign" "bookmark-save 3" +\bind "C-S-dollar" "bookmark-save 4" +\bind "C-S-percent" "bookmark-save 5" +\bind "C-S-asciicircum" "bookmark-save 6" +\bind "C-S-ampersand" "bookmark-save 7" +\bind "C-S-asterisk" "bookmark-save 8" +\bind "C-S-parenleft" "bookmark-save 9" # -- 2.29.2
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel