diff options
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index ad47c399..972f1529 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -335,6 +335,11 @@ BackgroundCommands = closeTabsOnRight: -> removeTabsRelative "after" closeOtherTabs: -> removeTabsRelative "both" + visitPreviousTab: (count) -> + chrome.tabs.getSelected null, (tab) -> + newTabId = BgUtils.tabRecency.getRecentTab tab.id, count + chrome.tabs.update newTabId, selected: true + # Remove tabs before, after, or either side of the currently active tab removeTabsRelative = (direction) -> chrome.tabs.query {currentWindow: true}, (tabs) -> |
