dvdvdmt / popup-tab-switcher

A browser extension that makes switching between tabs more convenient
85 stars 5 forks source link

how to default to ctrl tab on linux?? #39

Open LifeIsStrange opened 3 years ago

dvdvdmt commented 3 years ago

That is a good question, I don't really have an answer, but I think you need some keyboard customizer similar to Karabiner. You basically need to map Ctrl+Tab to Alt+Y or other shortcut that triggers PTS in Chrome. Obviously this Ctrl+Tab to Alt+Y combination should work only when Chrome is active. Perhaps you will find some key mapper for Linux here. If you find a solution to the problem, please describe it here and I will add it to the documentation.

txtyash commented 2 years ago

That is a good question, I don't really have an answer, but I think you need some keyboard customizer similar to Karabiner. You basically need to map Ctrl+Tab to Alt+Y or other shortcut that triggers PTS in Chrome. Obviously this Ctrl+Tab to Alt+Y combination should work only when Chrome is active. Perhaps you will find some key mapper for Linux here. If you find a solution to the problem, please describe it here and I will add it to the documentation.

If extensions like 'vimiumc' & 'keyboard shortcuts' can override the default shortcuts then why can't you?

I mean I did assign ctrl-j and ctrl-k to this plugin but they seem to only half work. The switcher would disappear right away by switching to the last recent tab even though I was holding onto the ctrl key

dvdvdmt commented 2 years ago

@zim0369 thanks for pointing out to KeyboardShortcuts extension. The problem with it as any other Chrome extension is that it can't remap build-in browser shortcuts, it can only add alternatives to them. For example, Ctrl+Tab is for "Select next tab", with KeyboardShortcuts you can only set an alternative shortcut for that, like Alt+Y, but the original Ctrl+Tab will continue to work. My extension is using the same keyboard shortcuts mechanism for triggering its actions like any other extension and this mechanism does not allow a user to remap build-in browser shortcuts 🤷‍♂️. You can try to set any of these build-in shortcuts on keyboard shortcuts page with no luck.

Rohitth007 commented 1 year ago

@dvdvdmt @zim0369 I think, Ctrl+Tab is now possible with JS injection irrespective of OS.