Adjust tmux-sessionizer key-binds and filenames
This commit is contained in:
parent
6fb6caa4cc
commit
8e93ac0fac
@ -22,12 +22,13 @@ bind r source-file "~/.config/tmux/tmux.conf" \; display-message "tmux.conf relo
|
||||
|
||||
# kill the current session
|
||||
bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
|
||||
bind-key W kill-session
|
||||
bind-key W kill-session # TODO: if i can combine this into the above when only 1 session remains, do so
|
||||
|
||||
# custom find using tmux-sessionizer
|
||||
# custom find and switching for sessions using tmux-sessionizer
|
||||
unbind-key f
|
||||
bind-key f run-shell "tmux neww ~/.local/bin/tmux-sessionizer existing"
|
||||
bind-key F run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
||||
bind-key f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
||||
bind-key F run-shell "tmux neww ~/.local/bin/tmux-sessionizer existing"
|
||||
bind-key H run-shell "tmux neww ~/.local/bin/tmux-sessionizer hub"
|
||||
|
||||
# bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && $EDITOR TODO.md || $EDITOR ~/personal/dev/todo.md"
|
||||
|
||||
|
@ -5,8 +5,9 @@ switch_to() {
|
||||
}
|
||||
|
||||
hydrate() {
|
||||
local tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate"
|
||||
local tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-default"
|
||||
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
|
||||
# TODO: add special case: [[ "$1" = "hub" ]] && tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-hub"
|
||||
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 "source $tmux_hydrate_path" c-M
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user