diff options
author | Wenxuan <wenxuangm@gmail.com> | 2021-12-27 09:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 09:43:28 +0800 |
commit | 1241fc5682850fe41812cad81c76541674ee305b (patch) | |
tree | acb6bbe8c82be7a041b940e6a47c64371bed0224 | |
parent | 3c02503dd519162eb63de5814f460046664f33c2 (diff) | |
parent | 3c77bf6144087662c7a9db419d31968b5e073694 (diff) | |
download | fork-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-x | fzf-url.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}') |