update: added a project selector TUI and tips, brushed up ghosty config.

This commit is contained in:
2026-05-18 22:18:20 +02:00
parent 671d6220d1
commit 97d4712554
6 changed files with 67 additions and 19 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
dirstate=$(cat ~/.config/projectdir.state)
DIR=/home/$(whoami)/$dirstate
# Find directories containing a '.git' folder and get their absolute paths
REPOS=$(find "$(realpath "$DIR")" -maxdepth 5 -name ".git" -type d -exec dirname {} \; | xargs -I {} readlink -f {})
SELECTED=$(echo "$REPOS" | fzf --layout=reverse --preview="clear && eza -al --color=always --group-directories-first --icons {} && echo "-----------------------------------------------------" && cat {}/README.md ")
echo $SELECTED
CMD="code-oss -n $SELECTED"
mmsg -d spawn_shell,"$CMD"