]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
Update french translations, change C-k CUA binding.
[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 # used below for line-delete-forward
49 #\bind "C-k"                    "font-noun"             # 'k' for capitals
50 \bind "C-l"                     "tex-mode"              # 'l' for LaTeX
51 \bind "C-u"                     "font-underline"
52 \bind "C-S-P"                   "font-code"             # 'P' for program
53
54 \bind "C-m"                     "math-mode"
55 \bind "C-S-M"                   "math-display"
56
57 \bind "C-f"                     "find-replace"
58 \bind "C-g"                     "error-next"
59 \bind "C-i"                     "open-stuff"            # 'i' for Inset
60
61 \bind "C-c"                     "copy"
62 \bind "C-x"                     "cut"
63 \bind "C-v"                     "paste"
64
65 \bind "C-S-C"                   "layout-copy"
66 \bind "C-S-V"                   "layout-paste"
67
68 \bind "C-z"                     "undo"
69 \bind "C-S-Z"                   "redo"
70
71 \bind "S-C-quotedbl"            "quote-insert"
72 \bind "C-minus"                 "hyphenation-point-insert"
73 \bind "M-S-Right"               "depth-increment"
74 \bind "M-S-Left"                "depth-decrement"
75 \bind "C-S-space"               "protected-space-insert"
76
77 #bind "F1"                      "help"                  # Not yet implemented!
78 #bind "C-F1"                    "help-context"          # Not yet implemented!
79 \bind "F2"                      "buffer-write"
80 \bind "F3"                      "buffer-open"
81 \bind "C-F4"                    "buffer-close"
82 \bind "F5"                      "screen-recenter"
83 \bind "M-F4"                    "lyx-quit"
84 \bind "F7"                      "spellchecker"
85
86 \bind "M-x"                     "command-execute"
87
88 #
89 # Motion group
90 #
91
92 \bind "C-Right"                 "word-forward"
93 \bind "C-Left"                  "word-backward"
94 \bind "C-Up"                    "paragraph-up"
95 \bind "C-Down"                  "paragraph-down"
96 \bind "C-Home"                  "buffer-begin"
97 \bind "C-End"                   "buffer-end"
98
99 \bind "C-~S-greater"            "reference-goto"
100 \bind "C-~S-less"               "reference-back"
101
102
103 #
104 # Motion + select group
105 #
106
107 \bind "S-Right"                 "forward-select"
108 \bind "S-Left"                  "backward-select"
109 \bind "S-Up"                    "up-select"
110 \bind "S-Down"                  "down-select"
111 \bind "S-C-Right"               "word-forward-select"
112 \bind "S-C-Left"                "word-backward-select"
113 \bind "S-C-Up"                  "paragraph-up-select"
114 \bind "S-C-Down"                "paragraph-down-select"
115 \bind "S-Home"                  "line-begin-select"
116 \bind "S-End"                   "line-end-select"               
117 \bind "S-Prior"                 "screen-up-select"
118 \bind "S-Next"                  "screen-down-select"
119 \bind "S-C-Home"                "buffer-begin-select"
120 \bind "S-C-End"                 "buffer-end-select"
121 \bind "C-Insert"                "copy"
122 \bind "S-Insert"                "paste"
123 \bind "S-Delete"                "cut"
124
125 #
126 # Edit group
127 #
128
129 \bind "C-Delete"                "word-delete-forward"
130 \bind "C-BackSpace"             "word-delete-backward"
131 \bind "M-Return"                "break-paragraph-keep-layout"
132 \bind "C-Return"                "break-line"
133 \bind "C-k"                     "line-delete-forward"
134 \bind "C-space"                 "protected-space-insert"
135 \bind "C-period"                "end-of-sentence-period-insert"
136 \bind "M-period"                "dots-insert"
137 \bind "Escape"                  "cancel"
138 \bind "F9"                      "meta-prefix"
139
140 # Include menu and math bindings
141
142 \bind_file menus.bind
143 \bind_file math.bind