]> git.lyx.org Git - lyx.git/blobdiff - lib/bind/sciword.bind
more cyrillic encodings; support selection via numpad
[lyx.git] / lib / bind / sciword.bind
index e730b692dfea4d2ee9614d5e17b183a87a6203fa..0e654063466156cad59f926eb60e0509a4f9200d 100644 (file)
 # Greek for only one character. "math-greek-toggle" is the persistent Greek
 # toggle which nobody really needs when typing math.
 # Sciword mnemonic.
-\bind "C-f"    "math-insert frac"
+\bind "C-f"    "math-insert \frac"
 \bind "C-g"    "math-greek"
 
 # Do we need this?
 #\bind "C-h"   "hyphenation-point-insert"
 
 # Sciword mnemonic.
-\bind "C-i"    "math-insert int"
+\bind "C-i"    "math-insert \int"
 
 #\bind "C-j"   "------"
 
 # Numbering equations. Should perhaps simplify math-number and math-nonumber into one command since they are used in very different contexts. This and also math-macro stuff should be available in the Lyx menus!
 \bind "C-n"    "math-number"
 \bind "S-C-n" "math-nonumber"
-\bind "C-o"    "open-stuff"
+\bind "C-o"    "inset-toggle"
 
 # Insert a quote character. Do I need this?
-\bind "C-q"    "quote-insert"
+# Probably, since we need a way to get a raw quote
+\bind "C-q"    "self-insert \""
 
 # Sciword mnemonic.
-\bind "C-r"    "math-insert sqrt"
+\bind "C-r"    "math-insert \sqrt"
 
 # This combination is now a gateway to math symbols (C-s ...)
 #\bind "C-s"   "------"
@@ -92,7 +93,7 @@
 # Some of them seem to work only in math mode?
 
 \bind "C-period"       "accent-dot"
-\bind "S-C-colon"      "math-insert ddot"
+\bind "S-C-colon"      "math-insert \ddot"
 \bind "C-quoteleft"    "accent-grave"
 \bind "S-C-asciitilde" "accent-tilde"
 \bind "S-C-quotedbl"   "accent-umlaut"
 \bind "S-C-asciicircum" "accent-circumflex"
 \bind "C-equal"                "accent-vector"
 # Why is it not "accent-bar"?
-\bind "C-minus"        "math-insert bar"
+\bind "C-minus"        "math-insert \bar"
 # What is "accent-underbar"?
 #\bind "S-C-underscore"        "accent-underbar"
 
 # Math menu (unmodified)
 #
 
-\bind "M-m f"                  "math-insert frac"
-\bind "M-m i"                  "math-insert int"
-\bind "M-m o"                  "math-insert oint"
-\bind "M-m p"                  "math-insert partial"
-\bind "M-m s"                  "math-insert sqrt"
-\bind "M-m S-S"                "math-insert sum"
+\bind "M-m f"                  "math-insert \frac"
+\bind "M-m i"                  "math-insert \int"
+\bind "M-m o"                  "math-insert \oint"
+\bind "M-m p"                  "math-insert \partial"
+\bind "M-m s"                  "math-insert \sqrt"
+\bind "M-m S-S"                "math-insert \sum"
 \bind "M-m l"                  "math-limits"
 \bind "M-m n"                  "math-number"
 \bind "M-m v"                  "accent-vector"
 
 # Sciword mnemonics for math editing:
 
-\bind "M-apostrophe"   "math-insert prime"
+\bind "M-apostrophe"   "math-insert \prime"
 \bind "C-Up"           "math-insert ^"
 \bind "C-Down"         "math-insert _"
-\bind "C-s d"          "math-insert partial"
-\bind "C-s e"          "math-insert sum"
-\bind "C-s p"          "math-insert prod"
-\bind "C-s i"          "math-insert infty"
-\bind "C-s x"          "math-insert times"
+\bind "C-s d"          "math-insert \partial"
+\bind "C-s e"          "math-insert \sum"
+\bind "C-s p"          "math-insert \prod"
+\bind "C-s i"          "math-insert \infty"
+\bind "C-s x"          "math-insert \times"
 
 # My own embellishments for symbols I use often.
 
 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
 
-\bind "C-s apostrophe" "math-insert prime"
-\bind "C-s S-plus"     "math-insert dagger"
-\bind "C-s equal"      "math-insert equiv"
-\bind "M-equal"                "math-insert approx"
-\bind "M-minus"                "math-insert sim"
-\bind "C-minus"                "math-insert rightarrow"
-\bind "S-M-less"       "math-insert leq"
-\bind "S-M-greater"    "math-insert geq"
-\bind "C-s S-less"     "math-insert ll"
-\bind "C-s S-greater"  "math-insert gg"
+\bind "C-s apostrophe" "math-insert \prime"
+\bind "C-s S-plus"     "math-insert \dagger"
+\bind "C-s equal"      "math-insert \equiv"
+\bind "M-equal"                "math-insert \approx"
+\bind "M-minus"                "math-insert \sim"
+\bind "C-minus"                "math-insert \rightarrow"
+\bind "S-M-less"       "math-insert \leq"
+\bind "S-M-greater"    "math-insert \geq"
+\bind "C-s S-less"     "math-insert \ll"
+\bind "C-s S-greater"  "math-insert \gg"
 
        ############################
 ######### Almost no changes below. #########
 \bind "S-Insert"               "paste"
 \bind "S-Delete"               "cut"
 
+# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
+\bind "S-KP_Right"              "forward-select"
+\bind "S-KP_Left"               "backward-select"
+\bind "S-KP_Up"                 "up-select"
+\bind "S-KP_Down"               "down-select"
+\bind "S-C-KP_Right"            "word-forward-select"
+\bind "S-C-KP_Left"             "word-backward-select"
+\bind "S-C-KP_Up"               "paragraph-up-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-C-KP_Home"             "buffer-begin-select"
+\bind "S-C-KP_End"              "buffer-end-select"
+\bind "S-C-KP_Prior"            "buffer-begin-select"
+\bind "S-C-KP_Next"             "buffer-end-select"
+\bind "C-KP_Insert"             "copy"
+\bind "S-KP_Insert"             "paste"
+\bind "S-KP_Delete"             "cut"
+
 #
 # Edit group
 #
 \bind "Return"                 "break-paragraph"
 \bind "M-Return"               "break-paragraph-keep-layout"
 \bind "C-Return"               "break-line"
+\bind "C-S-L"                  "ligature-break-insert"
 \bind "C-space"                "protected-space-insert"
 \bind "Escape"                 "cancel"
 \bind "F9"                     "meta-prefix"
 #\bind "M-l n"                  "font-smallcaps"
 #\bind "M-l b"                  "font-bold"
 #\bind "M-l t"                  "ert-insert"
-#\bind "M-l v"                  "depth-next"
+#\bind "M-l v"                  "depth-increment"
 #\bind "M-l space"              "menu-open Layout"
 
 
 \bind "M-k t"                  "keymap-toggle"
 \bind "M-k x"                  "keymap-off"
 
-
-
 #
 # Misc menu
 #
+# this clashes with M-x so we can't use it. M-x is more
+# important (reported by Serge Winitzki <winitzki@yahoo.com>)
+# \bind "M-x c"                  "screen-recenter"
+
+\bind "M-x"                    "command-execute"
 
-\bind "M-x c"                  "screen-recenter"
 
 \bind_file latinkeys.bind