Skip to content
rakoo edited this page Oct 6, 2014 · 5 revisions

Sup 0.20 introduces the possibility to open the uri that is under the cursor with the g key. When the user presses the key, sup parses the text that is under the cursor and in the following lines, up to the next paragraph jump (ie 2 newlines). If there is an uri and there is goto hook, it is called with the uri that is parsed.

A good, generic hook is the following script:

system("xdg-open #{uri} > /dev/null")

This requires installation of xdg-utils. On archlinux, there is a packet for this, called xdg-utils

Clone this wiki locally