sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

Home Page:https://yazi-rs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick filter method

oiiiiiiii opened this issue · comments

Please describe the problem you're trying to solve

I'm always frustrated when the following happens:

  1. I search for a directory I want to enter using the filter option
  2. I enter an unambiguous name, so there i only 1 result
  3. I have to manually enter it

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

I understand, that not everyone want to enter a directory they filtered for. Maybe it's supposed to be copied/deleted/etc. But I feel like there should be a better way to navigate. Maybe using capital F as a quick filter method that enters the directory / opens the file once the name is distinct (only 1 result).

Additional context

No response

Hi, I made a plugin for it a few days ago that extends the existing filter - it will automatically enter the only directory, and I've also added other enhancements, like supporting continuous filtering and automatically opening the hovered file on submitting:

screenshot-000464.mp4

Feel free to use it: https://github.com/yazi-rs/plugins/tree/main/smart-filter.yazi

You can find more awesome plugins at https://yazi-rs.github.io/docs/resources

Closing as already exists

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.