diff options
author | Wenxuan <wenxuangm@gmail.com> | 2018-04-06 12:08:01 +0800 |
---|---|---|
committer | Wenxuan <wenxuangm@gmail.com> | 2018-04-06 12:09:02 +0800 |
commit | 7c025728aefe0833df149ee06a5356b506ee46c9 (patch) | |
tree | 07304372f1172a6161450942afc6649bdb6040da | |
parent | 296e879633744cc87369847e78706f8c4aa3e15f (diff) | |
download | fork-tmux-fzf-url-7c025728aefe0833df149ee06a5356b506ee46c9.tar.gz fork-tmux-fzf-url-7c025728aefe0833df149ee06a5356b506ee46c9.tar.bz2 fork-tmux-fzf-url-7c025728aefe0833df149ee06a5356b506ee46c9.zip |
Exit immediately when no url matched
-rwxr-xr-x | fzf-url.tmux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf-url.tmux b/fzf-url.tmux index 878dae2..8ac4b9e 100755 --- a/fzf-url.tmux +++ b/fzf-url.tmux @@ -13,7 +13,7 @@ tmux_set() { tmux set-option -gq "$1" "$2" } -fzf_cmd="fzf-tmux --multi --cycle --reverse --bind='ctrl-u:half-page-up' --bind='ctrl-d:half-page-down' --bind='ctrl-r:toggle-all' --bind='ctrl-s:toggle-sort'" +fzf_cmd="fzf-tmux --multi --exit-0 --cycle --reverse --bind='ctrl-u:half-page-up' --bind='ctrl-d:half-page-down' --bind='ctrl-r:toggle-all' --bind='ctrl-s:toggle-sort'" url_regex='\b(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]' if hash xdg-open &>/dev/null; then open_cmd='nohup xdg-open' |