Skip to content
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

update: add find --clear option #1957

Closed
wants to merge 1 commit into from

Conversation

leyiang
Copy link

@leyiang leyiang commented Nov 27, 2024

Add new flag for find command. run find --clear will clear the previous search input.
I usually use find command to search folder and enter, with find --clear I can have this:

[[manager.prepend_keymap]]
on   = "l"
run  = ["plugin smart-enter", "find --clear"]

open folder and also clear search, then don't need to manually type "/" + "Enter" to clear search.

run find --clear command to clear find
@sxyazi
Copy link
Owner

sxyazi commented Nov 27, 2024

escape --find is exactly what you're looking for, https://yazi-rs.github.io/docs/configuration/keymap#manager.escape

Closing as already exists

@sxyazi sxyazi closed this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants