From 735b92dbcfe2f8f85047110bdd17f48900b12b8e Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Wed, 24 Jun 2026 15:08:33 -0500 Subject: Squashed commit of the following: urlview fix and exit --- env/.local/bin/scripts/urlview.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'env/.local/bin') diff --git a/env/.local/bin/scripts/urlview.sh b/env/.local/bin/scripts/urlview.sh index c4c38d7..797f40f 100755 --- a/env/.local/bin/scripts/urlview.sh +++ b/env/.local/bin/scripts/urlview.sh @@ -1,13 +1,15 @@ #!/bin/sh -url="$(grep -o -e 'http://[^"]*' -e 'https://[^"]*' <&0 | fzf)" +url="$(grep -o -e 'http://[^"]*' -e 'https://[^"]*' <&0 | tr ' ' '\n' | fzf)" +[ "$url" = "" ] && exit choices="\ clipboard browser/xdg-open" choice=$(echo "$choices" | fzf) -choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/') +[ "$choice" = "" ] && exit +choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/') # browser/xdg-open should just run xdg-open if [ "$choice" = "clipboard" ]; then if [ -z "$WAYLAND_DISPLAY" ]; then -- cgit v1.3