1999-09-27 18:44:28 +00:00
# This file is part of LyX
# LyX keyboard definitions similar to those of Scientific Word.
2000-07-20 14:15:17 +00:00
# Prepared by Serge Winitzki. Version 1.2
2002-11-29 13:22:38 +00:00
# Somewhat updated by Jean-Marc Lasgouttes (I'm sure that I simplified it,
# but I'm not sure that I did not break it :)
1999-09-27 18:44:28 +00:00
2000-07-20 14:15:17 +00:00
# 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."
1999-09-27 18:44:28 +00:00
#\bind "C-a" "------"
#\bind "C-b" "font-bold"
# Copy, paste, etc.: more familiar keys
\bind "C-c" "copy"
# Display equation toggle: type it in a displayed equation to convert it
# back to an inline equation
# Sciword mnemonic.
\bind "C-d" "math-display"
#\bind "C-e" "------"
# Greek for only one character. "math-greek-toggle" is the persistent Greek
# toggle which nobody really needs when typing math.
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-f" "math-insert \frac"
1999-09-27 18:44:28 +00:00
\bind "C-g" "math-greek"
2000-07-20 14:15:17 +00:00
# Do we need this?
1999-09-27 18:44:28 +00:00
#\bind "C-h" "hyphenation-point-insert"
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-i" "math-insert \int"
1999-09-27 18:44:28 +00:00
#\bind "C-j" "------"
\bind "C-k" "line-delete-forward"
\bind "C-l" "screen-recenter"
# Toggle: in text mode, switch to math, and vice versa. Also C-t.
\bind "C-m" "math-mode"
2000-07-20 14:15:17 +00:00
# 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"
2001-07-19 08:52:59 +00:00
\bind "C-o" "inset-toggle"
2000-07-20 14:15:17 +00:00
1999-09-27 18:44:28 +00:00
# Insert a quote character. Do I need this?
2001-07-23 09:11:14 +00:00
# Probably, since we need a way to get a raw quote
\bind "C-q" "self-insert \""
1999-09-27 18:44:28 +00:00
# Sciword mnemonic.
2001-08-13 13:52:40 +00:00
\bind "C-r" "math-insert \sqrt"
1999-09-27 18:44:28 +00:00
# This combination is now a gateway to math symbols (C-s ...)
2000-07-20 14:15:17 +00:00
#\bind "C-s" "------"
# Sciword mnemonic for going between text and math modes.
1999-09-27 18:44:28 +00:00
\bind "C-t" "math-mode"
\bind "C-u" "font-underline"
\bind "C-v" "paste"
\bind "C-w" "buffer-close"
\bind "C-x" "cut"
\bind "C-z" "undo"
\bind "S-C-z" "redo"
2000-07-20 14:15:17 +00:00
# This combination makes an umlaut accent now.
1999-09-27 18:44:28 +00:00
#\bind "S-C-quotedbl" "quote-insert"
# Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
\bind "C-9" "math-delim ( )"
\bind "S-C-parenleft" "math-delim ( )"
\bind "C-0" "math-delim ( )"
\bind "S-C-parenright" "math-delim ( )"
2000-07-20 14:15:17 +00:00
\bind "C-bracketleft" "math-delim [ ]"
\bind "C-bracketright" "math-delim [ ]"
1999-09-27 18:44:28 +00:00
\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
2000-07-20 14:15:17 +00:00
# bound to an Alt-something and on some wayward Unices to "brokenbar".
1999-09-27 18:44:28 +00:00
\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 { }"
2000-07-20 14:15:17 +00:00
# Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
# e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
1999-09-27 18:44:28 +00:00
# Some of them seem to work only in math mode?
\bind "C-period" "accent-dot"
2001-08-13 13:52:40 +00:00
\bind "S-C-colon" "math-insert \ddot"
1999-09-27 18:44:28 +00:00
\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"
2002-11-29 13:22:38 +00:00
\bind "C-equal" "math-insert \vec"
1999-09-27 18:44:28 +00:00
# Why is it not "accent-bar"?
2001-08-13 13:52:40 +00:00
\bind "C-minus" "math-insert \bar"
1999-09-27 18:44:28 +00:00
# What is "accent-underbar"?
#\bind "S-C-underscore" "accent-underbar"
# Function keys.
#\bind "F1" "help" # Not yet implemented!
#\bind "C-F1" "help-context" # Not yet implemented!
\bind "F2" "buffer-write"
\bind "F3" "find-replace"
\bind "C-F4" "buffer-close"
\bind "M-F4" "lyx-quit"
# F4 to F8 are used to switch fonts. Sciword mnemonic.
\bind "F4" "font-default"
\bind "F5" "font-bold"
\bind "F6" "font-emph"
\bind "F7" "font-code"
\bind "F8" "font-noun"
2000-07-20 14:15:17 +00:00
# F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
1999-09-27 18:44:28 +00:00
#\bind "F9" "------"
#\bind "F10" "------"
# Sciword mnemonics for math editing:
2001-08-13 13:52:40 +00:00
\bind "M-apostrophe" "math-insert \prime"
1999-09-27 18:44:28 +00:00
\bind "C-Up" "math-insert ^"
\bind "C-Down" "math-insert _"
2001-08-13 13:52:40 +00:00
\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"
1999-09-27 18:44:28 +00:00
# My own embellishments for symbols I use often.
#I'd like to combine math-insert ^ and math-insert prime, but don't know how.
2001-08-13 13:52:40 +00:00
\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"
1999-09-27 18:44:28 +00:00
2002-11-29 13:22:38 +00:00
# usual math bindings
\bind_file maths.bind
1999-09-27 18:44:28 +00:00
############################
######### Almost no changes below. #########
############################
#
# Motion group
#
\bind "Right" "char-forward"
\bind "Left" "char-backward"
\bind "Up" "up"
\bind "Down" "down"
\bind "C-Right" "word-forward"
\bind "C-Left" "word-backward"
# These are now used to insert superscripts and subscripts.
#\bind "C-Up" "paragraph-up"
#\bind "C-Down" "paragraph-down"
\bind "Home" "line-begin"
\bind "End" "line-end"
\bind "Prior" "screen-up"
\bind "Next" "screen-down"
\bind "C-Home" "buffer-begin"
\bind "C-End" "buffer-end"
\bind "Tab" "tab-forward"
#
# Motion + select group
#
\bind "S-Right" "forward-select"
\bind "S-Left" "backward-select"
\bind "S-Up" "up-select"
\bind "S-Down" "down-select"
\bind "S-C-Right" "word-forward-select"
\bind "S-C-Left" "word-backward-select"
\bind "S-C-Up" "paragraph-up-select"
\bind "S-C-Down" "paragraph-down-select"
\bind "S-Home" "line-begin-select"
\bind "S-End" "line-end-select"
\bind "S-Prior" "screen-up-select"
\bind "S-Next" "screen-down-select"
\bind "S-C-Home" "buffer-begin-select"
\bind "S-C-End" "buffer-end-select"
\bind "C-Insert" "copy"
\bind "S-Insert" "paste"
\bind "S-Delete" "cut"
2002-07-10 14:23:24 +00:00
# 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"
2002-11-29 13:22:38 +00:00
1999-09-27 18:44:28 +00:00
#
# Edit group
#
\bind "Delete" "delete-forward"
\bind "BackSpace" "delete-backward"
\bind "C-Delete" "word-delete-forward"
\bind "C-BackSpace" "word-delete-backward"
\bind "Return" "break-paragraph"
\bind "M-Return" "break-paragraph-keep-layout"
\bind "C-Return" "break-line"
2001-07-23 10:04:17 +00:00
\bind "C-S-L" "ligature-break-insert"
1999-09-27 18:44:28 +00:00
\bind "C-space" "protected-space-insert"
\bind "Escape" "cancel"
\bind "F9" "meta-prefix"
#
2002-11-29 13:22:38 +00:00
# The menus
1999-09-27 18:44:28 +00:00
#
2002-11-29 13:22:38 +00:00
\bind_file menus.bind
1999-09-27 18:44:28 +00:00
2002-07-10 09:38:06 +00:00
# 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"
1999-09-27 18:44:28 +00:00
2001-06-01 13:06:59 +00:00
\bind_file latinkeys.bind
2002-07-16 22:03:20 +00:00
\bind_file cyrkeys.bind
\bind_file greekkeys.bind