From 06a0839578d960e241cb02d5ff419c1100f0b17f Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 7 Mar 2025 06:14:50 -0600 Subject: [PATCH] update --- .../com.system76.CosmicAppList/v1/favorites | 1 - .config/shell/functions.zsh | 32 +++++++++++++++++-- .fzf.completion.zsh | 0 DesktopAnsible | 2 +- 4 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 .fzf.completion.zsh diff --git a/.config/cosmic/com.system76.CosmicAppList/v1/favorites b/.config/cosmic/com.system76.CosmicAppList/v1/favorites index c22dd1a..3c80bf0 100644 --- a/.config/cosmic/com.system76.CosmicAppList/v1/favorites +++ b/.config/cosmic/com.system76.CosmicAppList/v1/favorites @@ -1,6 +1,5 @@ [ "io.gitlab.librewolf-community", - "zen", "jetbrains-goland", "com.mitchellh.ghostty", "com.system76.CosmicFiles", diff --git a/.config/shell/functions.zsh b/.config/shell/functions.zsh index 72a0bfc..838e392 100644 --- a/.config/shell/functions.zsh +++ b/.config/shell/functions.zsh @@ -12,9 +12,35 @@ lockbw () } tmux-new () { - local -r name=${(U)1-"$(basename $(pwd))"} - tmux new-session -d -s $name - tmux switch-client -t $name +local dir=$(find $HOME/Documents/gitlab -mindepth 1 -maxdepth 1 -type d| awk -F/ '{print $(NF-1)"/"$NF " " $0}' | fzf --with-nth=1 | awk '{print $2}') + [ -z "$dir" ] && return 1 + + local name=$(basename "$dir") + tmux new-session -d -s "$name" -c "$dir" + + RIGHT_PANE_WIDTH=60 + BOTTOM_PANE_WIDTH=15 + + tmux split-window -h -t "$name:1" -c "$dir" + tmux resize-pane -t "$name:1.2" -x $RIGHT_PANE_WIDTH + + tmux split-window -v -t "$name:1.1" -c "$dir" + tmux resize-pane -t "$name:1.1" -y $(($(tmux display -p '#{window_height}') - $BOTTOM_PANE_WIDTH)) + + tmux new-window "$name" -n lazygit -c "$dir" + + sleep 1 + tmux send-keys -t "$name:1.1" 'nvim -c "Neotree filesystem reveal left"' C-m + + sleep 0.1 + tmux send-keys -t "$name:1.3" 'unlockbw; nvim +CodeCompanionChat -c only' C-m + + sleep 1 + tmux send-keys -t "$name:2" 'lg' C-m + + tmux select-window -t "$name:1" + tmux select-pane -t "$name:1.1" + tmux switch-client -t "$name" } load-profile () { diff --git a/.fzf.completion.zsh b/.fzf.completion.zsh deleted file mode 100644 index e69de29..0000000 diff --git a/DesktopAnsible b/DesktopAnsible index a63a434..a0c5c41 160000 --- a/DesktopAnsible +++ b/DesktopAnsible @@ -1 +1 @@ -Subproject commit a63a434124ffbfd6c9aba98bcc0a954444a72225 +Subproject commit a0c5c41ea19453998334d18f1b9710e4eaeea6cf