Run urlscan if available

This commit is contained in:
gardouille 2024-03-14 16:39:37 +01:00
parent e2abef71ae
commit 9636339acf
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
##
## Dépendances:
## physlock: lightweight Linux console locking tool (CTRL+b x).
## urlview: Extracts URLs from text (CTRL+b u).
## urlview|urlscan: Extracts URLs from text (CTRL+b u).
## cmatrix: Simulates the display from "The Matrix" used both with *physlock* (CTRL-b x).
### colors {{{
@ -132,7 +132,8 @@ bind C-s set-window-option synchronize-panes
# Present a menu of URLs to open from visible pane
bind-key u capture-pane \;\
save-buffer ~/.tmux/.tmux-buffer \;\
if 'command -v urlview' 'split-window -l 15 "urlview ~/.tmux/.tmux-buffer"'
if 'command -v urlview' 'split-window -l 15 "urlview ~/.tmux/.tmux-buffer"' \;\
if 'command -v urlscan' 'split-window -l 15 "urlscan ~/.tmux/.tmux-buffer"'
# Create a new session
unbind C-t