thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.74k stars 241 forks source link

URL paranthesis #714

Closed andsanmar closed 3 years ago

andsanmar commented 4 years ago

If in an url ends in parenthesis+dot, it uses it for opening the link (e.g. (https://github.com/thestinger/termite). will open https://github.com/thestinger/termite/).

cap4096 commented 4 years ago

This is probably the same as #718

mvdan commented 4 years ago

I solved this for my old X11 terminal emulator by writing https://github.com/mvdan/xurls - it's regex-based, but smart enough to deal with surrounding characters.

I wish there was a way to use it with Termite, but there doesn't seem to be a way right now.

Another option would be to simply copy xurls' regular expression for http/https URLs, which isn't all that large. That should only need to be updated once a year or so.

thestinger commented 3 years ago

Termite is obsolete. Please use Alacritty instead. See https://github.com/thestinger/termite#termite-is-obsoleted-by-alacritty for more details.