feat: Adds email keybind to tmux config, updates tmux-sessionator to skip choosing if an argument is passed in so the tss alias works better.

This commit is contained in:
2025-11-01 17:25:04 -04:00
parent 9c7940b5fa
commit 005403f939
2 changed files with 4 additions and 3 deletions

View File

@@ -58,12 +58,12 @@ function create_email_session() {
tmux send-keys -t email.1 'i2'
}
#################### MAIN ####################
############################## MAIN ##############################
declare choose="${chooseOpt[-1]}"
declare selected=
if [[ -n $choose ]]; then
if [[ -n $choose ]] && [[ $# -eq 0 ]]; then
debug_print "Choose from existing."
selected=$(
tmux list-sessions -F \#S | gum filter \

3
env/.tmux.conf vendored
View File

@@ -74,8 +74,9 @@ bind l next-window
bind -n C-M-h previous-window
bind -n C-M-l next-window
bind e run-shell "tmux-sessionator --email"
bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator"
bind-key -r C run-shell -b "~/.local/share/scripts/tmux-sessionator ~/.dotfiles"
bind-key -r C run-shell -b "$SCRIPTS/tmux-sessionator $DOTFILES"
unbind s
bind s run-shell -b "~/.tmux/plugins/tmux-fzf/scripts/session.sh switch"