From f98b2c56b0149b6b910354f479e0e9f09b762bd1 Mon Sep 17 00:00:00 2001 From: aleidk Date: Fri, 23 Aug 2024 09:51:20 -0400 Subject: [PATCH] Update tmux session management --- scripts/fzf-tmux-sessions | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/fzf-tmux-sessions b/scripts/fzf-tmux-sessions index ebfc8e0..e52eaa6 100755 --- a/scripts/fzf-tmux-sessions +++ b/scripts/fzf-tmux-sessions @@ -1,14 +1,16 @@ #!/usr/bin/env bash sesh connect "$( - sesh list | fzf-tmux -p 55%,60% \ - --no-sort --border-label ' sesh ' --prompt '⚡ ' \ - --header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \ - --bind 'tab:down,btab:up' \ - --bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list)' \ - --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t)' \ - --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c)' \ - --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z)' \ - --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \ - --bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list)' + sesh list --hide-attached --icons | + rg --invert-match '(scratch)' | # exclude this entries, use regex: /(name1|name2)/ + fzf-tmux -p 55%,60% \ + --no-sort --border-label ' sesh ' --prompt '⚡ ' \ + --header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \ + --bind 'tab:down,btab:up' \ + --bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --hide-attached --icons)' \ + --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --hide-attached --icons)' \ + --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --hide-attached --icons)' \ + --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --hide-attached --icons)' \ + --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \ + --bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list --hide-attached --icons)' )"