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

Is there a way to cycle between two most recent tabs? #17

Closed
avalanche1 opened this issue Sep 13, 2019 · 5 comments
Closed

Is there a way to cycle between two most recent tabs? #17

avalanche1 opened this issue Sep 13, 2019 · 5 comments

Comments

@avalanche1
Copy link

E.g. I'm on google.com. And the previous tab I've visited is github.com. And I have lots of other open tabs.
What I'd like to have is a kb shortcut to cycle bw google and github tabs.
There's something similar when I double-press alt-q - but it works haphazardly.
Can we make a special function for this? Or stabilize the current shortcut

@fwextensions
Copy link
Owner

fwextensions commented Sep 13, 2019

You can press alt-A, wait .75 seconds until the icon changes back to normal, and then press it again to switch back to the previous tab. It sounds like you'd want a shortcut that can be pressed more rapidly, though. (The delay is necessary to allow you to press the shortcut again to switch to the next older tab, and the next, and the next, etc.)

Funnily enough, I do have an alt-Z toggle shortcut on a branch that lets you press it as quickly as you want and it will only switch between the two most recent tabs: https://github.com/fwextensions/QuicKey/tree/feature/toggle-shortcut

Which OS are you on where you see the alt-Q double-press be unreliable? I think there's a bug in Chrome that very occasionally causes it to not close the open menu when you press the shortcut again, and the extension relies on that to detect the double-press. Also, if you have lots of tabs that are actively doing things, double-pressing too quickly can cause it not to work because the extension doesn't have enough time to detect the two presses.

@avalanche1
Copy link
Author

avalanche1 commented Sep 14, 2019

Actually, I'd want a shortcut that is only needed to be pressed once.
I had a similar extension installed but it was buggy. https://chrome.google.com/webstore/detail/toggle-tabs/amlniobkkcncmkejklnnhkbjkmhfjmla
Maybe you could implement smth similar?

@fwextensions
Copy link
Owner

Right, I've added a new shortcut on this branch that you can press as quickly as you want to switch between the two most recent tabs.

@fwextensions
Copy link
Owner

A keyboard shortcut for toggling between the two most recent tabs without a delay is now available in v1.2.0.

@avalanche1
Copy link
Author

perfext!

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

2 participants