]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
several small and larger changes, read the Changelog
[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 ## Documents menu
30 #
31 # These are now defined in cua or emacs bind files so their "standard"
32 # bindings are available. (eg M-d "word-delete-forward" in emacs) ARRae
33
34 \bind "M-d p"                   "buffer-previous"
35 \bind "M-d space"               "menu-open Documents"
36
37 ###
38
39 \bind "C-n"                     "buffer-new"
40 \bind "C-S-N"                   "buffer-new-template"
41 \bind "C-o"                     "buffer-open"
42 \bind "C-r"                     "buffer-reload"
43 \bind "C-w"                     "buffer-close"
44 \bind "C-s"                     "buffer-write"
45 \bind "C-S-S"                   "buffer-write-as"
46 \bind "C-p"                     "buffer-print" 
47 \bind "C-d"                     "buffer-view"           # 'd' for dvi
48 \bind "C-t"                     "buffer-view-ps"
49 \bind "C-S-D"                   "buffer-typeset"        # 'd' for dvi
50 \bind "C-S-T"                   "buffer-typeset-ps"
51 \bind "C-q"                     "lyx-quit"
52
53 \bind "C-b"                     "font-bold"
54 \bind "C-e"                     "font-emph"
55 \bind "C-k"                     "font-noun"             # 'k' for capitals
56 \bind "C-l"                     "tex-mode"              # 'l' for LaTeX
57 \bind "C-u"                     "font-underline"
58 \bind "C-S-P"                   "font-code"             # 'P' for program
59
60 \bind "C-m"                     "math-mode"
61 \bind "C-S-M"                   "math-display"
62
63 \bind "C-f"                     "find-replace"
64 \bind "C-g"                     "error-next"
65 \bind "C-i"                     "open-stuff"            # 'i' for Inset
66
67 \bind "C-c"                     "copy"
68 \bind "C-x"                     "cut"
69 \bind "C-v"                     "paste"
70
71 \bind "C-S-C"                   "layout-copy"
72 \bind "C-S-V"                   "layout-paste"
73
74 \bind "C-z"                     "undo"
75 \bind "C-S-Z"                   "redo"
76
77 \bind "S-C-quotedbl"            "quote-insert"
78 \bind "C-minus"                 "hyphenation-point-insert"
79 \bind "M-S-Right"               "depth-increment"
80 \bind "M-S-Left"                "depth-decrement"
81 \bind "C-S-space"               "protected-space-insert"
82
83 #bind "F1"                      "help"                  # Not yet implemented!
84 #bind "C-F1"                    "help-context"          # Not yet implemented!
85 \bind "F2"                      "buffer-write"
86 \bind "F3"                      "buffer-open"
87 \bind "C-F4"                    "buffer-close"
88 \bind "F5"                      "screen-recenter"
89 \bind "M-F4"                    "lyx-quit"
90 \bind "F7"                      "spellchecker"
91
92 \bind "M-x"                     "command-execute"
93
94 #
95 # Motion group
96 #
97
98 \bind "C-Right"                 "word-forward"
99 \bind "C-Left"                  "word-backward"
100 \bind "C-Up"                    "paragraph-up"
101 \bind "C-Down"                  "paragraph-down"
102 \bind "C-Home"                  "buffer-begin"
103 \bind "C-End"                   "buffer-end"
104
105 \bind "C-~S-greater"            "reference-goto"
106 \bind "C-~S-less"               "reference-back"
107
108
109 #
110 # Motion + select group
111 #
112
113 \bind "S-Right"                 "forward-select"
114 \bind "S-Left"                  "backward-select"
115 \bind "S-Up"                    "up-select"
116 \bind "S-Down"                  "down-select"
117 \bind "S-C-Right"               "word-forward-select"
118 \bind "S-C-Left"                "word-backward-select"
119 \bind "S-C-Up"                  "paragraph-up-select"
120 \bind "S-C-Down"                "paragraph-down-select"
121 \bind "S-Home"                  "line-begin-select"
122 \bind "S-End"                   "line-end-select"               
123 \bind "S-Prior"                 "screen-up-select"
124 \bind "S-Next"                  "screen-down-select"
125 \bind "S-C-Home"                "buffer-begin-select"
126 \bind "S-C-End"                 "buffer-end-select"
127 \bind "C-Insert"                "copy"
128 \bind "S-Insert"                "paste"
129 \bind "S-Delete"                "cut"
130
131 #
132 # Edit group
133 #
134
135 \bind "C-Delete"                "word-delete-forward"
136 \bind "C-BackSpace"             "word-delete-backward"
137 \bind "M-Return"                "break-paragraph-keep-layout"
138 \bind "C-Return"                "break-line"
139 \bind "C-space"                 "protected-space-insert"
140 \bind "C-period"                "end-of-sentence-period-insert"
141 \bind "M-period"                "dots-insert"
142 \bind "Escape"                  "cancel"
143 \bind "F9"                      "meta-prefix"
144
145 # Include menu and math bindings
146
147 \bind_file menus.bind
148 \bind_file math.bind