diff options
| -rwxr-xr-x | .config/tmux/popup.sh | 14 | ||||
| -rw-r--r-- | .config/tmux/tmux.conf | 14 |
2 files changed, 11 insertions, 17 deletions
diff --git a/.config/tmux/popup.sh b/.config/tmux/popup.sh index 15eed1a..7017cad 100755 --- a/.config/tmux/popup.sh +++ b/.config/tmux/popup.sh @@ -1,13 +1,3 @@ #!/bin/sh -parent=$(tmux display-message -p "#{session_name}") -popup="popup-$parent" - -if tmux has-session -t "$popup" 2>/dev/null; then - tmux attach-session -t "$popup" -else - tmux new-session -s "$popup" \; \ - rename-window "build" \; \ - new-window -n "test" \; \ - new-window -n "repl" \; \ - select-window -t 1 -fi +parent=$(tmux display-message -p '#S') +tmux attach -t "popup-${parent}" 2>/dev/null || tmux new-session -s "popup-${parent}" diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 04618aa..875da08 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -58,6 +58,10 @@ unbind % bind c new-window -c "#{pane_current_path}" bind s list-sessions +# ─── AI ────────────────────────────────────────────────────────────────────── + +bind a split-window -h -p 40 'claude' + # ─── Pane Navigation (Colemak: m/n/e/i = left/down/up/right) ───────────────── bind -n M-m select-pane -L @@ -105,14 +109,14 @@ set -g detach-on-destroy off bind -N "last-session (via sesh)" L run-shell "sesh last" bind-key T run-shell "sesh connect \"$( - sesh list --icons | grep -v '^popup-' | fzf-tmux -p 80%,70% \ + sesh list --icons | grep -v 'popup-' | fzf-tmux -p 80%,70% \ --no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \ --header ' ^a all ^t tmux ^g configs ^x zoxide ^d kill ^f find' \ --bind 'tab:down,btab:up' \ - --bind 'ctrl-a:change-prompt(\uf0e7 )+reload(sesh list --icons)' \ - --bind 'ctrl-t:change-prompt(\uf2d2 )+reload(sesh list -t --icons)' \ - --bind 'ctrl-x:change-prompt(\uf013 )+reload(sesh list -z --icons)' \ - --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(\uf1f8 )+reload(sesh list --icons)' \ + --bind 'ctrl-a:change-prompt(\uf0e7 )+reload(sesh list --icons | grep -v popup-)' \ + --bind 'ctrl-t:change-prompt(\uf2d2 )+reload(sesh list -t --icons | grep -v popup-)' \ + --bind 'ctrl-x:change-prompt(\uf013 )+reload(sesh list -z --icons | grep -v popup-)' \ + --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(\uf1f8 )+reload(sesh list --icons | grep -v popup-)' \ --bind 'ctrl-f:change-prompt(\uf002 )+reload(fd -H -d 2 -t d . ~)' \ --preview 'sesh preview {}' \ --preview-window 'right:55%' |