]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
typos
[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-r"                     "buffer-reload"
41 \bind "C-w"                     "buffer-close"
42 \bind "C-s"                     "buffer-write"
43 \bind "C-S-S"                   "buffer-write-as"
44 \bind "C-p"                     "dialog-show print"
45 \bind "C-d"                     "buffer-view dvi"       # 'd' for dvi
46 \bind "C-t"                     "buffer-view ps"
47 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
48 \bind "C-S-T"                   "buffer-update ps"
49 \bind "C-q"                     "lyx-quit"
50 \bind "C-Next"                  "buffer-next"
51 \bind "C-Prior"                 "buffer-previous"
52
53 \bind "C-b"                     "font-bold"
54 \bind "C-e"                     "font-emph"
55 # used below for line-delete-forward
56 #\bind "C-k"                    "font-noun"             # 'k' for capitals
57 \bind "C-u"                     "font-underline"
58 \bind "C-S-P"                   "font-code"             # 'P' for program
59
60 \bind "C-m"                     "math-mode"
61 \bind "C-S-M"                   "math-display"
62
63 \bind "C-f"                     "dialog-show findreplace"
64 \bind "C-g"                     "error-next"
65 \bind "C-i"                     "next-inset-toggle"             # 'i' for Inset
66
67 \bind "C-c"                     "copy"
68 \bind "C-x"                     "cut"
69 \bind "C-v"                     "paste"
70 \bind "C-S-v"                   "clipboard-paste"
71 \bind "C-M-v"                   "primary-selection-paste"
72
73 \bind "C-z"                     "undo"
74 \bind "C-y"                     "redo"
75 \bind "C-S-Z"                   "redo"
76
77 \bind "C-a"                     "command-sequence buffer-begin ; buffer-end-select"   # select all
78
79 \bind "C-S-E"                   "changes-track"  # it's what MS Word uses
80 \bind "~S-M-quotedbl"           "quote-insert single"
81 \bind "~S-C-quotedbl"           "self-insert \""
82 \bind "C-minus"                 "hyphenation-point-insert"
83 \bind "M-S-Right"               "depth-increment"
84 \bind "M-S-Left"                "depth-decrement"
85 \bind "C-S-L"                   "ligature-break-insert"
86 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
87
88 #bind "F1"                      "help"                  # Not yet implemented!
89 #bind "C-F1"                    "help-context"          # Not yet implemented!
90 \bind "F2"                      "buffer-write"
91 \bind "F3"                      "file-open"
92 \bind "C-F4"                    "buffer-close"
93 \bind "M-F4"                    "lyx-quit"
94 \bind "F5"                      "screen-recenter"
95 \bind "C-F6"                    "buffer-next"
96 \bind "C-S-F6"                  "buffer-previous"
97 \bind "F7"                      "dialog-show spellchecker"
98 \bind "S-F7"                    "thesaurus-entry"
99
100 \bind "M-x"                     "command-execute"
101
102 #
103 # Motion group
104 #
105
106 \bind "M-Up"                    "paragraph-move-up"
107 \bind "M-Down"                  "paragraph-move-down"
108 \bind "C-Right"                 "word-forward"
109 \bind "C-Left"                  "word-backward"
110 \bind "C-Up"                    "paragraph-up"
111 \bind "C-Down"                  "paragraph-down"
112 \bind "C-Home"                  "buffer-begin"
113 \bind "C-End"                   "buffer-end"
114
115 \bind "C-~S-greater"            "label-goto"
116 \bind "C-~S-less"               "bookmark-goto 0"
117
118
119 #
120 # Motion + select group
121 #
122
123 \bind "S-Right"                 "forward-select"
124 \bind "S-Left"                  "backward-select"
125 \bind "S-Up"                    "up-select"
126 \bind "S-Down"                  "down-select"
127 \bind "S-C-Right"               "word-forward-select"
128 \bind "S-C-Left"                "word-backward-select"
129 \bind "S-C-Up"                  "paragraph-up-select"
130 \bind "S-C-Down"                "paragraph-down-select"
131 \bind "S-Home"                  "line-begin-select"
132 \bind "S-End"                   "line-end-select"
133 \bind "S-Prior"                 "screen-up-select"
134 \bind "S-Next"                  "screen-down-select"
135 \bind "S-C-Home"                "buffer-begin-select"
136 \bind "S-C-End"                 "buffer-end-select"
137 \bind "C-Insert"                "copy"
138 \bind "S-Insert"                "paste"
139 \bind "S-Delete"                "cut"
140
141 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
142 \bind "S-KP_Right"              "forward-select"
143 \bind "S-KP_Left"               "backward-select"
144 \bind "S-KP_Up"                 "up-select"
145 \bind "S-KP_Down"               "down-select"
146 \bind "S-C-KP_Right"            "word-forward-select"
147 \bind "S-C-KP_Left"             "word-backward-select"
148 \bind "S-C-KP_Up"               "paragraph-up-select"
149 \bind "S-C-KP_Down"             "paragraph-down-select"
150 \bind "S-KP_Home"               "line-begin-select"
151 \bind "S-KP_End"                "line-end-select"
152 \bind "S-KP_Prior"              "screen-up-select"
153 \bind "S-KP_Next"               "screen-down-select"
154 \bind "S-C-KP_Home"             "buffer-begin-select"
155 \bind "S-C-KP_End"              "buffer-end-select"
156 \bind "S-C-KP_Prior"            "buffer-begin-select"
157 \bind "S-C-KP_Next"             "buffer-end-select"
158 \bind "C-KP_Insert"             "copy"
159 \bind "S-KP_Insert"             "paste"
160 \bind "S-KP_Delete"             "cut"
161
162 #
163 # bookmarks
164 #
165
166 \bind "C-~S-1"                  "bookmark-goto 1"
167 \bind "C-~S-2"                  "bookmark-goto 2"
168 \bind "C-~S-3"                  "bookmark-goto 3"
169 \bind "C-~S-4"                  "bookmark-goto 4"
170 \bind "C-~S-5"                  "bookmark-goto 5"
171 \bind "C-M-~S-1"                "bookmark-save 1"
172
173
174 #
175 # Edit group
176 #
177
178 \bind "C-Delete"                "word-delete-forward"
179 \bind "C-BackSpace"             "word-delete-backward"
180 \bind "M-Return"                "break-paragraph-keep-layout"
181 \bind "C-Return"                "break-line"
182 \bind "C-k"                     "line-delete-forward"
183 \bind "C-space"                 "space-insert protected"
184 \bind "C-M-space"                       "space-insert normal"
185 \bind "S-C-space"                       "space-insert thin"
186 \bind "C-period"                "end-of-sentence-period-insert"
187 \bind "M-period"                "dots-insert"
188 \bind "Escape"                  "cancel"
189 \bind "F9"                      "meta-prefix"
190
191 # Include menu and math bindings
192
193 \bind_file menus.bind
194 \bind_file math.bind
195 \bind_file latinkeys.bind
196 \bind_file cyrkeys.bind
197 \bind_file greekkeys.bind