[xdg] Open alfaview:// links
This commit is contained in:
parent
b313fa6fcf
commit
eac2ee61f2
|
@ -4,7 +4,7 @@ set -eo pipefail
|
|||
|
||||
# Strip file:// protocol as file -b will handle this
|
||||
argument=$(echo $1 | sed "s|file://||")
|
||||
url_regex='^(https?|mailto|ftp):/?/?.*'
|
||||
url_regex='^(https?|alfaview|mailto|ftp):/?/?.*'
|
||||
|
||||
if [[ $argument =~ $url_regex ]]; then
|
||||
match=$argument
|
||||
|
@ -21,6 +21,9 @@ case "${match}" in
|
|||
inode/directory)
|
||||
exec browse-folder "${argument}"
|
||||
;;
|
||||
alfaview:*)
|
||||
exec alfaview "${argument}"
|
||||
;;
|
||||
ssh:*)
|
||||
host=$(echo $1 | cut -d "/" -f 3)
|
||||
exec foot ssh "$host"
|
||||
|
|
Loading…
Reference in New Issue