diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index 1fc7f4a..0e98ce8 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -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 {}' diff --git a/private_dot_config/pj/config.yaml.tmpl b/private_dot_config/pj/config.yaml.tmpl new file mode 100644 index 0000000..63c2c30 --- /dev/null +++ b/private_dot_config/pj/config.yaml.tmpl @@ -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 diff --git a/private_dot_local/bin/executable_find_projects.tmpl b/private_dot_local/bin/executable_find_projects.tmpl index 4c11a31..3cbf59b 100644 --- a/private_dot_local/bin/executable_find_projects.tmpl +++ b/private_dot_local/bin/executable_find_projects.tmpl @@ -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-