diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 2fa870e..ff1ae6e 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -27,6 +27,25 @@ bind F12 send-keys F12 bind s choose-tree-index +# View current pane in editor +bind-key y { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + display-popup -E -w 90% -h 80% "nvim /tmp/tmux-buffer" +} + +bind-key Y { + capture-pane -J -S - -E - + save-buffer /tmp/tmux-buffer + delete-buffer + display-popup -E -w 90% -h 80% "nvim /tmp/tmux-buffer" +} + +bind t display-popup -E -h 70% -w 60% +bind c clock-mode + + # Switch new session bind n new-session -c ~ # Switch new named session