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 (1265B)
---
1 line\_snap\_delimiter
2 =====================
3
4 Description
5 -----------
6 The primary use-case would be snap selecting a line in a terminal
7 multiplexer like tmux. Such selection would typically select across
8 all panes, whereas the user most likely wanted to select only the line
9 within a pane.
10
11 This patch adds following new variable into `config.def.h`:
12 * `snap_line_delimiters`: this is the array of (multi-byte) characters which
13 will terminate a line snap selection. By default it
14 contains the `tmux` window pane separator `│`.
15
16 Notes
17 -----
18 * When snap selecting a line and dragging it, the selection can span multiple
19 panes. It's probably possible to address this in follow-up patches.
20
21 * The new delimiter variable does *not* affect word snap selection. If you want
22 to ignore certain characters when double tapping a word for seleciton, add that
23 character to `worddelimiters` in `config.def.h`. However, if a word snap selection
24 does select the line snap delimiter, a subsequent line snap selection will de-select
25 that character again anyway.
26
27 Download
28 --------
29 * [st-line\_snap\_delimiter-3bd7e43.diff](st-line_snap_delimiter-3bd7e43.diff)
30
31 Authors
32 -------
33 * Michael Buch - <michaelbuch12@gmail.com>