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