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

Find a pane through fuzzy searching of path, title and content #2032

Open
cryptocode opened this issue Aug 3, 2024 · 2 comments
Open

Find a pane through fuzzy searching of path, title and content #2032

cryptocode opened this issue Aug 3, 2024 · 2 comments
Labels
feature-design Almost-accepted feature request pending design. gui GUI or app issue regardless of platform (i.e. Swift, GTK)

Comments

@cryptocode
Copy link
Collaborator

(This feature idea may depend on #189)

As many programmers living in the terminal, I usually have a fair number of windows, tabs and splits open at the same time. I think it would be a significant QoL improvement to be able to quickly find a specific pane based on fuzzy searching paths and content.

It could work something like this:

Meta+find pane opens a window similar to the "Show All Tabs" feature that already exists, but instead it shows all tabs from all windows along with a search field.

As you start fuzzy searching, the window with the closest match is moved to the top (because the window list gets reordered)

Matching criteria would likely prioritize the pane's working directory, window title, and reverse search of content (since you're most likely looking for something you were recently working on).

Below is a mockup where the user is searching for a path. Only windows containing a pane with that path (or text) is shown. Hovering a match zooms in a bit so it's legible.

Clicking not only opens the window, it brings you to the matching tab and the matching split:

search
@jcollie
Copy link
Collaborator

jcollie commented Aug 3, 2024

It would be good to expose this to Gnome Search as well as to macOS' Spotlight as well. Not sure how it would interact with similar options in KDE or other Linux desktop environments.

I've messed a bit with Gnome search providers but don't have anything fully working yet.

@mitchellh mitchellh changed the title [Feature request] Find a pane through fuzzy searching of path, title and content Find a pane through fuzzy searching of path, title and content Oct 2, 2024
@mitchellh mitchellh added the gui GUI or app issue regardless of platform (i.e. Swift, GTK) label Oct 6, 2024
@pluiedev
Copy link
Contributor

Not sure how it would interact with similar options in KDE

I actually have experience with this! Ghostty could register itself as a KRunner plugin via D-Bus, and return a list of results based on the query. Not sure how many people would actually use this, but hey, it is possible.

@pluiedev pluiedev added the feature-design Almost-accepted feature request pending design. label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-design Almost-accepted feature request pending design. gui GUI or app issue regardless of platform (i.e. Swift, GTK)
Projects
None yet
Development

No branches or pull requests

4 participants