zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

cd default behavior support

Open xenoterracide opened this issue 1 year ago • 3 comments

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

xenoterracide avatar Jan 22 '24 17:01 xenoterracide

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?

ajeetdsouza avatar Feb 13 '24 11:02 ajeetdsouza

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

toelke avatar Feb 15 '24 07:02 toelke

inspired by the video

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

xenoterracide avatar Feb 15 '24 18:02 xenoterracide