]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
Update all of our bind and ui files to format 1.
[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 Format 1
38
39 \bind "C-n"                     "buffer-new"
40 \bind "C-S-N"                   "buffer-new-template"
41 \bind "C-o"                     "file-open"
42 \bind "C-w"                     "buffer-close"
43 \bind "C-s"                     "buffer-write"
44 \bind "C-S-S"                   "buffer-write-as"
45 \bind "C-p"                     "dialog-show print"
46 \bind "C-d"                     "buffer-view dvi"       # 'd' for dvi
47 \bind "C-t"                     "buffer-view ps"
48 \bind "C-M-t"                   "master-buffer-view ps"
49 \bind "C-M-d"                   "master-buffer-view dvi"
50 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
51 \bind "C-S-T"                   "buffer-update ps"
52 \bind "C-M-S-t"                 "master-buffer-update ps"
53 \bind "C-M-S-d"                 "master-buffer-update dvi"
54 \bind "C-q"                     "lyx-quit"
55 \bind "C-Next"                  "buffer-next"
56 \bind "C-Tab"                   "buffer-next"
57 \bind "C-Prior"                 "buffer-previous"
58 \bind "C-S-BackTab"             "buffer-previous"
59
60 \bind "C-M-b"                   "font-boldsymbol"
61 \bind "C-b"                     "font-bold"
62 \bind "C-e"                     "font-emph"
63 # used below for line-delete-forward
64 #\bind "C-k"                    "font-noun"             # 'k' for capitals
65 \bind "C-u"                     "font-underline"
66 \bind "C-S-P"                   "font-typewriter" # 'P' for Program
67 \bind "C-S-O"                   "font-strikeout"
68
69 \bind "C-m"                     "math-mode"
70 \bind "C-S-M"                   "math-display"
71 \bind "C-S-r"                   "regexp-mode"
72 \bind "C-M-n"                   "command-sequence math-display; math-number-toggle;"
73
74 \bind "C-f"                     "dialog-show findreplace"
75 \bind "C-S-f"                   "dialog-show findreplaceadv"
76 \bind "C-i"                     "inset-toggle"          # 'i' for Inset
77
78 \bind "C-c"                     "copy"
79 \bind "C-x"                     "cut"
80 \bind "C-v"                     "paste"
81 \bind "C-S-v"                   "clipboard-paste"
82 \bind "C-M-v"                   "primary-selection-paste"
83
84 \bind "C-z"                     "undo"
85 \bind "C-y"                     "redo"
86 \bind "C-S-Z"                   "redo"
87
88 \bind "C-a"                     "command-sequence buffer-begin ; buffer-end-select"   # select all
89 \bind "C-M-a"                   "inset-select-all"
90
91 \bind "C-S-E"                   "changes-track"  # it's what MS Word uses
92 \bind "~S-M-quotedbl"           "quote-insert single"
93 \bind "~S-C-quotedbl"           "self-insert \""
94 \bind "C-minus" "specialchar-insert hyphenation"
95 \bind "C-S-underscore"          "math-macro-fold"
96 \bind "C-M-minus"               "specialchar-insert nobreakdash"
97 \bind "M-S-Right"               "depth-increment"
98 \bind "M-S-Left"                "depth-decrement"
99 \bind "C-S-L"                   "specialchar-insert ligature-break"
100 \bind "C-~S-slash"              "specialchar-insert slash"
101 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
102 \bind "C-S-I"                   "info-insert"
103
104 #bind "F1"                      "help"                  # Not yet implemented!
105 #bind "C-F1"                    "help-context"          # Not yet implemented!
106 \bind "F2"                      "buffer-write"
107 \bind "F3"                      "word-find"
108 \bind "C-F4"                    "buffer-close"
109 \bind "M-F4"                    "lyx-quit"
110 \bind "F5"                      "screen-recenter"
111 \bind "C-M-Up"                  "scroll line up"
112 \bind "C-M-Down"                "scroll line down"
113 \bind "C-M-Prior"               "scroll page up"
114 \bind "C-M-Next"                "scroll page down"
115 \bind "C-F6"                    "buffer-next"
116 \bind "C-S-F6"                  "buffer-previous"
117 \bind "F7"                      "dialog-show spellchecker"
118 \bind "S-F7"                    "thesaurus-entry"
119
120 \bind "M-x"                     "command-execute"
121 \bind "C-M-o"                   "dialog-show toc"
122
123 \bind "F11"                     "ui-toggle fullscreen"
124
125 \bind "M-equal" "buffer-zoom-in"
126 \bind "M-plus"          "buffer-zoom-in"
127 \bind "M-minus" "buffer-zoom-out"
128
129 #
130 # Motion group
131 #
132
133 \bind "M-Up"                    "paragraph-move-up"
134 \bind "M-Down"                  "paragraph-move-down"
135 \bind "C-Right"                 "word-right"
136 \bind "C-Left"                  "word-left"
137 \bind "C-Up"                    "paragraph-up"
138 \bind "C-Down"                  "paragraph-down"
139 \bind "C-Home"                  "buffer-begin"
140 \bind "C-End"                   "buffer-end"
141 \bind "M-C-Home"                "inset-begin"
142 \bind "M-C-End"                 "inset-end"
143
144 \bind "C-~S-greater"            "label-goto"
145 \bind "C-~S-less"               "bookmark-goto 0"
146
147
148 #
149 # Motion + select group
150 #
151
152 \bind "S-Right"                 "char-right-select"
153 \bind "S-Left"                  "char-left-select"
154 \bind "S-Up"                    "up-select"
155 \bind "S-Down"                  "down-select"
156 \bind "S-C-Right"               "word-right-select"
157 \bind "S-C-Left"                "word-left-select"
158 \bind "S-C-Up"                  "paragraph-up-select"
159 \bind "S-C-Down"                "paragraph-down-select"
160 \bind "S-Home"                  "line-begin-select"
161 \bind "S-End"                   "line-end-select"
162 \bind "S-Prior"                 "screen-up-select"
163 \bind "S-Next"                  "screen-down-select"
164 \bind "S-C-Home"                "buffer-begin-select"
165 \bind "S-C-End"                 "buffer-end-select"
166 \bind "S-M-C-Home"              "inset-begin-select"
167 \bind "S-M-C-End"               "inset-end-select"
168 \bind "C-Insert"                "copy"
169 \bind "S-Insert"                "paste"
170 \bind "S-Delete"                "cut"
171
172 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
173 \bind "S-KP_Right"              "char-right-select"
174 \bind "S-KP_Left"               "char-left-select"
175 \bind "S-KP_Up"                 "up-select"
176 \bind "S-KP_Down"               "down-select"
177 \bind "S-C-KP_Right"            "word-right-select"
178 \bind "S-C-KP_Left"             "word-left-select"
179 \bind "S-C-KP_Up"               "paragraph-up-select"
180 \bind "S-C-KP_Down"             "paragraph-down-select"
181 \bind "S-KP_Home"               "line-begin-select"
182 \bind "S-KP_End"                "line-end-select"
183 \bind "S-KP_Prior"              "screen-up-select"
184 \bind "S-KP_Next"               "screen-down-select"
185 \bind "S-C-KP_Home"             "buffer-begin-select"
186 \bind "S-C-KP_End"              "buffer-end-select"
187 \bind "S-C-KP_Prior"            "buffer-begin-select"
188 \bind "S-C-KP_Next"             "buffer-end-select"
189 \bind "C-KP_Insert"             "copy"
190 \bind "S-KP_Insert"             "paste"
191 \bind "S-KP_Delete"             "cut"
192
193 #
194 # bookmarks
195 #
196
197 \bind "C-~S-1"                  "bookmark-goto 1"
198 \bind "C-~S-2"                  "bookmark-goto 2"
199 \bind "C-~S-3"                  "bookmark-goto 3"
200 \bind "C-~S-4"                  "bookmark-goto 4"
201 \bind "C-~S-5"                  "bookmark-goto 5"
202 \bind "C-~S-6"                  "bookmark-goto 6"
203 \bind "C-~S-7"                  "bookmark-goto 7"
204 \bind "C-~S-8"                  "bookmark-goto 8"
205 \bind "C-~S-9"                  "bookmark-goto 9"
206 \bind "C-M-~S-1"                "bookmark-save 1"
207 \bind "C-M-~S-2"                "bookmark-save 2"
208 \bind "C-M-~S-3"                "bookmark-save 3"
209 \bind "C-M-~S-4"                "bookmark-save 4"
210 \bind "C-M-~S-5"                "bookmark-save 5"
211 \bind "C-M-~S-6"                "bookmark-save 6"
212 \bind "C-M-~S-7"                "bookmark-save 7"
213 \bind "C-M-~S-8"                "bookmark-save 8"
214 \bind "C-M-~S-9"                "bookmark-save 9"
215
216
217 #
218 # Edit group
219 #
220
221 \bind "C-Delete"                "word-delete-forward"
222 \bind "C-BackSpace"             "word-delete-backward"
223 \bind "M-Return"                "break-paragraph inverse"
224 \bind "C-Return"                "newline-insert newline"
225 \bind "C-S-Return"              "newline-insert linebreak"
226 \bind "C-k"                     "line-delete-forward"
227 \bind "C-space"                 "space-insert protected"
228 \bind "nobreakspace"            "space-insert protected"
229 \bind "C-M-space"               "space-insert normal"
230 \bind "S-C-space"               "space-insert thin"
231 \bind "C-period"                "specialchar-insert end-of-sentence"
232 \bind "M-period"                "specialchar-insert dots"
233 \bind "Escape"                  "cancel"
234 \bind "F9"                      "meta-prefix"
235
236 # Include menu and math bindings
237
238 \bind_file menus.bind
239 \bind_file math.bind
240 \bind_file latinkeys.bind
241 \bind_file cyrkeys.bind
242 \bind_file greekkeys.bind