aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'tmux')
-rw-r--r--tmux/.tmux.conf27
1 files changed, 20 insertions, 7 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
index 90908db..4f9097c 100644
--- a/tmux/.tmux.conf
+++ b/tmux/.tmux.conf
@@ -107,11 +107,11 @@ bind - split-window -v -c "#{pane_current_path}"
# change the path for newly created windows
bind c new-window -c "#{pane_current_path}"
-bind C-e display-popup -E "\
- tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
- sed '/^$/d' |\
- fzf --reverse --header jump-to-session |\
- xargs tmux switch-client -t"
+# bind C-e display-popup -E "\
+# tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
+# sed '/^$/d' |\
+# fzf --reverse --header jump-to-session |\
+# xargs tmux switch-client -t"
# search windows in current session
bind C-f display-popup -E "\
@@ -121,10 +121,23 @@ bind C-f display-popup -E "\
cut -d ' ' -f 1 |\
xargs tmux select-window -t"
+bind-key C-k run-shell "sesh connect \"$(
+ sesh list --icons | fzf-tmux -p 55%,60% \
+ --no-sort --reverse --ansi --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 --icons)' \
+ --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
+ --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
+ --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
+ --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
+ --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)'
+)\""
+
# Move tmux status bar to top
-bind-key C-k run-shell "tmux set-option -g status-position top;"
+# bind-key C-k run-shell "tmux set-option -g status-position top;"
# Move tmux status bar to bottom
-bind-key C-j run-shell "tmux set-option -g status-position bottom;"
+# bind-key C-j run-shell "tmux set-option -g status-position bottom;"
unbind r
unbind '"'