diff --git a/.tmux.conf b/.tmux.conf index 8a19aca..bcf75d5 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -95,6 +95,11 @@ bind Space last-window # move to last active window bind m run "cut -c3- ~/.tmux.conf | sh -s toggle_mouse" +# -- urlview ------------------------------------------------------------------- + +bind u run "cut -c3- ~/.tmux.conf | sh -s urlview #{pane_id}" + + # -- list choice --------------------------------------------------------------- bind -t vi-choice h tree-collapse @@ -417,4 +422,9 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na # fi # } # +# urlview() { +# tmux capture-pane -J -S - -E - -b urlview-$1 -t $1 +# tmux split-window "(tmux show-buffer -b urlview-$1 | urlview || true); tmux delete-buffer -b urlview-$1" +# } +# # $@