chore: create binding for sesh smart session manager

This commit is contained in:
Stefan Imhoff
2024-01-17 18:39:04 +01:00
parent 4d42881ba6
commit 421316549b
2 changed files with 15 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ tap "homebrew/core"
tap "homebrew/services"
tap "jakehilborn/jakehilborn"
tap "jondot/tap"
tap "joshmedeski/sesh"
tap "koekeishiya/formulae"
tap "micnncim/tap"
tap "ms-jpq/sad"
@@ -496,6 +497,8 @@ brew "fsouza/prettierd/prettierd"
brew "jakehilborn/jakehilborn/displayplacer"
# The scalable code generator that saves you time.
brew "jondot/tap/hygen"
# Smart terminal session manager
brew "joshmedeski/sesh/sesh"
# Simple hotkey-daemon for macOS.
brew "koekeishiya/formulae/skhd"
# A tiling window manager for macOS based on binary space partitioning.

View File

@@ -125,6 +125,17 @@ bind P run "tmux paste-buffer"
set -g @thumbs-command 'echo -n {} | pbcopy'
bind-key "T" run-shell "sesh connect $(
sesh list -tz | fzf-tmux -p 55%,60% \
--no-sort --border-label ' sesh ' --prompt '⚡ ' \
--header ' ^a all ^t tmux ^x zoxide ^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-x:change-prompt(📁 )+reload(sesh list -z)' \
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)'
)"
# ========= Plugins =========
# prefix + I to install, prefix + U to update
@@ -145,7 +156,7 @@ set -g @plugin 'carlocab/tmux-nvr'
set -g @plugin 'jbnicolai/tmux-fpp' # f
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set -g @plugin 'wfxr/tmux-fzf-url' # u
set -g @plugin 'joshmedeski/t-smart-tmux-session-manager'
# set -g @plugin 'joshmedeski/t-smart-tmux-session-manager'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
set -g @plugin 'fcsonline/tmux-thumbs'