Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added some emacs-style keys |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7348de7b2ce8b93137cd076d2327b599 |
User & Date: | jmcclure 2020-03-25 23:42:08 |
Context
2020-03-30
| ||
19:14 | Simplified dirsInit; better variable names for colors check-in: 4100a87208 user: jmcclure tags: trunk | |
2020-03-25
| ||
23:42 | Added some emacs-style keys check-in: 7348de7b2c user: jmcclure tags: trunk | |
23:27 | Added paste primary (Shift+Ins default) and clipboard (Ctrl+v default) check-in: 0955f641b8 user: jmcclure tags: trunk | |
Changes
Changes to config.h.
︙ | ︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | { ShiftMask, XK_Insert, paste, { .i = 0 } }, { ControlMask, XK_v, paste, { .i = 1 } }, { 0, 0, NULL, { 0 } }, }; static Key keys_pdf[] = { { 0, XK_Tab, complete, { .v = "pdf" } }, { 0, XK_Return, run, { .v = "pdf" } }, { 0, 0, NULL, { 0 } }, }; /* KEYMAPS: | > > > > > > > > > > > > > > > > | > > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | { ShiftMask, XK_Insert, paste, { .i = 0 } }, { ControlMask, XK_v, paste, { .i = 1 } }, { 0, 0, NULL, { 0 } }, }; static Key keys_emacs[] = { /* FOR THOSE WITH MORE HABITS THAN SANITY */ { ControlMask, XK_a, move, { .i = -MAX } }, { ControlMask, XK_b, move, { .i = -1 } }, { ControlMask, XK_d, del, { .i = +1 } }, { ControlMask, XK_e, move, { .i = +MAX } }, { ControlMask, XK_f, move, { .i = +1 } }, { ControlMask, XK_k, del, { .i = +MAX } }, { ControlMask, XK_u, del, { .i = -MAX } }, { 0, 0, NULL, { 0 } }, }; /* Just here for an example of overriding existing keymaps. * These keys have a similar result as a "hushbang" in Interrobang v1.0. * Include these keys by adding +pdf to the command line, e.g. `interrobang +pdf` */ static Key keys_pdf[] = { { 0, XK_Tab, complete, { .v = "pdf" } }, { 0, XK_Return, run, { .v = "pdf" } }, { 0, 0, NULL, { 0 } }, }; /* KEYMAPS: * Any keymap named "default" is always used (more than one can have the same name). * You can change the name for emacs to default so that those keys are always included. * Each additional keymap is only included if it's name is listed on the command line preceded by a "+". * If a given key binding is included in more than one keymap, the last one take precedence. */ static KeyMap keymaps[] = { { "default", keys }, { "emacs", keys_emacs }, { "pdf", keys_pdf }, { NULL, NULL }, }; |