From 3007fa8f6ce39ec86f32a07ede15416c2b1aaf81 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Fri, 24 Jul 2015 22:25:37 +0200 Subject: [PATCH] added urlview integration --- .tmux.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" +# } +# # $@