From 1779ae2be573292b3c6042e3cf7300cd2754d01a Mon Sep 17 00:00:00 2001 From: Tibor Pilz Date: Tue, 31 Dec 2024 16:09:51 +0100 Subject: [PATCH] feat(tmux): add 'switch workspace' shortcut --- home/modules/shell/tmux.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/modules/shell/tmux.nix b/home/modules/shell/tmux.nix index 4d2eeb7..f6c93b0 100644 --- a/home/modules/shell/tmux.nix +++ b/home/modules/shell/tmux.nix @@ -58,6 +58,9 @@ in # Actually copy to clipboard (on Linux) bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + # Switch to (another) workspace + bind g gotoworkspace + # Attach current directory to session bind a attach -c "#{pane_current_path}" # bind a run-shell "SESSION_NAME=\$(basename '#{pane_current_path}'); tmux rename-session \"\$SESSION_NAME\" ; tmux attach -c '#{pane_current_path}' >/dev/null"