Filterable tab switcher
Check for existing issues
- [X] Completed
Describe the feature
Add search / filter ability to tab switcher.
If applicable, add mockups / screenshots to help present your vision of the feature
Zed:
Emacs:
Since normal cmd-p already shows open buffers at the top, I'm wondering whether just showing that a file is open in Cmd-p would also help here. Or do you think this is specifically about only seeing the open buffers?
I'm wondering whether just showing that a file is open in Cmd-p would also help here.
Yes, I just notice 😅 that there's a horizontal line separating the open buffers and other workspaces files. If the status is shown obviously enough, maybe this FR seems a bit duplicated.
Or do you think this is specifically about only seeing the open buffers?
But anyway if FR is implemented, it would still helpful for someone who just ever want to see open buffers.
if you have a lot of tabs open, it's still nice to be able to filter
Just for documenting purposes. I think having a shortcut as the following is the perfect solution. Basically, it opens the file finder with the history on top. This is not exactly filterable tab switcher, but from my perspective it covers many use cases.
{
{
"context": "Workspace",
"bindings": {
"ctrl-b": ["file_finder::Toggle", { "separate_history": true }]
}
}
Since normal cmd-p already shows open buffers at the top, I'm wondering whether just showing that a file is open in Cmd-p would also help here. Or do you think this is specifically about only seeing the open buffers?
For me cmd-p will show but not filter such files.
I would also prefer a command that only filters on open buffers. I work in a codebase with many similarly named files, and there's a meaningful difference between a switching to the file I know I opened already (of which there is one), vs seeing both that result any the many other files that are in the project.
The mental difference between "there was one match that's it go" probably looks to someone over my shoulder like the window didn't even flash long enough for me to read it. Which is true, I didn't, I just saw one thing there. When there's many results, you have to read them to check if the right one is selected. To my brain, many results = I made a typo when I filtered. Since this buffer search feature exists across FZF and telescope for nvim, I doubt I'm the only one!
tab switcher: toggle all allow you to filter/search for tabs now (perhaps not the most intuitive name,)