Firefox addon that adds a keyboard shortcut to switch back to your most recently selected tab. Useful to alternate between two tabs and to easily go back to your last tab if you switch to another briefly.
To address bug #6, this branch adds support for remembering tab history, so that if you close tabs, it will still work. Previously closing the most recent tab would cause the shortcut to do nothing. Now it will switch to the tab before that one.
Implementation is by adding a queue for each window. Whenever a tab is activated, it's moved to the front of the queue. Activating the shortcut looks at the 2nd tab in the queue, and switches to it. Closing a tab removes it from the queue, removing it from the history. Other tabs are unaffected, so the shortcut will work as expected.
To address bug #6, this branch adds support for remembering tab history, so that if you close tabs, it will still work. Previously closing the most recent tab would cause the shortcut to do nothing. Now it will switch to the tab before that one.
Implementation is by adding a queue for each window. Whenever a tab is activated, it's moved to the front of the queue. Activating the shortcut looks at the 2nd tab in the queue, and switches to it. Closing a tab removes it from the queue, removing it from the history. Other tabs are unaffected, so the shortcut will work as expected.