aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenxuan <wenxuangm@gmail.com>2021-12-27 09:43:28 +0800
committerGitHub <noreply@github.com>2021-12-27 09:43:28 +0800
commit1241fc5682850fe41812cad81c76541674ee305b (patch)
treeacb6bbe8c82be7a041b940e6a47c64371bed0224
parent3c02503dd519162eb63de5814f460046664f33c2 (diff)
parent3c77bf6144087662c7a9db419d31968b5e073694 (diff)
downloadfork-tmux-fzf-url-1241fc5682850fe41812cad81c76541674ee305b.tar.gz
fork-tmux-fzf-url-1241fc5682850fe41812cad81c76541674ee305b.tar.bz2
fork-tmux-fzf-url-1241fc5682850fe41812cad81c76541674ee305b.zip
Merge pull request #20 from thiagowfx/empty
display message when no URLs are matched
-rwxr-xr-xfzf-url.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf-url.sh b/fzf-url.sh
index b7e72ad..c779569 100755
--- a/fzf-url.sh
+++ b/fzf-url.sh
@@ -49,7 +49,7 @@ items=$(printf '%s\n' "${urls[@]}" "${wwws[@]}" "${ips[@]}" "${gits[@]}" "${extr
sort -u |
nl -w3 -s ' '
)
-[ -z "$items" ] && exit
+[ -z "$items" ] && tmux display 'tmux-fzf-url: no URLs found' && exit
mapfile -t chosen < <(fzf_filter <<< "$items" | awk '{print $2}')