Closed muellerto closed 1 year ago
Hi @muellerto. Done for ..
. What about a single dot? Should it suggest the current directory, or is it maybe too much?
Yes, I've seen that already a single dot leads to the suggestion. Let it as is. That suggestion doesn't hurt.
Great! So, if ..
is working as intended, I guess we can close this issue then.
Describe the bug No, not a bug.
But when I type
...
I get a correct prediction of the destination directory. When I type..
I get instead a suggestion of a path. The suggestion happens also when the suggested path (which comes from history) doesn't exist.To Reproduce I don't use the
b
command very often. Instead I use..
and...
and....
a lot. The prediction on the right side helps a lot to see what will happen, that's indeed a great feature.But when I type only
..
it's different. In this case a path is taken from the history, it's then not a prediction but a suggestion. This leads to three minor problems: a) you have to learn this b) you must know yourself where .. will end up - OK, you have the current working directory one line above c) the suggested path can be wrong (and indeed this is often the case)In the following picture I typed
..
, the path/Tools/
is suggested. But indeed the parent directory has no Tools anywhere:What happens now when I use the suggestion?
Not good. I understand that history is an important feature. But here it's counterproductive. It leads to a wrong result.
Expected behavior General, if a history entry should be used to complete a user input it should only then be used as a suggestion when the execution has at least the potential to be successful. May be this could be difficult to find out but in the case of a directory change that should always be easy to check. This will lead to the situation that
..
in directory A will show a different suggestion than..
in directory B, and that will be right.I ask my brain also about the difference between
..
and...
- I for my taste would rather see the same prediction as after...
also already after..
That's easy to understand: the user sees what will happen. Indeed I almost never use the suggestion from history (especially because it's not safe). Perhaps an option like "use suggestions from history for .." would be good, and when this option is off..
should behave like...
and....
Desktop