]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
More licencing blurbs...
[lyx.git] / lib / bind / cua.bind
1 # file cua.bind
2 # This file is part of LyX, the document processor.
3 # Licence details can be found in the file COPYING.
4
5 # author Asger Alstrup
6 # author Lars Gullik Bjønnes
7 # author Jean-Marc Lasgouttes
8 # author Angus Leeming
9 # author John Levon
10 # author Jürgen Spitzmüller
11 # author Dekel Tsur
12 # author Jürgen Vigna
13 # author Andrew Zabolotny
14
15 # Full author contact details are available in file CREDITS.
16
17 # This is the CUA (Common User Access) flavour bind file, based on 
18 # bindings found in the Windows, Mac and Motif world.
19
20 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
21 # with every new install of LyX and your changes will be lost. 
22 # Instead, customize a copy of this file placed in 
23 # ~/.lyx/bind/cua.bind
24 #
25 # Happy tuning!
26
27 # Free bindings:
28
29 #\bind "C-a"
30 #\bind "C-h"
31 #\bind "C-j"
32 #\bind "C-y"
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
51 \bind "C-b"                     "font-bold"
52 \bind "C-e"                     "font-emph"
53 # used below for line-delete-forward
54 #\bind "C-k"                    "font-noun"             # 'k' for capitals
55 \bind "C-u"                     "font-underline"
56 \bind "C-S-P"                   "font-code"             # 'P' for program
57
58 \bind "C-m"                     "math-mode"
59 \bind "C-S-M"                   "math-display"
60
61 \bind "C-f"                     "dialog-show findreplace"
62 \bind "C-g"                     "error-next"
63 \bind "C-i"                     "inset-toggle"          # 'i' for Inset
64
65 \bind "C-c"                     "copy"
66 \bind "C-x"                     "cut"
67 \bind "C-v"                     "paste"
68
69 \bind "C-z"                     "undo"
70 \bind "C-S-Z"                   "redo"
71
72 \bind "C-S-E"                   "track-changes"  # it's what MS Word uses
73 \bind "~S-C-quotedbl"           "self-insert \""
74 \bind "C-minus"                 "hyphenation-point-insert"
75 \bind "M-S-Right"               "depth-increment"
76 \bind "M-S-Left"                "depth-decrement"
77 \bind "C-S-L"                   "ligature-break-insert"
78 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
79
80 #bind "F1"                      "help"                  # Not yet implemented!
81 #bind "C-F1"                    "help-context"          # Not yet implemented!
82 \bind "F2"                      "buffer-write"
83 \bind "F3"                      "file-open"
84 \bind "C-F4"                    "buffer-close"
85 \bind "F5"                      "screen-recenter"
86 \bind "M-F4"                    "lyx-quit"
87 \bind "F7"                      "dialog-show spellchecker"
88 \bind "S-F7"                    "thesaurus-entry"
89
90 \bind "M-x"                     "command-execute"
91
92 #
93 # Motion group
94 #
95
96 \bind "C-Right"                 "word-forward"
97 \bind "C-Left"                  "word-backward"
98 \bind "C-Up"                    "paragraph-up"
99 \bind "C-Down"                  "paragraph-down"
100 \bind "C-Home"                  "buffer-begin"
101 \bind "C-End"                   "buffer-end"
102
103 \bind "C-~S-greater"            "reference-goto"
104 \bind "C-~S-less"               "bookmark-goto 0"
105
106
107 #
108 # Motion + select group
109 #
110
111 \bind "S-Right"                 "forward-select"
112 \bind "S-Left"                  "backward-select"
113 \bind "S-Up"                    "up-select"
114 \bind "S-Down"                  "down-select"
115 \bind "S-C-Right"               "word-forward-select"
116 \bind "S-C-Left"                "word-backward-select"
117 \bind "S-C-Up"                  "paragraph-up-select"
118 \bind "S-C-Down"                "paragraph-down-select"
119 \bind "S-Home"                  "line-begin-select"
120 \bind "S-End"                   "line-end-select"               
121 \bind "S-Prior"                 "screen-up-select"
122 \bind "S-Next"                  "screen-down-select"
123 \bind "S-C-Home"                "buffer-begin-select"
124 \bind "S-C-End"                 "buffer-end-select"
125 \bind "C-Insert"                "copy"
126 \bind "S-Insert"                "paste"
127 \bind "S-Delete"                "cut"
128
129 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
130 \bind "S-KP_Right"              "forward-select"
131 \bind "S-KP_Left"               "backward-select"
132 \bind "S-KP_Up"                 "up-select"
133 \bind "S-KP_Down"               "down-select"
134 \bind "S-C-KP_Right"            "word-forward-select"
135 \bind "S-C-KP_Left"             "word-backward-select"
136 \bind "S-C-KP_Up"               "paragraph-up-select"
137 \bind "S-C-KP_Down"             "paragraph-down-select"
138 \bind "S-KP_Home"               "line-begin-select"
139 \bind "S-KP_End"                "line-end-select"               
140 \bind "S-KP_Prior"              "screen-up-select"
141 \bind "S-KP_Next"               "screen-down-select"
142 \bind "S-C-KP_Home"             "buffer-begin-select"
143 \bind "S-C-KP_End"              "buffer-end-select"
144 \bind "S-C-KP_Prior"            "buffer-begin-select"
145 \bind "S-C-KP_Next"             "buffer-end-select"
146 \bind "C-KP_Insert"             "copy"
147 \bind "S-KP_Insert"             "paste"
148 \bind "S-KP_Delete"             "cut"
149
150 #
151 # bookmarks
152 #
153
154 \bind "C-~S-1"                  "bookmark-goto 1"
155 \bind "C-~S-2"                  "bookmark-goto 2"
156 \bind "C-~S-3"                  "bookmark-goto 3"
157 \bind "C-M-~S-1"                "bookmark-save 1"
158 \bind "C-M-~S-2"                "bookmark-save 2"
159 \bind "C-M-~S-3"                "bookmark-save 3"
160
161
162 #
163 # Edit group
164 #
165
166 \bind "C-Delete"                "word-delete-forward"
167 \bind "C-BackSpace"             "word-delete-backward"
168 \bind "M-Return"                "break-paragraph-keep-layout"
169 \bind "C-Return"                "break-line"
170 \bind "C-k"                     "line-delete-forward"
171 \bind "C-space"                 "space-insert protected"
172 \bind "C-M-space"                       "space-insert normal"
173 \bind "S-C-space"                       "space-insert thin"
174 \bind "C-period"                "end-of-sentence-period-insert"
175 \bind "M-period"                "dots-insert"
176 \bind "Escape"                  "cancel"
177 \bind "F9"                      "meta-prefix"
178
179 # Include menu and math bindings
180
181 \bind_file menus.bind
182 \bind_file math.bind
183 \bind_file latinkeys.bind
184 \bind_file cyrkeys.bind
185 \bind_file greekkeys.bind