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
Expand candidate without closing the completion prompt #397
Comments
I have considered this approach, but it only allows "prefix matching". If there are multiple filenames in the directory with the same prefix, such as If users want to modify the search keyword to make the results more accurate, they would need to cycle back to the first option or use a special "cancel key" to cancel the selection, which adds complexity. In the current way, we can extend it by implementing fuzzy matching - "ct" matches "Cargo.toml", "cl" matches "Cargo.lock", and users only need to press |
I'm not sure what you mean. Isn't this how it currently works (except that the first candidate is automatically selected)?
If the user wants to make the results more accurate, they can just keep on typing to narrow down the results before cycling through the candidates. That's how I usually do it in other editors. Actually, this also doesn't sound any different from how it currently works, can you clarify? Fuzzy completion would definitely be an awesome addition though. |
Current autocomplete in Yazi is not just "prefix matching". If we implement the issue's approach would lead to:
then press
press
press
It changed from nvim.mp4In zsh like this: zsh.mp4Their candidates start with |
Hmmm, I don't think it's strange. This is how my neovim's Peek.2023-11-24.21-35.webm |
Is your feature request related to a problem? Please describe
With the completion menu, you can't expand a candidate without closing the completion or moving into the selected directory. This feels unintuitive compared to the completion methods found in other editors/IDEs.
Will you be willing to contribute this feature?
Describe the solution you'd like
We should be able to expand a candidate without closing the window. To make this work, the first candidate should also not be automatically selected (which is the current default behavior).
For example:
We can then press
<Tab>
a few times:Then we can add
/
to enter into the subdirectory:Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: