From: Sergey Matveev Date: Tue, 29 Sep 2020 09:46:18 +0000 (+0300) Subject: Newer tmux more convenient formatting X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=9604951bd9ee88d621a15a38753b094eb5a87071 Newer tmux more convenient formatting --- diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7c34248..93eaeeb 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -30,8 +30,26 @@ set-window-option -g window-status-current-format "#I:#W#F" set-window-option -g window-status-current-style "bg=red" set-window-option -g window-status-last-style "bg=cyan" -bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer -bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer -bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer bind-key b set-option status unbind-key L + +bind-key u { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + popup -EK -R "urlview /tmp/tmux-buffer" +} + +bind-key y { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +} + +bind-key Y { + capture-pane -J -S - -E - + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +}