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

Substitute and not go to the directory when _ZO_ECHO='1' #739

Closed
ashiquelal opened this issue Feb 28, 2024 · 3 comments
Closed

Substitute and not go to the directory when _ZO_ECHO='1' #739

ashiquelal opened this issue Feb 28, 2024 · 3 comments

Comments

@ashiquelal
Copy link

I have set _ZO_ECHO='1'. Is it possible to make zoxide work such that when I type z , it autocompletes but doesn't go to the directory?

I am using ZSH with Oh-my-zsh.

@ajeetdsouza
Copy link
Owner

ajeetdsouza commented Feb 28, 2024

Could you further describe your use case?

@ajeetdsouza ajeetdsouza added the waiting-for-response Waiting for a response from the issue author. label Feb 28, 2024
@ashiquelal
Copy link
Author

ashiquelal commented Mar 2, 2024

Right now, if I type "z dir_name" and press tab. I directly go into that folder. I want it to just turn it into "z absolute_path_to_dir" with out going into the folder. Similar to how zsh_z works. This is so that I can edit the path.

@github-actions github-actions bot removed the waiting-for-response Waiting for a response from the issue author. label Mar 2, 2024
@ajeetdsouza
Copy link
Owner

I'm assuming you're referring to the new space-tab feature where you can select a directory from the interactive picker and zoxide immediately cd's to it.

This is intentional, zoxide is designed to make your workflow as fast as possible. There will of course be specific instances where it doesn't work - the only thing that will work consistently every time is the original cd command. The idea of zoxide is to take shortcuts to save you time on 90% on your cd invocations.

Unless there is more demand for a feature like this, it's hard to justify slowing down most space-tab invocations to speed up this particular workflow.

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

2 participants