diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-02-21 16:13:03 +0100 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-02-21 16:13:03 +0100 |
| commit | 8f17e10ef947506aac6902f72902303185fd1af8 (patch) | |
| tree | a238cf70610d1ac47888e7124939f8d06d1408b9 | |
| parent | 0529a8a19c332b30ae177bc75493bb16cf6be120 (diff) | |
Update sesh
| -rw-r--r-- | .config/sesh/sesh.toml | 1 | ||||
| -rw-r--r-- | .config/tmux/tmux.conf | 20 |
2 files changed, 10 insertions, 11 deletions
diff --git a/.config/sesh/sesh.toml b/.config/sesh/sesh.toml index f9dd891..9210591 100644 --- a/.config/sesh/sesh.toml +++ b/.config/sesh/sesh.toml @@ -12,4 +12,3 @@ path = "~/projects/ocvx-portfolio" [[session]] name = "dotfiles" path = "~/.config" -startup_command = "nvim tmux/tmux.conf" 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%' )\"" |