index.md - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
index.md (892B)
---
1 Modal
2 =====
3
4 Description
5 -----------
6 This patch adds an insert mode to surf. While in the insert mode the
7 hotkeys without a MODKEY cannot be used, which allows you to type into a
8 text area/field without clashing with the hotkeys.
9
10 This patch modifies both the `config.def.h` and `surf.c` and removes
11 MODKEY modifier from most of the hotkeys (e.g. 'MODKEY+j' is now just
12 'j'). If you modify the patch to only apply to `surf.c` you should at
13 least have two hotkeys with a function called `insert`:
14
15 { 0, GDK_KEY_i, insert, { .i = 1 } },
16 { 0, GDK_KEY_Escape, insert, { .i = 0 } },
17
18 Note that if the modifier is `0`, `GDK_KEY_Escape` is the only key that
19 you can use to get out of the insert mode.
20
21 Download
22 --------
23 * [surf-modal-20190209-d068a38.diff](surf-modal-20190209-d068a38.diff)
24
25 Author
26 ------
27 * Sunur Efe Vural <efe@efe.kim>