Skip to content

Commit 5097bb4

Browse files
thiagowfxwfxr
authored andcommitted
display message when no URLs are matched
This yields a better user experience, providing feedback on the "unhappy path".
1 parent 3c69c40 commit 5097bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fzf-url.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ items=$(printf '%s\n' "${urls[@]}" "${wwws[@]}" "${ips[@]}" "${gits[@]}" "${extr
4949
sort -u |
5050
nl -w3 -s ' '
5151
)
52-
[ -z "$items" ] && exit
52+
[ -z "$items" ] && tmux display 'tmux-fzf-url: no URLs found' && exit
5353

5454
mapfile -t chosen < <(fzf_filter <<< "$items" | awk '{print $2}')
5555

0 commit comments

Comments
 (0)