update
This commit is contained in:
parent
e0b5cd81e9
commit
06a0839578
4 changed files with 30 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
[
|
[
|
||||||
"io.gitlab.librewolf-community",
|
"io.gitlab.librewolf-community",
|
||||||
"zen",
|
|
||||||
"jetbrains-goland",
|
"jetbrains-goland",
|
||||||
"com.mitchellh.ghostty",
|
"com.mitchellh.ghostty",
|
||||||
"com.system76.CosmicFiles",
|
"com.system76.CosmicFiles",
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,35 @@ lockbw ()
|
||||||
}
|
}
|
||||||
|
|
||||||
tmux-new () {
|
tmux-new () {
|
||||||
local -r name=${(U)1-"$(basename $(pwd))"}
|
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}')
|
||||||
tmux new-session -d -s $name
|
[ -z "$dir" ] && return 1
|
||||||
tmux switch-client -t $name
|
|
||||||
|
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 () {
|
load-profile () {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit a63a434124ffbfd6c9aba98bcc0a954444a72225
|
Subproject commit a0c5c41ea19453998334d18f1b9710e4eaeea6cf
|
||||||
Loading…
Add table
Add a link
Reference in a new issue