ajeetdsouza / zoxide

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

cd default behavior support #671

Open xenoterracide opened 5 months ago

xenoterracide commented 5 months ago

if I init with --cmd cd then I think that cd<space><tab> should list the current sub directories.

Perhaps instead we could have a different behavior option, for example

init zsh --cmd c --alias cd where alias cd would also add the normal behavior for cd<space><tab> and, e.g cd<space>j<tab>, etc. possibly blocking any behavior that would not work under those circumstances. It doesn't have to do everything, I'd just like to retain normal cd behavior when calling it cd.

related #352

ajeetdsouza commented 5 months ago

if I init with --cmd cd then I think that cd<space><tab> should list the current sub directories.

It does. Could you upload a screenshot of what it is showing you on your system?

toelke commented 5 months ago

I see the same behaviour. I cannot use <tab> to cd into "normal" directories:

https://github.com/ajeetdsouza/zoxide/assets/183276/88466092-b2fa-4e10-a797-995171541160

xenoterracide commented 5 months ago

inspired by the video

Screencast from 2024-02-15 13-02-34.webm