3 ms·
I made a script to feed URLS to fzf so that I can select and open the url with partial keywords. For example, you can enter 'prod region1 bestservice' to inter
by flying_sheep 8y ago
I made a script to feed URLS to fzf so that I can select and open the url with partial keywords.
For example, you can enter 'prod region1 bestservice' to interactive open the URL.
Here is the script:
#!/usr/bin/env fish
function +fzf_open_url
[ -z "$FZF_OPEN_URL_LIST" ]; and echo "Please configure \$FZF_OPEN_URL_LIST first." >&2; and return
set -l result ( \
cat $FZF_OPEN_URL_LIST \
| sort \
| uniq \
| grep -ve '^$' \
| fzf --bind "enter:execute-silent:open {}" \
)
end
Gist: https://gist.github.com/hktonylee/ca56920dd0323c1c40726764d1d21b7e https://gist.github.com/hktonylee/ca56920dd0323c1c40726764d1...