Post #2803722
2025-12-20 13:23 UTC
A very common pattern used in CLI programs that output file paths is to append a line number, and sometimes character position, separated by a colon characters (e.g. `src/main.c:123:20:`), but in X11 the default double-click selection includes the colon character, so you have to manually select the path...
Fortunately in uRXVT you can use the selection perl extension to match these paths with regex:
URxvt.selection.pattern-0: (?<=^|│|┃|║)([A-Za-z0-9_./-]+):[0-9]
And it even supports tmux 😄
Replies (0)
No replies.