]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
back to tabular-insert
[lyx.git] / lib / bind / cua.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 CUA (Common User Access) flavour bind file, based on 
12 # bindings found in the Windows, Mac and Motif world.
13 #
14 #
15 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
16 # with every new install of LyX and your changes will be lost. 
17 # Instead, customize a copy of this file placed in 
18 # ~/.lyx/bind/cua.bind
19 #
20 # Happy tuning!
21
22 # Free bindings:
23
24 #\bind "C-a"
25 #\bind "C-h"
26 #\bind "C-j"
27 #\bind "C-y"
28
29
30 ###
31
32 \bind "C-n"                     "buffer-new"
33 \bind "C-S-N"                   "buffer-new-template"
34 \bind "C-o"                     "file-open"
35 \bind "C-r"                     "buffer-reload"
36 \bind "C-w"                     "buffer-close"
37 \bind "C-s"                     "buffer-write"
38 \bind "C-S-S"                   "buffer-write-as"
39 \bind "C-p"                     "buffer-print" 
40 \bind "C-d"                     "buffer-view dvi"       # 'd' for dvi
41 \bind "C-t"                     "buffer-view ps"
42 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
43 \bind "C-S-T"                   "buffer-update ps"
44 \bind "C-q"                     "lyx-quit"
45
46 \bind "C-b"                     "font-bold"
47 \bind "C-e"                     "font-emph"
48 # used below for line-delete-forward
49 #\bind "C-k"                    "font-noun"             # 'k' for capitals
50 \bind "C-u"                     "font-underline"
51 \bind "C-S-P"                   "font-code"             # 'P' for program
52
53 \bind "C-m"                     "math-mode"
54 \bind "C-S-M"                   "math-display"
55
56 \bind "C-f"                     "find-replace"
57 \bind "C-g"                     "error-next"
58 \bind "C-i"                     "inset-toggle"          # 'i' for Inset
59
60 \bind "C-c"                     "copy"
61 \bind "C-x"                     "cut"
62 \bind "C-v"                     "paste"
63
64 \bind "C-S-C"                   "layout-copy"
65 \bind "C-S-V"                   "layout-paste"
66
67 \bind "C-z"                     "undo"
68 \bind "C-S-Z"                   "redo"
69
70 \bind "~S-C-quotedbl"           "self-insert \""
71 \bind "C-minus"                 "hyphenation-point-insert"
72 \bind "M-S-Right"               "depth-increment"
73 \bind "M-S-Left"                "depth-decrement"
74 \bind "C-S-space"               "protected-space-insert"
75 \bind "C-S-L"                   "ligature-break-insert"
76 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
77
78 #bind "F1"                      "help"                  # Not yet implemented!
79 #bind "C-F1"                    "help-context"          # Not yet implemented!
80 \bind "F2"                      "buffer-write"
81 \bind "F3"                      "file-open"
82 \bind "C-F4"                    "buffer-close"
83 \bind "F5"                      "screen-recenter"
84 \bind "M-F4"                    "lyx-quit"
85 \bind "F7"                      "spellchecker"
86 \bind "S-F7"                    "thesaurus-entry"
87
88 \bind "M-x"                     "command-execute"
89
90 #
91 # Motion group
92 #
93
94 \bind "C-Right"                 "word-forward"
95 \bind "C-Left"                  "word-backward"
96 \bind "C-Up"                    "paragraph-up"
97 \bind "C-Down"                  "paragraph-down"
98 \bind "C-Home"                  "buffer-begin"
99 \bind "C-End"                   "buffer-end"
100
101 \bind "C-~S-greater"            "reference-goto"
102 \bind "C-~S-less"               "bookmark-goto 0"
103
104
105 #
106 # Motion + select group
107 #
108
109 \bind "S-Right"                 "forward-select"
110 \bind "S-Left"                  "backward-select"
111 \bind "S-Up"                    "up-select"
112 \bind "S-Down"                  "down-select"
113 \bind "S-C-Right"               "word-forward-select"
114 \bind "S-C-Left"                "word-backward-select"
115 \bind "S-C-Up"                  "paragraph-up-select"
116 \bind "S-C-Down"                "paragraph-down-select"
117 \bind "S-Home"                  "line-begin-select"
118 \bind "S-End"                   "line-end-select"               
119 \bind "S-Prior"                 "screen-up-select"
120 \bind "S-Next"                  "screen-down-select"
121 \bind "S-C-Home"                "buffer-begin-select"
122 \bind "S-C-End"                 "buffer-end-select"
123 \bind "C-Insert"                "copy"
124 \bind "S-Insert"                "paste"
125 \bind "S-Delete"                "cut"
126
127 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
128 \bind "S-KP_Right"              "forward-select"
129 \bind "S-KP_Left"               "backward-select"
130 \bind "S-KP_Up"                 "up-select"
131 \bind "S-KP_Down"               "down-select"
132 \bind "S-C-KP_Right"            "word-forward-select"
133 \bind "S-C-KP_Left"             "word-backward-select"
134 \bind "S-C-KP_Up"               "paragraph-up-select"
135 \bind "S-C-KP_Down"             "paragraph-down-select"
136 \bind "S-KP_Home"               "line-begin-select"
137 \bind "S-KP_End"                "line-end-select"               
138 \bind "S-KP_Prior"              "screen-up-select"
139 \bind "S-KP_Next"               "screen-down-select"
140 \bind "S-C-KP_Home"             "buffer-begin-select"
141 \bind "S-C-KP_End"              "buffer-end-select"
142 \bind "S-C-KP_Prior"            "buffer-begin-select"
143 \bind "S-C-KP_Next"             "buffer-end-select"
144 \bind "C-KP_Insert"             "copy"
145 \bind "S-KP_Insert"             "paste"
146 \bind "S-KP_Delete"             "cut"
147
148 #
149 # bookmarks
150 #
151
152 \bind "C-~S-1"                  "bookmark-goto 1"
153 \bind "C-~S-2"                  "bookmark-goto 2"
154 \bind "C-~S-3"                  "bookmark-goto 3"
155 \bind "C-M-~S-1"                "bookmark-save 1"
156 \bind "C-M-~S-2"                "bookmark-save 2"
157 \bind "C-M-~S-3"                "bookmark-save 3"
158
159
160 #
161 # Edit group
162 #
163
164 \bind "C-Delete"                "word-delete-forward"
165 \bind "C-BackSpace"             "word-delete-backward"
166 \bind "M-Return"                "break-paragraph-keep-layout"
167 \bind "C-Return"                "break-line"
168 \bind "C-k"                     "line-delete-forward"
169 \bind "C-space"                 "protected-space-insert"
170 \bind "C-period"                "end-of-sentence-period-insert"
171 \bind "M-period"                "dots-insert"
172 \bind "Escape"                  "cancel"
173 \bind "F9"                      "meta-prefix"
174
175 # Include menu and math bindings
176
177 \bind_file menus.bind
178 \bind_file math.bind
179 \bind_file latinkeys.bind
180 \bind_file cyrkeys.bind
181 \bind_file greekkeys.bind