]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
Merge InsetMathBoldSymbol and InsetMathBM by providing \boldsymbol
[lyx.git] / lib / bind / cua.bind
1 # -*- text -*-
2
3 # file cua.bind
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Asger Alstrup
8 # author Lars Gullik Bjønnes
9 # author Jean-Marc Lasgouttes
10 # author Angus Leeming
11 # author John Levon
12 # author Jürgen Spitzmüller
13 # author Dekel Tsur
14 # author Jürgen Vigna
15 # author Andrew Zabolotny
16
17 # Full author contact details are available in file CREDITS.
18
19 # This is the CUA (Common User Access) flavour bind file, based on
20 # bindings found in the Windows, Mac and Motif world.
21
22 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
23 # with every new install of LyX and your changes will be lost.
24 # Instead, customize a copy of this file placed in
25 # ~/.lyx/bind/cua.bind
26 #
27 # Happy tuning!
28
29 # Free bindings:
30
31 #\bind "C-h"
32 #\bind "C-j"
33
34
35 ###
36
37 \bind "C-n"                     "buffer-new"
38 \bind "C-S-N"                   "buffer-new-template"
39 \bind "C-o"                     "file-open"
40 \bind "C-w"                     "buffer-close"
41 \bind "C-s"                     "buffer-write"
42 \bind "C-S-S"                   "buffer-write-as"
43 \bind "C-p"                     "dialog-show print"
44 \bind "C-d"                     "buffer-view dvi"       # 'd' for dvi
45 \bind "C-t"                     "buffer-view ps"
46 \bind "C-M-t"                   "master-buffer-view ps"
47 \bind "C-M-d"                   "master-buffer-view dvi"
48 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
49 \bind "C-S-T"                   "buffer-update ps"
50 \bind "C-M-S-t"                 "master-buffer-update ps"
51 \bind "C-M-S-d"                 "master-buffer-update dvi"
52 \bind "C-q"                     "lyx-quit"
53 \bind "C-Next"                  "buffer-next"
54 \bind "C-Tab"                   "buffer-next"
55 \bind "C-Prior"                 "buffer-previous"
56 \bind "C-S-Tab"                 "buffer-previous"
57
58 \bind "C-M-b"                   "math-insert \mathbf"
59 \bind "C-b"                     "font-bold"
60 \bind "C-e"                     "font-emph"
61 # used below for line-delete-forward
62 #\bind "C-k"                    "font-noun"             # 'k' for capitals
63 \bind "C-u"                     "font-underline"
64 \bind "C-S-P"                   "font-typewriter" # 'P' for Program
65
66 \bind "C-m"                     "math-mode"
67 \bind "C-S-M"                   "math-display"
68 \bind "C-M-n"                   "command-sequence math-display; math-number;"
69
70 \bind "C-f"                     "dialog-show findreplace"
71 \bind "C-g"                     "error-next"
72 \bind "C-i"                     "next-inset-toggle"             # 'i' for Inset
73
74 \bind "C-c"                     "copy"
75 \bind "C-x"                     "cut"
76 \bind "C-v"                     "paste"
77 \bind "C-S-v"                   "clipboard-paste"
78 \bind "C-M-v"                   "primary-selection-paste"
79
80 \bind "C-z"                     "undo"
81 \bind "C-y"                     "redo"
82 \bind "C-S-Z"                   "redo"
83
84 \bind "C-a"                     "command-sequence buffer-begin ; buffer-end-select"   # select all
85
86 \bind "C-S-E"                   "changes-track"  # it's what MS Word uses
87 \bind "~S-M-quotedbl"           "quote-insert single"
88 \bind "~S-C-quotedbl"           "self-insert \""
89 \bind "C-minus"                 "specialchar-insert hyphenation-point"
90 \bind "C-M-minus"               "specialchar-insert nobreakdash"
91 \bind "M-S-Right"               "depth-increment"
92 \bind "M-S-Left"                "depth-decrement"
93 \bind "C-S-L"                   "specialchar-insert ligature-break"
94 \bind "C-S-slash"               "specialchar-insert slash"
95 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
96 \bind "C-S-I"                   "info-insert"
97
98 #bind "F1"                      "help"                  # Not yet implemented!
99 #bind "C-F1"                    "help-context"          # Not yet implemented!
100 \bind "F2"                      "buffer-write"
101 \bind "F3"                      "file-open"
102 \bind "C-F4"                    "buffer-close"
103 \bind "M-F4"                    "lyx-quit"
104 \bind "F5"                      "screen-recenter"
105 \bind "C-M-Up"                  "scroll line up"
106 \bind "C-M-Down"                "scroll line down"
107 \bind "C-M-Prior"               "scroll page up"
108 \bind "C-M-Next"                "scroll page down"
109 \bind "C-F6"                    "buffer-next"
110 \bind "C-S-F6"                  "buffer-previous"
111 \bind "F7"                      "dialog-show spellchecker"
112 \bind "S-F7"                    "thesaurus-entry"
113
114 \bind "M-x"                     "command-execute"
115
116 \bind "F11"                     "ui-toggle fullscreen"
117
118 #
119 # Motion group
120 #
121
122 \bind "M-Up"                    "paragraph-move-up"
123 \bind "M-Down"                  "paragraph-move-down"
124 \bind "C-Right"                 "word-right"
125 \bind "C-Left"                  "word-left"
126 \bind "C-Up"                    "paragraph-up"
127 \bind "C-Down"                  "paragraph-down"
128 \bind "C-Home"                  "buffer-begin"
129 \bind "C-End"                   "buffer-end"
130
131 \bind "C-~S-greater"            "label-goto"
132 \bind "C-~S-less"               "bookmark-goto 0"
133
134
135 #
136 # Motion + select group
137 #
138
139 \bind "S-Right"                 "char-right-select"
140 \bind "S-Left"                  "char-left-select"
141 \bind "S-Up"                    "up-select"
142 \bind "S-Down"                  "down-select"
143 \bind "S-C-Right"               "word-right-select"
144 \bind "S-C-Left"                "word-left-select"
145 \bind "S-C-Up"                  "paragraph-up-select"
146 \bind "S-C-Down"                "paragraph-down-select"
147 \bind "S-Home"                  "line-begin-select"
148 \bind "S-End"                   "line-end-select"
149 \bind "S-Prior"                 "screen-up-select"
150 \bind "S-Next"                  "screen-down-select"
151 \bind "S-C-Home"                "buffer-begin-select"
152 \bind "S-C-End"                 "buffer-end-select"
153 \bind "C-Insert"                "copy"
154 \bind "S-Insert"                "paste"
155 \bind "S-Delete"                "cut"
156
157 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
158 \bind "S-KP_Right"              "char-right-select"
159 \bind "S-KP_Left"               "char-left-select"
160 \bind "S-KP_Up"                 "up-select"
161 \bind "S-KP_Down"               "down-select"
162 \bind "S-C-KP_Right"            "word-right-select"
163 \bind "S-C-KP_Left"             "word-left-select"
164 \bind "S-C-KP_Up"               "paragraph-up-select"
165 \bind "S-C-KP_Down"             "paragraph-down-select"
166 \bind "S-KP_Home"               "line-begin-select"
167 \bind "S-KP_End"                "line-end-select"
168 \bind "S-KP_Prior"              "screen-up-select"
169 \bind "S-KP_Next"               "screen-down-select"
170 \bind "S-C-KP_Home"             "buffer-begin-select"
171 \bind "S-C-KP_End"              "buffer-end-select"
172 \bind "S-C-KP_Prior"            "buffer-begin-select"
173 \bind "S-C-KP_Next"             "buffer-end-select"
174 \bind "C-KP_Insert"             "copy"
175 \bind "S-KP_Insert"             "paste"
176 \bind "S-KP_Delete"             "cut"
177
178 #
179 # bookmarks
180 #
181
182 \bind "C-~S-1"                  "bookmark-goto 1"
183 \bind "C-~S-2"                  "bookmark-goto 2"
184 \bind "C-~S-3"                  "bookmark-goto 3"
185 \bind "C-~S-4"                  "bookmark-goto 4"
186 \bind "C-~S-5"                  "bookmark-goto 5"
187 \bind "C-~S-6"                  "bookmark-goto 6"
188 \bind "C-~S-7"                  "bookmark-goto 7"
189 \bind "C-~S-8"                  "bookmark-goto 8"
190 \bind "C-~S-9"                  "bookmark-goto 9"
191 \bind "C-M-~S-1"                "bookmark-save 1"
192 \bind "C-M-~S-2"                "bookmark-save 2"
193 \bind "C-M-~S-3"                "bookmark-save 3"
194 \bind "C-M-~S-4"                "bookmark-save 4"
195 \bind "C-M-~S-5"                "bookmark-save 5"
196 \bind "C-M-~S-6"                "bookmark-save 6"
197 \bind "C-M-~S-7"                "bookmark-save 7"
198 \bind "C-M-~S-8"                "bookmark-save 8"
199 \bind "C-M-~S-9"                "bookmark-save 9"
200
201
202 #
203 # Edit group
204 #
205
206 \bind "C-Delete"                "word-delete-forward"
207 \bind "C-BackSpace"             "word-delete-backward"
208 \bind "M-Return"                "break-paragraph inverse"
209 \bind "C-Return"                "new-line"
210 \bind "C-S-Return"              "line-break"
211 \bind "C-k"                     "line-delete-forward"
212 \bind "C-space"                 "space-insert protected"
213 \bind "C-M-space"               "space-insert normal"
214 \bind "S-C-space"               "space-insert thin"
215 \bind "C-period"                "specialchar-insert end-of-sentence"
216 \bind "M-period"                "specialchar-insert dots"
217 \bind "Escape"                  "cancel"
218 \bind "F9"                      "meta-prefix"
219
220 # Include menu and math bindings
221
222 \bind_file menus.bind
223 \bind_file math.bind
224 \bind_file latinkeys.bind
225 \bind_file cyrkeys.bind
226 \bind_file greekkeys.bind