]> git.lyx.org Git - lyx.git/blob - lib/bind/mac.bind
Update all of our bind and ui files to format 1.
[lyx.git] / lib / bind / mac.bind
1 # This file is part of
2 # ==================================================================
3 #
4 #                     LyX, the High Level Word Processor
5 #
6 #         Copyright (C) 1995-1997 Asger Alstrup & The LyX Team
7 #
8 # ==================================================================
9
10 #
11 # This is the Mac flavour bind file for LyX/Mac 1.6.x, based on
12 # bindings found in the Mac world.
13 #
14 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
15 # with every new install of LyX and your changes will be lost.
16 # Instead, customize a copy of this file placed in
17 # ~/.lyx/bind/.
18 #
19 # Happy tuning!
20
21 # Free bindings:
22
23 #\bind "C-h"
24 #\bind "C-j"
25 #\bind "C-y"
26
27
28 ###
29
30 Format 1
31
32 \bind "C-n"                             "buffer-new"
33 \bind "C-S-N"                   "buffer-new-template"
34 \bind "C-o"                             "file-open"
35 \bind "C-w"                             "buffer-close"
36 \bind "C-s"                             "buffer-write"
37 \bind "C-S-S"                   "buffer-write-as"
38 \bind "C-p"                             "dialog-show print"
39 \bind "C-d"                             "buffer-view dvi"       # 'd' for dvi
40 \bind "C-t"                             "buffer-view pdf"
41 \bind "C-M-t"                   "master-buffer-view pdf"
42 \bind "C-M-d"                   "master-buffer-view dvi"
43 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
44 \bind "C-S-T"                   "buffer-update pdf"    # (pdflatex; was "ps")
45 \bind "C-M-S-T"                 "master-buffer-update pdf"
46 \bind "C-M-S-D"                 "master-buffer-update dvi"
47 \bind "C-q"                             "lyx-quit"
48 \bind "M-Tab"                   "buffer-next"
49 \bind "M-S-BackTab"             "buffer-previous"
50
51 \bind "C-M-b"                   "font-boldsymbol"
52 \bind "C-b"                             "font-bold"
53 \bind "C-e"                             "font-emph"
54 # used below for line-delete-forward
55 #\bind "C-k"                    "font-noun"             # 'k' for capitals
56 \bind "C-u"                             "font-underline"
57 \bind "C-S-P"                   "font-typewriter" # 'P' for Program
58 \bind "C-S-O"                   "font-strikeout"
59
60 \bind "C-m"                             "math-mode"
61 \bind "C-S-M"                   "math-display"
62 \bind "C-S-r"                   "regexp-mode"
63 \bind "C-M-n"                   "command-sequence math-display; math-number-toggle;"
64
65 \bind "C-f"                             "dialog-show findreplace"
66 \bind "C-S-f"                   "dialog-show findreplaceadv"
67 \bind "C-i"                             "inset-toggle"          # 'i' for Inset
68
69 \bind "C-c"                             "copy"
70 \bind "C-x"                             "cut"
71 \bind "C-v"                             "paste"
72 \bind "C-S-v"                   "clipboard-paste"
73 \bind "C-M-v"                   "primary-selection-paste"
74
75 \bind "C-z"                             "undo"
76 \bind "C-S-Z"                   "redo"
77
78 \bind "C-a"                             "command-sequence buffer-begin ; buffer-end-select"   # select all
79 \bind "C-M-a"                   "inset-select-all"
80
81 \bind "C-S-E"                   "changes-track"  # it's what MS Word uses
82 \bind "~S-M-quotedbl"   "quote-insert single"
83 \bind "~S-C-quotedbl"   "self-insert \""
84 \bind "C-S-underscore"                  "command-alternatives math-macro-fold;specialchar-insert hyphenation"
85 \bind "C-M-minus"               "specialchar-insert nobreakdash"
86 \bind "M-C-Right"               "depth-increment"
87 \bind "M-C-Left"                "depth-decrement"
88 \bind "C-S-L"                   "specialchar-insert ligature-break"
89 \bind "C-l"                             "ert-insert"            # 'l' for LaTeX
90 \bind "C-S-I"                   "info-insert"
91
92 #bind "F1"                              "help"                  # Not yet implemented!
93 #bind "C-F1"                    "help-context"          # Not yet implemented!
94 \bind "F2"                              "buffer-write"
95 \bind "C-g"                             "word-find"
96 \bind "C-F4"                    "buffer-close"
97 \bind "F5"                              "screen-recenter"
98 \bind "C-M-Up"                  "scroll line up"
99 \bind "C-M-Down"                "scroll line down"
100 \bind "C-M-Prior"               "scroll page up"
101 \bind "C-M-Next"                "scroll page down"
102 \bind "F7"                              "dialog-show spellchecker"
103 \bind "S-F7"                    "thesaurus-entry"
104
105 \bind "M-x"                             "command-execute"
106 \bind "C-M-o"                           "dialog-show toc"
107
108 \bind "C-plus"                  "buffer-zoom-in"
109 \bind "C-minus"         "buffer-zoom-out"
110
111 #
112 # Motion group
113 #
114
115 \bind "M-Right"                 "word-right"
116 \bind "M-Left"                  "word-left"
117 \bind "M-Up"                    "paragraph-up"
118 \bind "M-Down"                  "paragraph-down"
119 \bind "C-Up"                    "buffer-begin"
120 \bind "C-Down"                  "buffer-end"
121 \bind "M-C-Up"                  "inset-begin" 
122 \bind "M-C-Down"                "inset-end" 
123 \bind "C-Right"                 "line-end"
124 \bind "C-Left"                  "line-begin"
125
126 \bind "C-~S-greater"    "label-goto"
127 \bind "C-~S-less"               "bookmark-goto 0"
128
129
130 #
131 # Motion + select group
132 #
133
134 \bind "S-Right"                 "char-right-select"
135 \bind "S-Left"                  "char-left-select"
136 \bind "S-Up"                    "up-select"
137 \bind "S-Down"                  "down-select"
138 \bind "S-M-Right"               "word-right-select"
139 \bind "S-M-Left"                "word-left-select"
140 \bind "S-M-Up"                  "paragraph-up-select"
141 \bind "S-M-Down"                "paragraph-down-select"
142 \bind "S-C-Left"                "line-begin-select"
143 \bind "S-C-Right"               "line-end-select"
144 \bind "S-Prior"                 "screen-up-select"
145 \bind "S-Next"                  "screen-down-select"
146 \bind "S-C-Up"                  "buffer-begin-select"
147 \bind "S-C-Down"                "buffer-end-select"
148 \bind "S-M-C-Up"                "inset-begin-select" 
149 \bind "S-M-C-Down"              "inset-end-select" 
150 \bind "C-Insert"                "copy"
151 \bind "S-Insert"                "paste"
152 \bind "S-Delete"                "cut"
153
154 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
155 \bind "S-KP_Right"              "char-right-select"
156 \bind "S-KP_Left"               "char-left-select"
157 \bind "S-KP_Up"                 "up-select"
158 \bind "S-KP_Down"               "down-select"
159 \bind "S-M-KP_Right"    "word-right-select"
160 \bind "S-M-KP_Left"             "word-left-select"
161 \bind "S-M-KP_Up"               "paragraph-up-select"
162 \bind "S-M-KP_Down"             "paragraph-down-select"
163 \bind "S-KP_Home"               "line-begin-select"
164 \bind "S-KP_End"                "line-end-select"
165 \bind "S-KP_Prior"              "screen-up-select"
166 \bind "S-KP_Next"               "screen-down-select"
167 \bind "S-C-KP_Home"             "buffer-begin-select"
168 \bind "S-C-KP_End"              "buffer-end-select"
169 \bind "S-C-KP_Prior"    "buffer-begin-select"
170 \bind "S-C-KP_Next"             "buffer-end-select"
171 \bind "C-KP_Insert"             "copy"
172 \bind "S-KP_Insert"             "paste"
173 \bind "S-KP_Delete"
174
175
176 "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 "M-Delete"                "word-delete-forward"
207 \bind "M-BackSpace"             "word-delete-backward"
208 \bind "M-Return"                "break-paragraph inverse"
209 \bind "C-Return"                "newline-insert newline"
210 \bind "C-S-Return"              "newline-insert linebreak"
211 \bind "C-k"                             "line-delete-forward"
212 \bind "M-space"                 "space-insert protected"
213 \bind "nobreakspace"    "space-insert protected"
214 \bind "C-M-space"               "space-insert normal"
215 \bind "S-M-space"               "space-insert thin"
216 \bind "C-~S-slash"              "specialchar-insert slash"
217 \bind "C-period"                "specialchar-insert end-of-sentence"
218 \bind "M-period"                "specialchar-insert dots"
219 \bind "Escape"                  "cancel"
220 \bind "C-M-Up"                  "paragraph-move-up"
221 \bind "C-M-Down"                "paragraph-move-down"
222 #\bind "F9"                             "meta-prefix"
223
224
225
226 # LyX menu
227 \bind "C-comma"                 "dialog-show prefs"
228
229
230 # Include menu and math bindings
231
232 \bind_file menus.bind
233 \bind_file math.bind
234 \bind_file latinkeys.bind
235 \bind_file cyrkeys.bind
236 \bind_file greekkeys.bind