-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Tab completion should suggest unambiguous path #28
Comments
Thanks for submitting this issue. z will chose a directory based on 'frecency', unless you are explicit with the -Option parameter. I just tried your directory structure by creating the same folder names and indeed, doing a z typescript did go to typescript11821, however, if I 'cd' into 'typescript' a few times then it will have a higher rank and will be chosen in favour of typescript 11821 |
@vincpa Yes, but if I wanted to go to the closest match I wouldn't be using tab selection anyway, I'd just do |
z is about chosing a match based on frequency of access as determined by this formula You shouldn't have to I'm sorry if I don't understand the problem you're having. Perhaps you can make a change to the script via a PR or explain it a bit further with a full example with repeatable steps. |
@vincpa Hopefully a recording will help explain better: I understand that z uses a particular formula to order matches according to usefulness, which is excellent. However, when an option is selected using tab completion (implemented in #17), the user should be taken to the option that they explicitly selected, instead of once again to the most 'frecent' match. If tab selection is also going to take you to the most 'frecent' match, instead of allowing you to explicitly select which match you want to navigate to, there is no point to having tab selection. |
I understand what you are saying now. Thanks for that video :) Suppose you have two directories with the same name, such as "Temporary I do however see usefulness in what you are saying. Let me see if I can fix On 25 October 2016 at 12:45, Asad Saeeduddin notifications@github.com
|
I would still want to be able to select either of them via tab selection, as differentiated by the full path. Thanks for considering the change. My personal suggestion would be to do the following:
|
Two suggestions implemented. Closing ticket and will create a release shortly on PowerShell gallery. Thank you for your useful suggestions. |
With version 1.1.5, switching between tab completion suggestions only yields the name of the deepest directory. This is not sufficient to unambiguously identify the directory in question, so if you have e.g. the following directories in history:
E:\depot\git\TypeScript
E:\depot\untracked\typescript11821
There is no way to tab select
E:\depot\git\TypeScript
. Selecting either option takes you toE:\depot\untracked\typescript11821
.The text was updated successfully, but these errors were encountered: