]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
8b359063b89f39961e6aca7a86c75d0a2bf78bb4
[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"                     "buffer-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 \bind "C-k"                     "font-noun"             # 'k' for capitals
49 \bind "C-l"                     "tex-mode"              # 'l' for LaTeX
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"                     "open-stuff"            # '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"            "quote-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
76 #bind "F1"                      "help"                  # Not yet implemented!
77 #bind "C-F1"                    "help-context"          # Not yet implemented!
78 \bind "F2"                      "buffer-write"
79 \bind "F3"                      "buffer-open"
80 \bind "C-F4"                    "buffer-close"
81 \bind "F5"                      "screen-recenter"
82 \bind "M-F4"                    "lyx-quit"
83 \bind "F7"                      "spellchecker"
84
85 \bind "M-x"                     "command-execute"
86
87 #
88 # Motion group
89 #
90
91 \bind "C-Right"                 "word-forward"
92 \bind "C-Left"                  "word-backward"
93 \bind "C-Up"                    "paragraph-up"
94 \bind "C-Down"                  "paragraph-down"
95 \bind "C-Home"                  "buffer-begin"
96 \bind "C-End"                   "buffer-end"
97
98 \bind "C-~S-greater"            "reference-goto"
99 \bind "C-~S-less"               "reference-back"
100
101
102 #
103 # Motion + select group
104 #
105
106 \bind "S-Right"                 "forward-select"
107 \bind "S-Left"                  "backward-select"
108 \bind "S-Up"                    "up-select"
109 \bind "S-Down"                  "down-select"
110 \bind "S-C-Right"               "word-forward-select"
111 \bind "S-C-Left"                "word-backward-select"
112 \bind "S-C-Up"                  "paragraph-up-select"
113 \bind "S-C-Down"                "paragraph-down-select"
114 \bind "S-Home"                  "line-begin-select"
115 \bind "S-End"                   "line-end-select"               
116 \bind "S-Prior"                 "screen-up-select"
117 \bind "S-Next"                  "screen-down-select"
118 \bind "S-C-Home"                "buffer-begin-select"
119 \bind "S-C-End"                 "buffer-end-select"
120 \bind "C-Insert"                "copy"
121 \bind "S-Insert"                "paste"
122 \bind "S-Delete"                "cut"
123
124 #
125 # Edit group
126 #
127
128 \bind "C-Delete"                "word-delete-forward"
129 \bind "C-BackSpace"             "word-delete-backward"
130 \bind "M-Return"                "break-paragraph-keep-layout"
131 \bind "C-Return"                "break-line"
132 \bind "C-space"                 "protected-space-insert"
133 \bind "C-period"                "end-of-sentence-period-insert"
134 \bind "M-period"                "dots-insert"
135 \bind "Escape"                  "cancel"
136 \bind "F9"                      "meta-prefix"
137
138 # Include menu and math bindings
139
140 \bind_file menus.bind
141 \bind_file math.bind