# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
-# author Lars Gullik Bjønnes
+# author Lars Gullik Bjønnes
# author Jean-Marc Lasgouttes
# author Angus Leeming
# author John Levon
# author Allan Rae
# author Dekel Tsur
-# author Jürgen Vigna
+# author Jürgen Vigna
# author Andrew Zabolotny
# Full author contact details are available in file CREDITS.
#
# Happy tuning!
+Format 4
+
\bind "C-~S-at" "mark-on"
\bind "C-a" "line-begin"
\bind "C-b" "char-backward"
#bind "C-c" "------" # see end of file
-\bind "C-d" "delete-forward"
+\bind "C-d" "char-delete-forward"
\bind "C-e" "line-end"
\bind "C-f" "char-forward"
\bind "C-g" "cancel"
# help in emacs
-\bind "C-h" "hyphenation-point-insert"
-\bind "C-i" "hfill-insert"
+\bind "C-h" "specialchar-insert hyphenation"
+\bind "C-M-minus" "specialchar-insert nobreakdash"
+\bind "C-i" "space-insert hfill"
#bind "C-j" "------"
\bind "C-k" "line-delete-forward"
\bind "C-l" "screen-recenter"
\bind "C-m" "mark-toggle"
\bind "C-n" "down"
-\bind "C-o" "next-inset-toggle"
+\bind "C-o" "inset-toggle"
\bind "C-p" "up"
# this is "quoted-insert" a total different meaning from "quote-insert"
\bind "C-q" "self-insert \""
#bind "C-r" "------"
\bind "C-s" "dialog-show findreplace"
-\bind "M-~S-percent" "dialog-show findreplace"
+\bind "C-S-s" "dialog-show findreplaceadv"
+\bind "M-~S-percent" "dialog-show findreplaceadv"
# should be "chars-transpose" (swaps two chars)
#bind "C-t" "------"
#\bind "C-x w" "buffer-write-as"
\bind "C-x bracketleft" "screen-up"
\bind "C-x bracketright" "screen-down"
-\bind "C-x quoteleft" "error-next"
\bind "C-x C-a" "buffer-auto-save"
\bind "C-x C-b" "menu-open view" # list all buffers
\bind "C-x C-c" "lyx-quit"
# Motion group
#
-\bind "M-Up" "paragraph-move-up"
-\bind "M-Down" "paragraph-move-down"
+\bind "M-Up" "command-alternatives outline-up; paragraph-move-up; tabular-feature move-row-up"
+\bind "M-Down" "command-alternatives outline-down; paragraph-move-down; tabular-feature move-row-down"
+\bind "M-Right" "tabular-feature move-column-right"
+\bind "M-Left" "tabular-feature move-column-left"
\bind "C-Right" "word-right"
\bind "C-Left" "word-left"
\bind "C-Up" "paragraph-up"
\bind "C-Delete" "word-delete-forward"
\bind "M-d" "word-delete-forward"
\bind "C-BackSpace" "word-delete-backward"
-\bind "M-Return" "break-paragraph inverse"
-\bind "C-Return" "break-line"
-\bind "C-S-L" "ligature-break-insert"
-\bind "C-space" "space-insert protected"
+\bind "M-Return" "paragraph-break inverse"
+\bind "C-Return" "newline-insert newline"
+\bind "C-S-Return" "newline-insert linebreak"
+\bind "C-S-L" "specialchar-insert ligature-break"
+\bind "C-space" "command-alternatives math-space ; space-insert protected"
+\bind "nobreakspace" "space-insert protected"
\bind "C-M-space" "space-insert normal"
\bind "S-C-space" "space-insert thin"
-\bind "C-period" "end-of-sentence-period-insert"
-\bind "M-period" "dots-insert"
+\bind "M-~S-slash" "specialchar-insert slash"
+\bind "C-period" "specialchar-insert end-of-sentence"
+\bind "M-period" "specialchar-insert dots"
\bind "M-w" "copy"
\bind "Escape" "meta-prefix"
+\bind "M-u" "word-upcase partial"
+\bind "M-l" "word-lowcase partial"
+# This conflicts with the character menu.
+#bind "M-c" "word-capitalize partial"
# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
\bind "S-KP_Right" "char-right-select"
\bind "S-C-KP_Down" "paragraph-down-select"
\bind "S-KP_Home" "line-begin-select"
\bind "S-KP_End" "line-end-select"
-\bind "S-KP_Prior" "screen-up-select"
-\bind "S-KP_Next" "screen-down-select"
+\bind "S-KP_Prior" "buffer-move-previous"
+\bind "S-KP_Next" "buffer-move-next"
\bind "S-C-KP_Home" "buffer-begin-select"
\bind "S-C-KP_End" "buffer-end-select"
\bind "S-C-KP_Prior" "buffer-begin-select"
# similar here.
##
\bind "C-c C-l" "dialog-show latexlog" # show warning log
-\bind "C-c C-o" "error-next"
\bind "C-c C-v" "buffer-chktex" # validate
\bind "C-z space" "drop-layouts-choice"
\bind "C-c ~S-asciitilde" "math-mode"
-\bind "C-c quoteleft" "error-next"
-
\bind "C-c C-s 0" "layout Standard"
\bind "C-c C-s 1" "layout Chapter"
\bind "C-c C-s 2" "layout Section"
\bind "C-c percent" "layout Comment"
-\bind "C-c Return" "break-paragraph inverse"
+\bind "C-c Return" "paragraph-break inverse"
#
## End AucTeX
#
## Start TeX mode, some overlap with AucTeX mode
#
\bind "C-c C-b" "buffer-update dvi"
-\bind "C-c C-p" "dialog-show print"
\bind "C-c C-r" "buffer-update dvi" # tex region
#
## End TeX mode
\bind_file latinkeys.bind
\bind_file cyrkeys.bind
\bind_file greekkeys.bind
+
+# the following bindings have to be adapted w.r.t. menus.bind
+\bind "M-c Down" "word-lowcase partial"
+\bind "M-c Up" "word-upcase partial"
+\bind "M-c Right" "word-capitalize partial"