-
Notifications
You must be signed in to change notification settings - Fork 720
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
[BUG] :e <directory> #5274
Comments
@donaldcallen I believe this is intentional as part of how the tab completion works. Imagine we have a directory structure like so:
And we open kakoune in this directory. Let's imagine that we want to navigate to However, what if we knew we wanted Speaking for myself, I think the current behavior is what I want kakaoune to do, and I don't imagine you're going to find many proponents of changing it. |
Yes, you are right. When you enter enough of the directory name to be unambiguous, it does the right thing. Thanks for setting me straight on this. |
yeah; to put it differently: tab completion is not supposed to be
a destructive action. It should be possible to undo `tab` with
`s-tab`. But as soon as you do anything else, a new completion
session will start. `refresh_completions()` is the responsible function.
Would be interesting to find out if the insert mode completion approach
would work better here.
|
Version of Kakoune
Kakoune 2024.05.18
Reproducer
Enter :e and then begin typing a directory that is in the current directory. When the correct directory appears in the bar above the command area, press tab. You will get the entire directory name followed by '/', but the contents of the directory do not appear. However, instead of pressing tab to complete the dirname, you type the rest of it instead, followed by the /, you are now shown the contents of the directory. So the same characters (the dirname + /) follow the :e in both cases, but the outcomes are very different. Furthermore, in the first case (where the contents of the directory are not shown), if you press up-arrow or right-arrow, the contents of the directory will be shown. Where is this documented? I was not able to find it.
Outcome
Already described above.
Expectations
I expect the same argument to :e, however you arrive at it, to produce the same outcome -- the contents of the directory.
Additional information
I'm running kak on an up-to-date Arch Linux system.
The text was updated successfully, but these errors were encountered: