3 ms·
You can kind of get clickable links in xterm by configuring it to run a command with the current selection on right-click: *VT100.translations: #override \
by yepguy 3y ago
You can kind of get clickable links in xterm by configuring it to run a command with the current selection on right-click:
*VT100.translations: #override \n\
<Btn3Down>: exec-formatted("xdg-open '%t'", PRIMARY)
Now double-click a link to select it, then right-click to open.
- kQq9oHeAz6wLLS 3y agoNice. I left xterm a couple years ago due to this. High time I went back, I think
- yepguy 3y agoI used to have a script that I bound to right-click instead of xdg-open. In addition to opening URLs, it also extracted the current directory from xterm's title so that I could open files with the mouse as well. I called it plumb (after the Plan 9 tool). Unfortunately I lost the script and am not interested in rewriting it, but maybe it gives you some ideas. You could dispatch any action you want based on patterns in the selection.