aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenxuan <wenxuangm@gmail.com>2018-04-06 12:08:01 +0800
committerWenxuan <wenxuangm@gmail.com>2018-04-06 12:09:02 +0800
commit7c025728aefe0833df149ee06a5356b506ee46c9 (patch)
tree07304372f1172a6161450942afc6649bdb6040da
parent296e879633744cc87369847e78706f8c4aa3e15f (diff)
downloadfork-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-xfzf-url.tmux2
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'