urxvt-selection(1)
π NAME π
selection β more intelligent selection. that's the whole name, and honestly? iconic. π«Ά
β¨ DESCRIPTION β¨
okay so bestie, this is urxvt-selection(1) from RXVT-UNICODE, and it's the manual page for the selection extension. it tries to be more intelligent when you extend selections β you know, double-click and further clicks β and it's lowkey serving genius energy π
.
right now it tries to select words, urls and complete shell-quoted arguments. that's very convenient too, especially if your ls supports "--quoting-style=shell" β yes bestie, shell quoting matters, iykyk β¨.
a double-click usually selects the word under the cursor, and further clicks will enlarge the selection. simple, cute, effective π.
the selection works by trying to match a number of regexes and displaying them in increasing order of length. you can add your own regexes by specifying resources of the form:
URxvt.selection.pattern-0: perl-regex
URxvt.selection.pattern-1: perl-regex
...
the index number (0, 1...) must not have any holes β no gaps, no skipping, bestie, it's giving sequential only π β and each regex must contain at least one pair of capturing parentheses, which will be used for the match.
for example, this one adds a regex that matches everything between two vertical bars:
URxvt.selection.pattern-0: \\|([^|]+)\\|
another example: programs I use often output "absolute path: " at the beginning of a line when they process multiple files. the following pattern matches the filename β note, there is a single space at the very end, and yes that matters, don't let your editor eat it π:
URxvt.selection.pattern-0: ^(/[^:]+):\
you can peek at the source of the selection extension to see more interesting uses, such as parsing a line from beginning to end. very demure, very mindful, very regex π§.
it also serves up these actions:
rot13β Rot-13 the selection when activated.
example:
URxvt.keysym.C-M-r: selection:rot13
made with π from the urxvt-selection(1) manual, version 9.31, dated 2023-12-02 β bye bestie, go select something cute! π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: rxvt-unicode 9.31-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rxvt-unicode 9.31-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rxvt-unicode 9.31-bp160.1.13 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rxvt-unicode 9.31-bp160.1.13 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms