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
find: automatically open/enter when there is one match #916
Comments
This is not feasible. It simply opens an input and does not block to wait for user input. In fact, all commands in Yazi are asynchronous, so state dependencies between such commands are not a reasonable design. |
Thanks for the input. I think that's reasonable, especially if the
|
This might make more sense to implement as a plugin. Going to close for now. |
Sorry for the late reply, this is a reasonable need, but I need some time to think about how to better implement it, reopening |
Please describe the problem you're trying to solve
Similar to the
find
command in ranger, if there's only a single match in the results the matched file or directory will automatically be entered/opened. This saves pressing the enter key two times.Would you be willing to contribute this feature?
Describe the solution you'd like
A new argument for
find
command that allows automatically executing another command, such as smart-enter, when there is one match remaining. The user is also put back into normal mode after.The config might look something like the following
Additional context
No response
The text was updated successfully, but these errors were encountered: