vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Add actions to tab picker

Open kinooyume opened this issue 1 year ago • 3 comments

The idea is to add more actions when opening the search tab picker (T), based on Manipulating Tab sections, without closing the picker. For exemple:

  • <C-x>: close selected tab (this one could be really great)
  • <C-w>: move selected tab to new window
  • <C-y>: duplicated selected tab
  • <C-p>: pin selected tab

And so on.. what are you though about it ?

kinooyume avatar Jan 19 '25 08:01 kinooyume

I like this idea. It could be a very easy way to close tabs by name (I think that's the most useful). However, in these cases it would be a feature that is hard to document and let the user know exists, and you could just perform the action by switching to the tab and then doing the action. Depending, I could see this feature leading to some confusion and mistakes. So I think it could be useful, but personally, it wouldn't be a top priority for me.

UncleSnail avatar Jan 21 '25 05:01 UncleSnail

I understand your concern; it could also conflict with other browser shortcuts. For example, in Firefox, <C-p> opens the print dialog, so it might end up being even more complicated. I was considering some sort of mode that would allow actions within the vomnibar, but again, it could become complex.

Regarding the documentation, does it really make things more complicated? Would adding a section titled "Vomnibar Tab Actions" to the help dialog not be clear enough?

For context, my use case is that I wanted to close several tabs without quitting the vomnibar, similar to how I can close multiple buffers in fzf-lua within my vim config. I haven't been able to achieve similar in Vimium.

This isn't a high priority, of course—I'm willing to take a look in my free time.

kinooyume avatar Jan 21 '25 07:01 kinooyume