Skip to content
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

[Feature Request] navigation only within git repo (or other configured "project" tree) #863

Open
petergaultney opened this issue Jul 30, 2024 · 0 comments

Comments

@petergaultney
Copy link

I may be missing something, but so far I haven't found docs for this, or other discussion of this concept.

For me, the motivating use case is a monorepo - and I have multiple clones of it. For others, the use case could be anything where there's a notion of a self-contained "project".

When I'm "in or below" a given directory root, all my z commands would be interpreted as being scoped to that project directory. I frequently want to jump around within that directory, but if I wanted to go "elsewhere", I could use cd to accomplish that (or perhaps zoxide could provide an escape sequence).

I often have many shells open in parallel, and global "frecency" doesn't help me very much, especially since, as I mentioned, I often have multiple clones of the same project, and so a name could refer to any of them, and I might have just switched mental contexts from one project/clone to the other, but zoxide may occasionally assume that I want to go to a directory within the other project.

For my purposes, either an empty dotfile (e.g. .zoxide-root) in the root directory of the 'project' or an environment variable (e.g. ZOXIDE_ROOT=1 - I would set this automagically with direnv, but there might be other ways to do this) would be perfectly acceptable solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant