Fix bracket interpolation
Fix eval whitespace miss handling
Unify file protocol

heads

tip
browse log

clone

read-only
https://hg.sr.ht/~reedwade/xdg-maxi
read/write
ssh://hg@hg.sr.ht/~reedwade/xdg-maxi

#xdg-maxi

#install

simply use $ make install or $ make install DESTDIR=$HOME

#usage

xdg-open will try to open file protocol with see [run-mailcap] and other protocols have to be configured.

This package provide url-guessopen and url-open. Those scripts are configured and run mailcap ruled programs for matching mime-types.

#configuration examples

.config/maxi/protocols.conf

file: see
http: url-open {} || $BROWSER {}
https: url-open {} || $BROWSER {}
mailto: $PREFTERM -e neomutt
lutris: lutris
rtmp: vlc

This is used by xdg-open to match command for protocols.

.config/maxi/url-mimes.conf

image/x-gif .*gif$
image/x-image .*\(\(png\|jpg\|gif\)\)$
video/x-youtube https://www.youtube.com/watch?
video/x-youtube https://youtu.be/
video/x-peertube https://.*\/videos/watch/.*
video/x-reddit https://v.redd.it/.............

This is used by url-guessopen to match url mime-types. url-open wrap it and match a mailcap command to run.