Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
allow direct cd to non-existent target #116
The above case will fail, and this patch fixes that case. A side-effect is that if you try to
it would be nice if there was a fallback to regular directory tab completion too, but I didn't focus on that.
I don't think z is meant to replace cd. I think it's meant to streamline it a bit for long paths or stuff you usually visit.
Also this could make it a problem if for example there is something in the z db that matches "dev" and you have directory named "dev" and you type
I'm not saying or presuming what
But let's speculate what
Really? you can't just like ... pick a reasonable default, and, give them an out by typing ...
Apologies, but I think it's silly to argue about the validity here.
Isn't it better to just use cd by default then? I dunno, seems like it would just complicate matters.
With this commit you can have a cd function which achieves what you need though, it seems jeeger/z@0437fa4
That pull request is in the process of being merged from what I can tell...
I do not wish to have a big fight over this because frankly it is bad use of both our times, we could be doing something much more beneficial.
All I'm saying is that this is not what z was made for, I don't think. If it were it would already be builtin or this pull request would have received attention earlier from an user.
Also, "what will users in general prefer" is not something all devs ask. I think it is more accurate to say that they think "what will my intended userbase prefer?".
People that use z are most probably engrossed in the Unix philosophy, "Write programs that do one thing and do it well".
Even if some did like the workflow you prefer, others wouldn't, like me, and we would have to make another pull request to change it or ask z's author to add an option, which would make z more complex. Complex is never something you want in software development, never.
I repeat, that pull request that is currently in the process of merging makes some changes that allow your workflow to be a reality. :)