-
|
I'm trying to replicate the same setup in #109 but using tmux instead of zellij. Here is the config I've come up with so far: setw -g mode-keys vi
set -g status-keys vi
# Set prefix to Ctrl+Space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Spawn a new tab with Alt + t
bind -n M-t new-window
# Move to next tab with Alt + ]
bind -n M-] next-window
# Move to previous tab with Alt + [
bind -n M-[ previous-windowHowever, when spawning a new tmux window with |
Beta Was this translation helpful? Give feedback.
Answered by
S1M0N38
Nov 5, 2025
Replies: 1 comment
-
# Use vi keybindings
setw -g mode-keys vi
set -g status-keys vi
# Set prefix to Ctrl+Space
unbind C-b
# Spawn a new window with the same command as current window (Alt + t)
bind -n M-t run-shell 'tmux new-window -c "#{pane_current_path}" "exec $(ps -o args= -p #{pane_pid} | tail -1)"'
# Move to next tab with Alt + ]
bind -n M-] next-window
# Move to previous tab with Alt + [
bind -n M-[ previous-window
# Enable mouse support
set -g mouse onKind of a hacky way, but it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
S1M0N38
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kind of a hacky way, but it works.