ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.33k stars 519 forks source link

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

Closed ashiquelal closed 1 month ago

ashiquelal commented 4 months ago

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 commented 4 months ago

Could you further describe your use case?

ashiquelal commented 4 months ago

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.

ajeetdsouza commented 1 month ago

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.