]> git.lyx.org Git - lyx.git/blobdiff - lib/bind/sciword.bind
small fixes
[lyx.git] / lib / bind / sciword.bind
index 844737929fc5f5d5e19c0822935376eb546f37fd..6a6c504c0189f2f4f1550d5e591ae08eac0cdd91 100644 (file)
@@ -1,11 +1,11 @@
 # This file is part of LyX
 
 # LyX keyboard definitions similar to those of Scientific Word.
-# Prepared by Serge Winitzki. Version 1.0
+# Prepared by Serge Winitzki. Version 1.2
 
-# Tip: to find how LyX calls a pressed key, look at the status bar after
-# entering a non-existent key combination. E.g. want to find how "Ctrl-&" is
-# referenced, so press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
+# Tip: to find the "LyX name" for a key, look at the status bar after
+# typing some non-existent key combination. E.g. to find how "Ctrl-&" is
+# referenced, press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
 
 #\bind "C-a"                    "------"
 #\bind "C-b"                    "font-bold"
@@ -25,7 +25,7 @@
 \bind "C-f"    "math-insert frac"
 \bind "C-g"    "math-greek"
 
-# Do I need this?
+# Do we need this?
 #\bind "C-h"   "hyphenation-point-insert"
 
 # Sciword mnemonic.
 
 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
 \bind "C-m"    "math-mode"
-#\bind "C-n"   "------"
-\bind "C-o"    "open-stuff"
-\bind "C-p"    "font-code"
+# C-n is numbering equations now. Sciword had "C-Tab" mnemonic which conflicts with many things.
+# 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"    "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"
 
 # This combination is now a gateway to math symbols (C-s ...)
-#\bind "C-s"   "font-smallcaps"
+#\bind "C-s"   "------"
+
+# Sciword mnemonic for going between text and math modes.
 \bind "C-t"    "math-mode"
 \bind "C-u"    "font-underline"
 \bind "C-v"    "paste"
@@ -58,7 +64,7 @@
 \bind "S-C-z"  "redo"
 
 
-# This combination makes an umlaut accept now.
+# This combination makes an umlaut accent now.
 #\bind "S-C-quotedbl"           "quote-insert"
 
 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
 \bind "C-0"    "math-delim ( )"
 \bind "S-C-parenright" "math-delim ( )"
 
-\bind "C-S-bracketleft"                "math-delim [ ]"
-\bind "C-S-bracketright"       "math-delim [ ]"
+\bind "C-bracketleft"          "math-delim [ ]"
+\bind "C-bracketright" "math-delim [ ]"
 \bind "C-S-less"               "math-delim langle rangle"
 \bind "C-S-greater"            "math-delim langle rangle"
 
 # The bar bracket: on some keyboards, e.g. British, the bar character is
-# misplaced to an Alt-something
+# bound to an Alt-something and on some wayward Unices to "brokenbar".
 \bind "C-S-bar"                "math-delim | |"
 \bind "C-S-brokenbar"  "math-delim | |"
 \bind "C-M-bar"                "math-delim | |"
 \bind "S-C-braceleft"          "math-delim { }"
 \bind "S-C-braceright"         "math-delim { }"
 
-# Accents. Sciword mnemonic. Mostly need to press Ctrl-<accent key>
-# e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilda etc.
+# Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
+# e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
 # Some of them seem to work only in math mode?
 
-# S-C-period?
 \bind "C-period"       "accent-dot"
+\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 "C-apostrophe"   "accent-acute"
 \bind "S-C-asciicircum" "accent-circumflex"
-\bind "C-equal"        "accent-vector"
+\bind "C-equal"                "accent-vector"
 # Why is it not "accent-bar"?
 \bind "C-minus"        "math-insert bar"
 # What is "accent-underbar"?
 #\bind "S-C-underscore"        "accent-underbar"
 
-# Numbering equations. Should perhaps simplify math-number and math-nonumber into one command. This and also math-macro stuff should be available in the menus!
-# Sciword mnemonic, kind of (was just "TAB").
-
-\bind "C-Tab"  "math-number"
-\bind "C-S-Tab"        "math-nonumber"
-
 # Function keys.
 
 #\bind "F1"    "help"  # Not yet implemented!
 \bind "F6"                     "font-emph"
 \bind "F7"                     "font-code"
 \bind "F8"                     "font-noun"
-# F9 bound below as meta-prefix (e.g. if the keyboard doesn't have ALT).
+# F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
 #\bind "F9"                     "------"
 #\bind "F10"                    "------"
 
 \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.
 
 \bind "C-s equal"      "math-insert equiv"
 \bind "M-equal"                "math-insert approx"
 \bind "M-minus"                "math-insert sim"
-\bind "M-less"         "math-insert leq"
-\bind "M-greater"      "math-insert geq"
+\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 "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"
 # Visible Menu access menu
 #
 
-\bind "F10 d"                  "menu-open Documents"
-\bind "F10 e"                  "menu-open Edit"
-\bind "F10 f"                  "menu-open File"
-\bind "F10 h"                  "menu-open Help"
-\bind "F10 i"                  "menu-open Insert"
-\bind "F10 l"                  "menu-open Layout"
-\bind "F10 m"                  "menu-open Math"
-\bind "F10 o"                  "menu-open Options"
+#\bind "F10 d"                  "menu-open Documents"
+#\bind "F10 e"                  "menu-open Edit"
+#\bind "F10 f"                  "menu-open File"
+#\bind "F10 h"                  "menu-open Help"
+#\bind "F10 i"                  "menu-open Insert"
+#\bind "F10 l"                  "menu-open Layout"
+#\bind "F10 m"                  "menu-open Math"
+#\bind "F10 o"                  "menu-open Options"
 
 
 
 # File menu
 #
 
-\bind "M-f a"                  "buffer-write-as"
-\bind "M-f c"                  "buffer-close"
-\bind "M-f n"                  "buffer-new"
+#\bind "M-f a"                  "buffer-write-as"
+#\bind "M-f c"                  "buffer-close"
+#\bind "M-f n"                  "buffer-new"
 #\bind "M-f l"                  "file-last"                      # Not yet implemented.
-\bind "M-f o"                  "buffer-open"
-\bind "M-f p"                  "buffer-print"
-\bind "M-f q"                  "lyx-quit"
-\bind "M-f r"                  "buffer-typeset"
+#\bind "M-f o"                  "file-open"
+#\bind "M-f p"                  "buffer-print"
+#\bind "M-f q"                  "lyx-quit"
+#\bind "M-f r"                  "buffer-update dvi"
         # Obsolete
-\bind "M-f s"                  "buffer-write"
-\bind "M-f t"                  "buffer-typeset"
+#\bind "M-f s"                  "buffer-write"
+#\bind "M-f t"                  "buffer-update dvi"
 
-\bind "M-f x"                  "buffer-view"
-\bind "M-f g"                  "buffer-view-ps"
-\bind "M-f space"              "menu-open File"
+#\bind "M-f x"                  "buffer-view dvi"
+#\bind "M-f g"                  "buffer-view ps"
+#\bind "M-f space"              "menu-open File"
 
 
 #
 # Edit menu
 #
 
-#\bind "M-e b"                  "table"                         # Not yet implemented!
-\bind "M-e c"                  "cut"
-\bind "M-e e"                  "error-next"
-\bind "M-e f"                  "find-replace"
-\bind "M-e k"                  "line-delete-forward"
-\bind "M-e m"                  "mark-on"
-\bind "M-e S-M"                "mark-off"
-\bind "M-e n"                  "note-next"
-\bind "M-e o"                  "copy"
-\bind "M-e p"                  "paste"
-\bind "M-e r"                  "redo"
-\bind "M-e s"                  "spellchecker"
+##\bind "M-e b"                  "table"                         # Not yet implemented!
+#\bind "M-e c"                  "cut"
+#\bind "M-e e"                  "error-next"
+#\bind "M-e f"                  "find-replace"
+#\bind "M-e k"                  "line-delete-forward"
+#\bind "M-e m"                  "mark-on"
+#\bind "M-e S-M"                "mark-off"
+#\bind "M-e n"                  "note-next"
+#\bind "M-e o"                  "copy"
+#\bind "M-e p"                  "paste"
+#\bind "M-e r"                  "redo"
+#\bind "M-e s"                  "spellchecker"
 #\bind "M-e t"                  "toc-update"
-\bind "M-e u"                  "undo"
-\bind "M-e space"              "menu-open Edit"
+#\bind "M-e u"                  "undo"
+#\bind "M-e space"              "menu-open Edit"
 
 
 #
 # Layout menu
 #
 
-\bind "M-l c"                  "layout-character"
-\bind "M-l p"                  "layout-paragraph"
-\bind "M-l d"                  "layout-document"
-\bind "M-l q"                  "layout-quotes"
-\bind "M-l l"                  "layout-preamble"
-\bind "M-l e"                  "font-emph"
+#\bind "M-l c"                  "layout-character"
+#\bind "M-l p"                  "layout-paragraph"
+#\bind "M-l d"                  "layout-document"
+#\bind "M-l q"                  "layout-quotes"
+#\bind "M-l l"                  "layout-preamble"
+#\bind "M-l e"                  "font-emph"
 #\bind "M-l n"                  "font-smallcaps"
-\bind "M-l b"                  "font-bold"
-\bind "M-l t"                  "tex-mode"
-\bind "M-l v"                  "depth-next"
-\bind "M-l space"              "menu-open Layout"
+#\bind "M-l b"                  "font-bold"
+#\bind "M-l t"                  "ert-insert"
+#\bind "M-l v"                  "depth-next"
+#\bind "M-l space"              "menu-open Layout"
 
 
 
 # Insert menu
 #
 
-\bind "M-i f"                  "footnote-insert"
-\bind "M-i h"                  "hfill-insert"
-\bind "M-i m"                  "marginpar-insert"
-\bind "M-i n"                  "note-insert"
-\bind "M-i l"                  "label-insert"
-\bind "M-i r"                  "reference-insert"
-\bind "M-i minus"              "hyphenation-point-insert"
-\bind "M-i apostrophe"         "quote-insert"
-\bind "M-i S-quotedbl"         "quote-insert"
-\bind "M-i space"              "menu-open Insert"
+#\bind "M-i c"                  "citation-insert"
+#\bind "M-i f"                  "footnote-insert"
+#\bind "M-i h"                  "hfill-insert"
+#\bind "M-i m"                  "marginpar-insert"
+#\bind "M-i n"                  "note-insert"
+#\bind "M-i l"                  "label-insert"
+#\bind "M-i r"                  "reference-insert"
+#\bind "M-i minus"              "hyphenation-point-insert"
+#\bind "M-i apostrophe"         "quote-insert"
+#\bind "M-i S-quotedbl"         "quote-insert"
+#\bind "M-i space"              "menu-open Insert"
 
 
 
 #\bind "M-o s"                  "spellcheck-options"            # Not yet implemented!
 #\bind "M-o k"                  "keyboard-options"              # Not yet implemented!
 #\bind "M-o l"                  "latex-options"                 # Not yet implemented!
-\bind "M-o space"              "menu-open Options"
+#\bind "M-o space"              "menu-open Options"
 
 
 
 # Documents menu
 #
 
-\bind "M-d p"                  "buffer-previous"
-\bind "M-d space"              "menu-open Documents"
+#\bind "M-d p"                  "buffer-previous"
+#\bind "M-d space"              "menu-open Documents"
 
 
 
 #\bind "M-h w"                  "help-warranty"                 # Not yet implemented!
 #\bind "M-h c"                  "help-credits"                  # Not yet implemented!
 #\bind "M-h v"                  "help-version"                  # Not yet implemented!
-\bind "M-h space"              "menu-open Help"
+#\bind "M-h space"              "menu-open Help"
 
 
 
 \bind "M-c p"                  "font-code"
 \bind "M-c r"                  "font-roman"
 \bind "M-c s"                  "font-sans"
-\bind "M-c t"                  "tex-mode"
+\bind "M-c t"                  "ert-insert"
 \bind "M-c u"                  "font-underline"
 
 \bind "M-c Down"               "word-lowcase"
 
 \bind "M-x c"                  "screen-recenter"
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+\bind_file latinkeys.bind