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

x should't close pinned tabs #1073

Open
g-i-o-r-g-i-o opened this issue Jan 9, 2024 · 8 comments
Open

x should't close pinned tabs #1073

g-i-o-r-g-i-o opened this issue Jan 9, 2024 · 8 comments

Comments

@g-i-o-r-g-i-o
Copy link

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
@gdh1995
Copy link
Owner

gdh1995 commented Jan 15, 2024

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.

@g-i-o-r-g-i-o
Copy link
Author

g-i-o-r-g-i-o commented Jan 15, 2024 via email

gdh1995 added a commit that referenced this issue Jan 20, 2024
@lededev
Copy link

lededev commented Apr 2, 2024

@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
Copy link

lededev commented Apr 4, 2024

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

@g-i-o-r-g-i-o
Copy link
Author

g-i-o-r-g-i-o commented Apr 19, 2024

Sorry, has this been added to vimium?

Firefox version

thanks

@gdh1995
Copy link
Owner

gdh1995 commented May 19, 2024

@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
Copy link
Owner

gdh1995 commented May 19, 2024

@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 009bc06).

@lededev
Copy link

lededev commented May 20, 2024

@gdh1995 能用了,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants