vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

x should't close pinned tabs

Open g-i-o-r-g-i-o opened this issue 1 year ago • 8 comments

Describe the bug

"x", when used on pinned tabs, should not close the tab, since ctrl+w doesn't close the tab

To Reproduce

Steps to reproduce the behavior:

go to a pinned tab press x x closes the tab, while it shouldn't close it: it should probably just do nothing

Browser, OS and Vimium C versions

  • Browser name: firefox
  • Browser version: 119.0.1
  • Vimium C version: 1.99.997
  • OS name and version: ubuntu

g-i-o-r-g-i-o avatar Jan 09 '24 16:01 g-i-o-r-g-i-o

No this is not a bug:

  • on Chrome, Ctrl+W may close a pinned tab
  • there should be at least one way to use Vimium C's shortcut to close a pinned tab

Up to now, if you press Num + X (like 3x) to close num tabs, and the current tab is not pinned or near to a pinned, then Vimium C will only close non-pinned tabs.

I admit this feature is not enough, so I'll add a parameter named noPinned to always prevent removeTab from removing any pinned tab.

gdh1995 avatar Jan 15 '24 18:01 gdh1995

Thanks, that would be very useful

On Monday, January 15, 2024, Dahan Gong @.***> wrote:

No this is not a bug:

  • on Chrome, Ctrl+W may close a pinned tab
  • there should be at least one way to use Vimium C's shortcut to close a pinned tab

Up to now, if you press Num + X (like 3x) to close num tabs, and the current tab is not pinned or near to a pinned, then Vimium C will only close non-pinned tabs.

I admit this feature is not enough, so I'll add a parameter named noPinned to always prevent removeTab from removing any pinned tab.

— Reply to this email directly, view it on GitHub https://github.com/gdh1995/vimium-c/issues/1073#issuecomment-1892645906, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG2GHFDSGMNQBP5X2EXFFTYOV3JFAVCNFSM6AAAAABBTNNAMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGY2DKOJQGY . You are receiving this because you authored the thread.Message ID: @.***>

g-i-o-r-g-i-o avatar Jan 15 '24 23:01 g-i-o-r-g-i-o

@gdh1995 Hi, I need noPinned feature, is there any nightly build with this feature? and do you think the way I write it is correct?

unmap x
map <c-x> removeTab
map x removeTab noPinned=true

lededev avatar Apr 02 '24 19:04 lededev

拉了最新的源码,按说明编译了一下,安装在Vivaldi浏览器中,noPinned参数似乎无效,无论设置为true还是false,按x键,pinned标签页面始终会被关掉。

lededev avatar Apr 04 '24 17:04 lededev

Sorry, has this been added to vimium?

Firefox version

thanks

g-i-o-r-g-i-o avatar Apr 19 '24 14:04 g-i-o-r-g-i-o

@g-i-o-r-g-i-o Sorry Vimium C v1 is in archive mode and won't be upgraded unless there's any security bug found, while Vimium v2 is still in development - recently, a bit slow - and may be released in the end of 2024.

gdh1995 avatar May 19 '24 21:05 gdh1995

@lededev Sorry it's because I added an unnecessary limit on the new parameter noPinned - it required command count >= 2.

Please try the latest commit (2024-05-20 05:48 009bc06a).

gdh1995 avatar May 19 '24 21:05 gdh1995

@gdh1995 能用了,谢谢!

lededev avatar May 20 '24 03:05 lededev