Add pj as main tool to list projects

(https://github.com/josephschmitt/pj)
This commit is contained in:
Yax 2026-03-05 08:53:14 +01:00
parent 13fa659245
commit 042593d834
3 changed files with 20 additions and 1 deletions

View file

@ -123,7 +123,7 @@ bind-key "s" run-shell "sesh connect \"$(
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
--bind 'ctrl-f:change-prompt(🔎 )+reload(find_projects)' \
--bind 'ctrl-f:change-prompt(🔎 )+reload(pj)' \
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
--preview-window 'right:55%' \
--preview 'sesh preview {}'

View file

@ -0,0 +1,18 @@
# Paths to search for projects
search_paths:
- {{ .projectdir }}
# Maximum directory depth to search
max_depth: 6
# Patterns to exclude from search
excludes:
- node_modules
- .git
- .gitlab
- target
- dist
- build
# Cache TTL in seconds (43200: 12 hours)
cache_ttl: 43200

View file

@ -1 +1,2 @@
# fallback to pj (https://github.com/josephschmitt/pj)
fd -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2-