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