How to achieve two-step searching with :FzfLua tabs
by tab_title
and filepath?
#1889
Replies: 2 comments 1 reply
-
That’s a similar “solution” to path.filename_first “v2” but I don’t really like it as you get a “match” but cannot see the highlight so it’s hard to know where it’s coming from.
Maybe we can provide a format where you can add whatever you want to the entry, otherwise these requests are very niche IMHO, personally I only use buffers and do not organize my neovim in tabs, I only use tmux left/right panes each with a different neovim instance. |
Beta Was this translation helpful? Give feedback.
-
A SolutionWe can achieve the title by simply toggling the query between
Reference
DEMOfzf-lua-demo-1889.mov |
Beta Was this translation helpful? Give feedback.
-
Description
I use another plugin to set a title when necessary for a given tab to remember the sub-task I want to do in that tab. While fzf-lua creates a virtual entry for each tab and provides
tab_title
to embed more information, these entries are not very useful if I want to "use embedded information in a tab title to list all buffers under those related tabs". For example,But we can't, currently:
Instead, we can only use tab number(with
--with-nth
set correctly for sure):But now if I enter more keywords for buffer name or file path, the tab title entry is gone:
Use Case
Because it's Vim under the hook, It's always possible that the same buffer might appear under two(or more) different tabs. In such a situation, I need to use info in tab titles to "choose" the buffer(well, albeit they're all identical) under the correct title. To do so, my current idea is to facilitate
tab_title
. As explained above, I encountered some difficulties.Expected Behaviour & Proposals
It would be great if:
Enter keyword(s) for tab title entry can also list buffers under these tabs
This is possible if we can embed
tab_title
into each entry without showing it. e.g. make each entry very long and append it to the right end. Or maybe provide an action for these tab entries to add all buffers under the tab back.Enter keyword(s) for buffer name / file path won't filter out tab title entry
This is possible if fzf-lua can provide an action to add tab title entry(or entries) back for the remaining buffers.
Ty for reading.
Beta Was this translation helpful? Give feedback.
All reactions