From 9604951bd9ee88d621a15a38753b094eb5a87071 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 29 Sep 2020 12:46:18 +0300 Subject: [PATCH] Newer tmux more convenient formatting --- tmux/.tmux.conf | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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' +} -- 2.44.0