-
-
Notifications
You must be signed in to change notification settings - Fork 111
feat(cable): add pj channel for project directory finding #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(cable): add pj channel for project directory finding #902
Conversation
f7d472e to
3c5b702
Compare
Add a new cable channel for `pj`, a fast project directory finder. Includes source commands, preview with `ls`, and actions for expanding paths, opening in $EDITOR, connecting to tmux sessions, opening new tmux tabs, and clearing the pj cache.
3c5b702 to
04950ac
Compare
The pj projects includes Windows builds which should work natively in PowerShell too. The Windows version replaces the tmux commands with wt commands
ac079a3 to
b44c820
Compare
|
I wanted to use the native |
Turns out the docs were just outdated. However it also turns out that the replace syntax can't read the |
|
Cool! A better solution in my opinion might be to make |
@alexpasmantier so it does by default, the What I was struggling to get working (which you can see via some of the issues I opened) is to get At first I tried using plain So what I ended up with instead was to have I’m open to suggestions, I really would much rather do it how you said. But displaying tilde for the home directory instead of the full path is such a nicer UX and cleans up the list so much that this felt worth it |
📺 PR Description
Adds a new cable channel for

pj, a fast project directory finder that searches your filesystem for project directories.Works with monorepos by deeply looking for nested projects, too:

--no-nestedls$EDITOR, connect to tmux session, open new tmux tab, clear cacheTwo of the actions require
tmuxto work. Given they’re optional and not the primary (nor even secondary) actions, I figured it was ok to not listtmuxas a requirement. Let me know if you disagree.Checklist