leditrc.example - ledit - Text editor (WIP) | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/ledit.git (encrypted, but very slow) | |
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/… | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
leditrc.example (9086B) | |
--- | |
1 # Note: The compiled-in defaults are slightly different than this example | |
2 # configuration. This is because I changed some things here and forgot to | |
3 # change them in the compiled-in defaults, and I'm too lazy to check for | |
4 # differences at the moment. Additionally, this file includes Urdu and | |
5 # Hindi language mappings which are not included in the compiled-in defa… | |
6 | |
7 theme = { | |
8 text-font = Monospace | |
9 text-size = 12 | |
10 text-fg = 000000 | |
11 text-bg = FFFFFF | |
12 cursor-fg = FFFFFF | |
13 cursor-bg = 000000 | |
14 selection-fg = ffffff | |
15 selection-bg = 000000 | |
16 bar-fg = 000000 | |
17 bar-bg = CCCCCC | |
18 bar-cursor = 000000 | |
19 bar-fmt = "%k%s%l,%b%s%m|%h" | |
20 scrollbar-width = 10 | |
21 scrollbar-step = 20 | |
22 scrollbar-bg = CCCCCC | |
23 scrollbar-fg = 000000 | |
24 highlight-search = false | |
25 extra-line-spacing = 0 | |
26 } | |
27 | |
28 bindings = { | |
29 language = "English (US)" | |
30 basic-keys = { | |
31 bind delete-chars-backwards-multiline keysym backspace m… | |
32 bind cursor-left keysym left modes visual|insert|normal | |
33 bind cursor-right keysym right modes visual|insert|normal | |
34 bind cursor-up keysym up modes visual|insert|normal | |
35 bind cursor-down keysym down modes visual|insert|normal | |
36 bind break-line keysym return modes insert mods any | |
37 bind delete-chars-forwards-multiline keysym delete modes… | |
38 bind return-to-normal keysym escape modes normal|visual|… | |
39 bind enter-insert text "i" modes normal|visual | |
40 bind cursor-left text "h" modes normal|visual | |
41 bind cursor-right text "l" modes normal|visual | |
42 bind cursor-down text "j" modes normal|visual | |
43 bind cursor-up text "k" modes normal|visual | |
44 bind cursor-left text "h" modes normal|visual mods contr… | |
45 bind toggle-hard-line-based text "t" modes normal|visual… | |
46 bind cursor-right keysym space modes normal|visual | |
47 bind cursor-down text "j" modes normal|visual mods contr… | |
48 bind cursor-down text "n" modes normal|visual mods contr… | |
49 bind cursor-up text "p" modes normal|visual mods control | |
50 bind key-0 text "0" modes normal|visual | |
51 bind push-1 text "1" modes normal|visual | |
52 bind push-2 text "2" modes normal|visual | |
53 bind push-3 text "3" modes normal|visual | |
54 bind push-4 text "4" modes normal|visual | |
55 bind push-5 text "5" modes normal|visual | |
56 bind push-6 text "6" modes normal|visual | |
57 bind push-7 text "7" modes normal|visual | |
58 bind push-8 text "8" modes normal|visual | |
59 bind push-9 text "9" modes normal|visual | |
60 bind delete-graphemes-forwards text "x" modes normal | |
61 bind delete-graphemes-backwards text "X" modes normal | |
62 bind delete text "d" modes normal|visual | |
63 bind yank text "y" modes normal|visual | |
64 bind yank-lines text "Y" modes normal | |
65 bind change text "c" modes normal|visual | |
66 bind enter-visual text "v" modes normal | |
67 bind switch-selection-end text "o" modes visual | |
68 bind clipboard-copy text "c" modes normal|insert|visual … | |
69 bind clipboard-paste text "v" modes visual|insert mods c… | |
70 bind show-line text "g" modes normal|visual|insert mods … | |
71 bind enter-commandedit text ":" modes normal|visual | |
72 bind enter-searchedit-backwards text "?" modes normal | |
73 bind enter-searchedit-forwards text "/" modes normal | |
74 bind search-next text "n" modes normal|visual | |
75 bind search-previous text "N" modes normal|visual | |
76 bind undo text "u" modes normal | |
77 bind redo text "U" modes normal | |
78 bind repeat-command text "." modes normal | |
79 bind undo text "z" modes insert mods control | |
80 bind redo text "y" modes insert mods control | |
81 bind screen-up text "b" modes normal mods control | |
82 bind screen-down text "f" modes normal mods control | |
83 bind scroll-with-cursor-down text "e" modes normal mods … | |
84 bind scroll-with-cursor-up text "y" modes normal mods co… | |
85 bind scroll-lines-down text "d" modes normal mods control | |
86 bind scroll-lines-up text "u" modes normal mods control | |
87 bind move-to-eol text "$" modes normal|visual | |
88 bind next-word text "w" modes normal|visual | |
89 bind next-word-end text "e" modes normal|visual | |
90 bind next-bigword text "W" modes normal|visual | |
91 bind next-bigword-end text "E" modes normal|visual | |
92 bind previous-word text "b" modes normal|visual | |
93 bind previous-bigword text "B" modes normal|visual | |
94 bind move-to-line text "G" modes normal|visual | |
95 bind join-lines text "J" modes normal | |
96 bind insert-at-beginning text "I" modes normal | |
97 bind paste-buffer text "p" modes normal | |
98 bind paste-buffer-backwards text "P" modes normal | |
99 bind append-after-eol text "A" modes normal | |
100 bind append-after-cursor text "a" modes normal | |
101 bind append-line-above text "O" modes normal | |
102 bind append-line-below text "o" modes normal | |
103 bind insert-mark text "m" modes normal|visual | |
104 bind jump-to-mark text "'" modes normal|visual | |
105 bind change-to-eol text "C" modes normal | |
106 bind delete-to-eol text "D" modes normal | |
107 bind replace text "r" modes normal | |
108 bind cursor-to-first-non-whitespace text "^" modes norma… | |
109 bind find-next-char-forwards text "t" modes normal|visual | |
110 bind find-next-char-backwards text "T" modes normal|visu… | |
111 bind find-char-forwards text "f" modes normal|visual | |
112 bind find-char-backwards text "F" modes normal|visual | |
113 bind uppercase text "U" modes normal|insert mods control | |
114 bind lowercase text "L" modes normal|insert mods control | |
115 bind insert-text catchall modes insert | |
116 } | |
117 command-keys = { | |
118 bind substitute-yes text "y" modes substitute | |
119 bind substitute-yes-all text "Y" modes substitute | |
120 bind substitute-no text "n" modes substitute | |
121 bind substitute-no-all text "N" modes substitute | |
122 bind edit-submit keysym return mods any modes edit | |
123 bind edit-submit-search keysym return mods any modes edi… | |
124 bind edit-submit-backwards-search keysym return mods any… | |
125 bind edit-cursor-left keysym left modes edit|edit-search… | |
126 bind edit-cursor-right keysym right modes edit|edit-sear… | |
127 bind edit-previous-command keysym up modes edit | |
128 bind edit-next-command keysym down modes edit | |
129 bind edit-previous-search keysym up modes edit-search|ed… | |
130 bind edit-next-search keysym down modes edit-search|edit… | |
131 bind edit-backspace keysym backspace modes edit|edit-sea… | |
132 bind edit-delete keysym delete modes edit|edit-search|ed… | |
133 bind edit-cursor-to-end keysym end modes edit|edit-searc… | |
134 bind edit-cursor-to-beginning keysym home modes edit|edi… | |
135 bind edit-discard keysym escape modes edit|edit-search|e… | |
136 bind edit-insert-text catchall modes edit|edit-search|ed… | |
137 } | |
138 commands = { | |
139 bind write-quit "wq" | |
140 bind write "w" | |
141 bind quit "q" | |
142 bind create-view "v" | |
143 bind close-view "c" | |
144 bind substitute "s" | |
145 } | |
146 } | |
147 | |
148 language-mapping = { | |
149 language = "German" | |
150 key-mapping = { | |
151 map "z" "y" | |
152 map "y" "z" | |
153 map "Z" "Y" | |
154 map "Ö" ":" | |
155 map "_" "?" | |
156 map "-" "/" | |
157 map "ä" "'" | |
158 } | |
159 command-mapping = { | |
160 map "wq" "wq" | |
161 map "w" "w" | |
162 map "q" "q" | |
163 map "v" "v" | |
164 map "c" "c" | |
165 map "s" "s" | |
166 } | |
167 } | |
168 | |
169 language-mapping = { | |
170 language = "Hindi (Bolnagri)" | |
171 key-mapping = { | |
172 map "0" "0" | |
173 map "1" "1" | |
174 map "2" "2" | |
175 map "3" "3" | |
176 map "4" "4" | |
177 map "5" "5" | |
178 map "6" "6" | |
179 map "7" "7" | |
180 map "8" "8" | |
181 map "9" "9" | |
182 map "ा" "a" | |
183 map "आ" "A" | |
184 map "ब" "b" | |
185 map "भ" "B" | |
186 map "च" "c" | |
187 map "छ" "C" | |
188 map "द" "d" | |
189 map "ध" "D" | |
190 map "े" "e" | |
191 map "ै" "E" | |
192 map "ट" "f" | |
193 map "ठ" "F" | |
194 map "ग" "g" | |
195 map "घ" "G" | |
196 map "ह" "h" | |
197 map "ि" "i" | |
198 map "ी" "I" | |
199 map "ज" "j" | |
200 map "झ" "J" | |
201 map "क" "k" | |
202 map "ल" "l" | |
203 map "म" "m" | |
204 map "न" "n" | |
205 map "ण" "N" | |
206 map "ो" "o" | |
207 map "ौ" "O" | |
208 map "प" "p" | |
209 map "फ" "P" | |
210 map "र" "r" | |
211 map "त" "t" | |
212 map "थ" "T" | |
213 map "ु" "u" | |
214 map "ू" "U" | |
215 map "ड" "v" | |
216 map "व" "w" | |
217 map "ॐ" "W" | |
218 map "्" "x" | |
219 map "ॉ" "X" | |
220 map "य" "y" | |
221 map "ञ" "Y" | |
222 map "श" "z" | |
223 map ":" ":" | |
224 map "?" "?" | |
225 map "/" "/" | |
226 map "." "." | |
227 map "$" "$" | |
228 map "'" "'" | |
229 map "^" "^" | |
230 } | |
231 command-mapping = { | |
232 map "व" "wq" | |
233 map "व" "w" | |
234 map "" "q" | |
235 map "ड" "v" | |
236 map "च" "c" | |
237 } | |
238 } | |
239 | |
240 language-mapping = { | |
241 language = "Urdu (Pakistan)" | |
242 key-mapping = { | |
243 map "0" "0" | |
244 map "1" "1" | |
245 map "2" "2" | |
246 map "3" "3" | |
247 map "4" "4" | |
248 map "5" "5" | |
249 map "6" "6" | |
250 map "7" "7" | |
251 map "8" "8" | |
252 map "9" "9" | |
253 map "ا" "a" | |
254 map "آ" "A" | |
255 map "ب" "b" | |
256 map "." "B" | |
257 map "چ" "c" | |
258 map "ث" "C" | |
259 map "د" "d" | |
260 map "ڈ" "D" | |
261 map "ع" "e" | |
262 map "ٰ" "E" | |
263 map "ف" "f" | |
264 map "ّ" "F" | |
265 map "گ" "g" | |
266 map "غ" "G" | |
267 map "ح" "h" | |
268 map "ی" "i" | |
269 map "ِ" "I" | |
270 map "ج" "j" | |
271 map "ض" "J" | |
272 map "ک" "k" | |
273 map "ل" "l" | |
274 map "م" "m" | |
275 map "ن" "n" | |
276 map "ں" "N" | |
277 map "ہ" "o" | |
278 map "ۃ" "O" | |
279 map "پ" "p" | |
280 map "ُ" "P" | |
281 map "ر" "r" | |
282 map "ت" "t" | |
283 map "ٹ" "T" | |
284 map "ء" "u" | |
285 map "ئ" "U" | |
286 map "ط" "v" | |
287 map "و" "w" | |
288 map "ؤ" "W" | |
289 map "ش" "x" | |
290 map "ژ" "X" | |
291 map "ے" "y" | |
292 map "َ" "Y" | |
293 map "ز" "z" | |
294 map ":" ":" | |
295 map "؟" "?" | |
296 map "/" "/" | |
297 map "۔" "." | |
298 map "$" "$" | |
299 map "'" "'" | |
300 map "^" "^" | |
301 } | |
302 command-mapping = { | |
303 map "وق" "wq" | |
304 map "و" "w" | |
305 map "ق" "q" | |
306 map "ط" "v" | |
307 map "چ" "c" | |
308 } | |
309 } |