url_handler
Give it an url and it will open it how you want.
Browers are anoying so when I can, I open links with dedicated programs. I started out using url_hanlder.sh (from some package I can't find anymore sorry to you original author), but I didn't quite like how it worked, so I rewrote it, and the last version of that monstruous bash script looks like this
A 200 line bash script isn't that bad, but it is really not the ideal medium to handle something as complexe as URI handling. I say URI, because this has evolved into a sort of replacement of xdg-open, by being also able to open paths to local resources, but different
Upstream is my sourcehut instance in case this is uploaded somwhere else
Building
Its go, so go build
, and maybe some go get
s ¯\_(ツ)_/¯
The man pages are compiled with scdoc. It might even be in your repos ¯\_(ツ)_/¯. Compiling them is as easy as scdoc < file.scd > file
, but if you just want to read them, the scdoc format is more or less markdown so it's quit easy to read
Installing
I'll get a PKBGUILD going when it is done, for other distros you're on your own (until somebody find this interesting enough to package it for you.
If there is no installation mehtod for you just put the executable in your path and add a config file in $XDG_CONFIG_HOME/url_handler
on your machine. (XDG_CONFIG_HOME
will most likely be ~/.config
if you haven't done anything funny to you system, but if you had, you would probably know about the xdg base directory spec)
Hacking
Patches are welcome, for now you can send them to [email protected] directly until I set up mailling lists on my sourcehut instance.