Add pj as main tool to list projects
(https://github.com/josephschmitt/pj)
This commit is contained in:
parent
13fa659245
commit
042593d834
3 changed files with 20 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ bind-key "s" run-shell "sesh connect \"$(
|
||||||
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
|
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
|
||||||
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
|
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
|
||||||
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --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)' \
|
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
|
||||||
--preview-window 'right:55%' \
|
--preview-window 'right:55%' \
|
||||||
--preview 'sesh preview {}'
|
--preview 'sesh preview {}'
|
||||||
|
|
|
||||||
18
private_dot_config/pj/config.yaml.tmpl
Normal file
18
private_dot_config/pj/config.yaml.tmpl
Normal 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
|
||||||
|
|
@ -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-
|
fd -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2-
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue