diff --git a/src_files/.config/tmux/.tmux-session-hydrate-hub b/src_files/.config/tmux/.tmux-session-hydrate-hub index ea558b3..b1cad20 100644 --- a/src_files/.config/tmux/.tmux-session-hydrate-hub +++ b/src_files/.config/tmux/.tmux-session-hydrate-hub @@ -1,4 +1,12 @@ -tmux rename-window inbox +tmux rename-window notes-cmd +tmux send-keys -t :notes-cmd "cd "$DIR_NOTES"; clear; [[ -d .git ]] && git status" c-M + +tmux new-window -d -n notes-$EDITOR +tmux send-keys -t :notes-$EDITOR "cd "$DIR_NOTES"; $EDITOR inbox" c-M + +tmux new-window -d -n inbox tmux send-keys -t :inbox 'cd "$DIR_INBOX"; clear; ls' c-M + +tmux switch-client -t "hub:2" clear diff --git a/src_files/.config/tmux/tmux.conf b/src_files/.config/tmux/tmux.conf index 0ab69d6..73145b4 100644 --- a/src_files/.config/tmux/tmux.conf +++ b/src_files/.config/tmux/tmux.conf @@ -46,7 +46,6 @@ bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init" bind-key C-s choose-session bind-key S choose-window bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init hub" -bind-key C-j run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init notes" \; switch-client -t "notes:2" bind-key -r C-l switch-client -l bind-key -r C-o last-window bind-key -r C-n next-window diff --git a/src_files/.local/scripts/tmux-session-init b/src_files/.local/scripts/tmux-session-init index 5478b5f..7c416b9 100755 --- a/src_files/.local/scripts/tmux-session-init +++ b/src_files/.local/scripts/tmux-session-init @@ -25,7 +25,6 @@ tmux_target_path='' if [[ $tmux_target_path = "." ]]; then tmux_target_name=$(basename $(pwd)) && tmux_target_path=$(pwd); elif [[ $tmux_target_path = "hub" ]]; then tmux_target_name="hub" && tmux_target_path="$HOME"; -elif [[ $tmux_target_path = "notes" ]]; then tmux_target_name="notes" && tmux_target_path="$DIR_NOTES"; elif [[ -n $tmux_target_path ]]; then tmux_target_name=$(basename "$tmux_target_path" | tr . _); fi