summaryrefslogtreecommitdiff
path: root/.config/tmux/tmux.conf
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2026-02-21 16:13:03 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2026-02-21 16:13:03 +0100
commit8f17e10ef947506aac6902f72902303185fd1af8 (patch)
treea238cf70610d1ac47888e7124939f8d06d1408b9 /.config/tmux/tmux.conf
parent0529a8a19c332b30ae177bc75493bb16cf6be120 (diff)
Update sesh
Diffstat (limited to '.config/tmux/tmux.conf')
-rw-r--r--.config/tmux/tmux.conf20
1 files changed, 10 insertions, 10 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 3275731..04618aa 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -91,29 +91,29 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -
# ─── Floating Terminal ────────────────────────────────────────────────────────
-bind-key -n -N 'Toggle popup window' M-g if-shell -F '#{==:#{session_name},popup}' {
+bind-key -n -N 'Toggle popup window' M-g if-shell -F '#{m:popup-*,#{session_name}}' {
detach-client
} {
display-popup -d "#{pane_current_path}" \
- -xC -yC -w 80% -h 75% \
- -E 'tmux attach-session -t popup || tmux new-session -s popup'
+ -xC -yC -w 80% -h 75% \
+ -E "~/.config/tmux/popup.sh"
}
-
+
# ─── Sesh ─────────────────────────────────────────────────────────────────────
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 | 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-f:change-prompt(\uf002 )+reload(fd -H -d 2 -t d . ~)' \
+ --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-f:change-prompt(\uf002 )+reload(fd -H -d 2 -t d . ~)' \
--preview 'sesh preview {}' \
--preview-window 'right:55%'
)\""