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