]> git.lyx.org Git - lyx.git/blob - lib/bind/sciword.bind
Update sciword.bind
[lyx.git] / lib / bind / sciword.bind
1 # This file is part of LyX
2
3 # LyX keyboard definitions similar to those of Scientific Word.
4 # Prepared by Serge Winitzki. Version 1.2
5
6 # Tip: to find the "LyX name" for a key, look at the status bar after
7 # typing some non-existent key combination. E.g. to find how "Ctrl-&" is
8 # referenced, press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
9
10 #\bind "C-a"                    "------"
11 #\bind "C-b"                    "font-bold"
12
13 # Copy, paste, etc.: more familiar keys
14 \bind "C-c"     "copy"
15
16 # Display equation toggle: type it in a displayed equation to convert it
17 # back to an inline equation
18 # Sciword mnemonic.
19 \bind "C-d"     "math-display"
20
21 #\bind "C-e"    "------"
22 # Greek for only one character. "math-greek-toggle" is the persistent Greek
23 # toggle which nobody really needs when typing math.
24 # Sciword mnemonic.
25 \bind "C-f"     "math-insert frac"
26 \bind "C-g"     "math-greek"
27
28 # Do we need this?
29 #\bind "C-h"    "hyphenation-point-insert"
30
31 # Sciword mnemonic.
32 \bind "C-i"     "math-insert int"
33
34 #\bind "C-j"    "------"
35
36 \bind "C-k"     "line-delete-forward"
37 \bind "C-l"     "screen-recenter"
38
39 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
40 \bind "C-m"     "math-mode"
41 # C-n is numbering equations now. Sciword had "C-Tab" mnemonic which conflicts with many things.
42 # 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!
43 \bind "C-n"     "math-number"
44 \bind "S-C-n" "math-nonumber"
45 \bind "C-o"     "open-stuff"
46
47 # Insert a quote character. Do I need this?
48 \bind "C-q"     "quote-insert"
49
50 # Sciword mnemonic.
51 \bind "C-r"     "math-insert sqrt"
52
53 # This combination is now a gateway to math symbols (C-s ...)
54 #\bind "C-s"    "------"
55
56 # Sciword mnemonic for going between text and math modes.
57 \bind "C-t"     "math-mode"
58 \bind "C-u"     "font-underline"
59 \bind "C-v"     "paste"
60 \bind "C-w"     "buffer-close"
61 \bind "C-x"     "cut"
62 \bind "C-z"     "undo"
63 \bind "S-C-z"   "redo"
64
65
66 # This combination makes an umlaut accent now.
67 #\bind "S-C-quotedbl"           "quote-insert"
68
69 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
70
71 \bind "C-9"     "math-delim ( )"
72 \bind "S-C-parenleft"   "math-delim ( )"
73 \bind "C-0"     "math-delim ( )"
74 \bind "S-C-parenright"  "math-delim ( )"
75
76 \bind "C-bracketleft"           "math-delim [ ]"
77 \bind "C-bracketright"  "math-delim [ ]"
78 \bind "C-S-less"                "math-delim langle rangle"
79 \bind "C-S-greater"             "math-delim langle rangle"
80
81 # The bar bracket: on some keyboards, e.g. British, the bar character is
82 # bound to an Alt-something and on some wayward Unices to "brokenbar".
83 \bind "C-S-bar"         "math-delim | |"
84 \bind "C-S-brokenbar"   "math-delim | |"
85 \bind "C-M-bar"         "math-delim | |"
86
87 \bind "S-C-braceleft"           "math-delim { }"
88 \bind "S-C-braceright"          "math-delim { }"
89
90 # Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
91 # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
92 # Some of them seem to work only in math mode?
93
94 \bind "C-period"        "accent-dot"
95 \bind "S-C-colon"       "math-insert ddot"
96 \bind "C-quoteleft"     "accent-grave"
97 \bind "S-C-asciitilde"  "accent-tilde"
98 \bind "S-C-quotedbl"    "accent-umlaut"
99 \bind "C-apostrophe"    "accent-acute"
100 \bind "S-C-asciicircum" "accent-circumflex"
101 \bind "C-equal"         "accent-vector"
102 # Why is it not "accent-bar"?
103 \bind "C-minus" "math-insert bar"
104 # What is "accent-underbar"?
105 #\bind "S-C-underscore" "accent-underbar"
106
107 # Function keys.
108
109 #\bind "F1"     "help"  # Not yet implemented!
110 #\bind "C-F1"                   "help-context"                  # Not yet implemented!
111 \bind "F2"                     "buffer-write"
112 \bind "F3"                     "find-replace"
113
114 \bind "C-F4"                   "buffer-close"
115 \bind "M-F4"                   "lyx-quit"
116 # F4 to F8 are used to switch fonts. Sciword mnemonic.
117 \bind "F4"                     "font-default"
118 \bind "F5"                     "font-bold"
119 \bind "F6"                     "font-emph"
120 \bind "F7"                     "font-code"
121 \bind "F8"                     "font-noun"
122 # F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
123 #\bind "F9"                     "------"
124 #\bind "F10"                    "------"
125
126 #
127 # Math menu (unmodified)
128 #
129
130 \bind "M-m f"                   "math-insert frac"
131 \bind "M-m i"                   "math-insert int"
132 \bind "M-m o"                   "math-insert oint"
133 \bind "M-m p"                  "math-insert partial"
134 \bind "M-m s"                  "math-insert sqrt"
135 \bind "M-m S-S"                "math-insert sum"
136 \bind "M-m l"                  "math-limits"
137 \bind "M-m n"                  "math-number"
138 \bind "M-m v"                  "accent-vector"
139 \bind "M-m space"              "menu-open Math"
140
141 # Sciword mnemonics for math editing:
142
143 \bind "M-apostrophe"    "math-insert prime"
144 \bind "C-Up"            "math-insert ^"
145 \bind "C-Down"          "math-insert _"
146 \bind "C-s d"           "math-insert partial"
147 \bind "C-s e"           "math-insert sum"
148 \bind "C-s p"           "math-insert prod"
149 \bind "C-s i"           "math-insert infty"
150 \bind "C-s x"           "symbol-insert times"
151
152 # My own embellishments for symbols I use often.
153
154 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
155
156 \bind "C-s apostrophe"  "math-insert prime"
157 \bind "C-s S-plus"      "math-insert dagger"
158 \bind "C-s equal"       "math-insert equiv"
159 \bind "M-equal"         "math-insert approx"
160 \bind "M-minus"         "math-insert sim"
161 \bind "C-minus"         "math-insert rightarrow"
162 \bind "S-M-less"        "math-insert leq"
163 \bind "S-M-greater"     "math-insert geq"
164 \bind "C-s S-less"      "math-insert ll"
165 \bind "C-s S-greater"   "math-insert gg"
166
167         ############################
168 ######### Almost no changes below. #########
169         ############################
170
171 #
172 # Motion group
173 #
174
175 \bind "Right"                  "char-forward"
176 \bind "Left"                   "char-backward"
177 \bind "Up"                     "up"
178 \bind "Down"                   "down"
179 \bind "C-Right"                "word-forward"
180 \bind "C-Left"                 "word-backward"
181 # These are now used to insert superscripts and subscripts.
182 #\bind "C-Up"                   "paragraph-up"
183 #\bind "C-Down"                 "paragraph-down"
184 \bind "Home"                   "line-begin"
185 \bind "End"                    "line-end"
186 \bind "Prior"                  "screen-up"
187 \bind "Next"                   "screen-down"
188 \bind "C-Home"                 "buffer-begin"
189 \bind "C-End"                  "buffer-end"
190 \bind "Tab"                    "tab-forward"
191
192 #
193 # Motion + select group
194 #
195
196 \bind "S-Right"                "forward-select"
197 \bind "S-Left"                 "backward-select"
198 \bind "S-Up"                   "up-select"
199 \bind "S-Down"                 "down-select"
200 \bind "S-C-Right"              "word-forward-select"
201 \bind "S-C-Left"               "word-backward-select"
202 \bind "S-C-Up"                 "paragraph-up-select"
203 \bind "S-C-Down"               "paragraph-down-select"
204 \bind "S-Home"                 "line-begin-select"
205 \bind "S-End"                  "line-end-select"
206 \bind "S-Prior"                "screen-up-select"
207 \bind "S-Next"                 "screen-down-select"
208 \bind "S-C-Home"               "buffer-begin-select"
209 \bind "S-C-End"                "buffer-end-select"
210 \bind "C-Insert"               "copy"
211 \bind "S-Insert"               "paste"
212 \bind "S-Delete"               "cut"
213
214 #
215 # Edit group
216 #
217
218 \bind "Delete"                 "delete-forward"
219 \bind "BackSpace"              "delete-backward"
220 \bind "C-Delete"               "word-delete-forward"
221 \bind "C-BackSpace"            "word-delete-backward"
222 \bind "Return"                 "break-paragraph"
223 \bind "M-Return"               "break-paragraph-keep-layout"
224 \bind "C-Return"               "break-line"
225 \bind "C-space"                "protected-space-insert"
226 \bind "Escape"                 "cancel"
227 \bind "F9"                     "meta-prefix"
228
229 #
230 # Visible Menu access menu
231 #
232
233 \bind "F10 d"                  "menu-open Documents"
234 \bind "F10 e"                  "menu-open Edit"
235 \bind "F10 f"                  "menu-open File"
236 \bind "F10 h"                  "menu-open Help"
237 \bind "F10 i"                  "menu-open Insert"
238 \bind "F10 l"                  "menu-open Layout"
239 \bind "F10 m"                  "menu-open Math"
240 \bind "F10 o"                  "menu-open Options"
241
242
243
244 #
245 # File menu
246 #
247
248 \bind "M-f a"                  "buffer-write-as"
249 \bind "M-f c"                  "buffer-close"
250 \bind "M-f n"                  "buffer-new"
251 #\bind "M-f l"                  "file-last"                      # Not yet implemented.
252 \bind "M-f o"                  "buffer-open"
253 \bind "M-f p"                  "buffer-print"
254 \bind "M-f q"                  "lyx-quit"
255 \bind "M-f r"                  "buffer-typeset"
256         # Obsolete
257 \bind "M-f s"                  "buffer-write"
258 \bind "M-f t"                  "buffer-typeset"
259
260 \bind "M-f x"                  "buffer-view"
261 \bind "M-f g"                  "buffer-view-ps"
262 \bind "M-f space"              "menu-open File"
263
264
265 #
266 # Edit menu
267 #
268
269 #\bind "M-e b"                  "table"                         # Not yet implemented!
270 \bind "M-e c"                  "cut"
271 \bind "M-e e"                  "error-next"
272 \bind "M-e f"                  "find-replace"
273 \bind "M-e k"                  "line-delete-forward"
274 \bind "M-e m"                  "mark-on"
275 \bind "M-e S-M"                "mark-off"
276 \bind "M-e n"                  "note-next"
277 \bind "M-e o"                  "copy"
278 \bind "M-e p"                  "paste"
279 \bind "M-e r"                  "redo"
280 \bind "M-e s"                  "spellchecker"
281 #\bind "M-e t"                  "toc-update"
282 \bind "M-e u"                  "undo"
283 \bind "M-e space"              "menu-open Edit"
284
285
286 #
287 # Layout menu
288 #
289
290 \bind "M-l c"                  "layout-character"
291 \bind "M-l p"                  "layout-paragraph"
292 \bind "M-l d"                  "layout-document"
293 \bind "M-l q"                  "layout-quotes"
294 \bind "M-l l"                  "layout-preamble"
295 \bind "M-l e"                  "font-emph"
296 #\bind "M-l n"                  "font-smallcaps"
297 \bind "M-l b"                  "font-bold"
298 \bind "M-l t"                  "tex-mode"
299 \bind "M-l v"                  "depth-next"
300 \bind "M-l space"              "menu-open Layout"
301
302
303
304 #
305 # Insert menu
306 #
307
308 \bind "M-i c"                  "citation-insert"
309 \bind "M-i f"                  "footnote-insert"
310 \bind "M-i h"                  "hfill-insert"
311 \bind "M-i m"                  "marginpar-insert"
312 \bind "M-i n"                  "note-insert"
313 \bind "M-i l"                  "label-insert"
314 \bind "M-i r"                  "reference-insert"
315 \bind "M-i minus"              "hyphenation-point-insert"
316 \bind "M-i apostrophe"         "quote-insert"
317 \bind "M-i S-quotedbl"         "quote-insert"
318 \bind "M-i space"              "menu-open Insert"
319
320
321
322 #
323 # Options menu
324 #
325
326 #\bind "M-o f"                  "screen-font-options"           # Not yet implemented!
327 #\bind "M-o s"                  "spellcheck-options"            # Not yet implemented!
328 #\bind "M-o k"                  "keyboard-options"              # Not yet implemented!
329 #\bind "M-o l"                  "latex-options"                 # Not yet implemented!
330 \bind "M-o space"              "menu-open Options"
331
332
333
334 #
335 # Documents menu
336 #
337
338 \bind "M-d p"                  "buffer-previous"
339 \bind "M-d space"              "menu-open Documents"
340
341
342
343 #
344 # Help menu
345 #
346
347 #\bind "M-h d"                  "help-documentation"            # Not yet implemented!
348 #\bind "M-h o"                  "help-copyright"                # Not yet implemented!
349 #\bind "M-h w"                  "help-warranty"                 # Not yet implemented!
350 #\bind "M-h c"                  "help-credits"                  # Not yet implemented!
351 #\bind "M-h v"                  "help-version"                  # Not yet implemented!
352 \bind "M-h space"              "menu-open Help"
353
354
355
356 #
357 # Font size menu
358 #
359
360 \bind "M-s S-A"                "font-size largest"             # \LARGE
361 \bind "M-s g"                  "font-size giant"               # \Huge
362 \bind "M-s h"                  "font-size huge"                # \huge
363 \bind "M-s S-H"                "font-size giant"               # \Huge
364 \bind "M-s l"                  "font-size large"               # \large
365 \bind "M-s S-L"                "font-size larger"              # \Large
366 \bind "M-s n"                  "font-size normal"              # \normalsize
367 \bind "M-s s"                  "font-size small"               # \small
368 \bind "M-s t"                  "font-size tiny"                # \tiny
369
370 \bind "M-s 1"                  "font-size tiny"
371 \bind "M-s 2"                  "font-size small"
372 \bind "M-s 3"                  "font-size normal"
373 \bind "M-s 4"                  "font-size large"
374 \bind "M-s 5"                  "font-size larger"
375 \bind "M-s 6"                  "font-size largest"
376 \bind "M-s 7"                  "font-size huge"
377 \bind "M-s 8"                  "font-size giant"
378
379
380
381 #
382 # Alignment menu
383 #
384
385 #\bind "M-a l"                  "para-align left"               # Not yet implemented!
386 #\bind "M-a r"                  "para-align right"              # Not yet implemented!
387 #\bind "M-a c"                  "para-align center"             # Not yet implemented!
388 #\bind "M-a b"                  "para-align block"              # Not yet implemented!
389 #\bind "M-a f"                  "para-align block"              # Not yet implemented!
390 #\bind "M-a d"                  "para-align default"            # Not yet implemented!
391
392
393
394 #
395 # Paragraph style menu
396 #
397
398 \bind "M-p c"                  "drop-layouts-choice"
399 \bind "M-p 1"                  "layout Chapter"
400 \bind "M-p 2"                  "layout Section"
401 \bind "M-p 3"                  "layout Subsection"
402 \bind "M-p 4"                  "layout Subsubsection"
403 \bind "M-p 5"                  "layout Paragraph"
404 \bind "M-p 6"                  "layout Subparagraph"
405 \bind "M-p b"                  "layout Itemize"                        # bulleted list
406 \bind "M-p d"                  "layout Description"
407 \bind "M-p e"                  "layout Enumerate"                      # numbered list
408 \bind "M-p i"                  "layout Itemize"                        # bulleted list
409 \bind "M-p l"                  "layout List"
410 \bind "M-p n"                  "layout Enumerate"                      # numbered list
411 \bind "M-p p"                  "layout Lyx-Code"
412 \bind "M-p q"                  "layout Quote"
413 \bind "M-p S-Q"                "layout Quotation"
414 \bind "M-p s"                  "layout Standard"
415 \bind "M-p t"                  "layout Title"
416 \bind "M-p S-at"               "layout Section*"                       # M-p S-2
417 \bind "M-p S-dollar"           "layout Subsubsection*"                 # M-p S-4
418 \bind "M-p S-numbersign"       "layout Subsection*"                    # M-p S-3
419
420 \bind "M-p Left"               "depth-decrement"
421 \bind "M-p Right"              "depth-increment"
422
423
424
425 #
426 # Character style menu
427 #
428
429 \bind "M-c b"                  "font-bold"
430 #\bind "M-c c"                  "font-smallcaps"
431 \bind "M-c e"                  "font-emph"
432 \bind "M-c i"                  "font-emph"                                              # italics
433 \bind "M-c m"                  "math-mode"
434 \bind "M-c p"                  "font-code"
435 \bind "M-c r"                  "font-roman"
436 \bind "M-c s"                  "font-sans"
437 \bind "M-c t"                  "tex-mode"
438 \bind "M-c u"                  "font-underline"
439
440 \bind "M-c Down"               "word-lowcase"
441 \bind "M-c Up"                 "word-upcase"
442 \bind "M-c Right"              "word-capitalize"
443
444 \bind "M-c space"              "font-default"
445
446
447
448 #
449 # Keyboard menu
450 #
451
452 \bind "M-k 1"                  "keymap-primary"
453 \bind "M-k 2"                  "keymap-secondary"
454 \bind "M-k o"                  "keymap-off"
455 \bind "M-k t"                  "keymap-toggle"
456 \bind "M-k x"                  "keymap-off"
457
458
459
460 #
461 # Misc menu
462 #
463
464 \bind "M-x c"                  "screen-recenter"
465