add support for duplicating current tab
This commit is contained in:
parent
256820f78d
commit
c4de9ec451
5 changed files with 10 additions and 1 deletions
|
@ -35,6 +35,8 @@ const exec = (operation, tab) => {
|
|||
return tabs.updateTabPinned(tab, false);
|
||||
case operations.TAB_TOGGLE_PINNED:
|
||||
return tabs.toggleTabPinned(tab);
|
||||
case operations.TAB_DUPLICATE:
|
||||
return tabs.duplicate(tab.id);
|
||||
case operations.ZOOM_IN:
|
||||
return zooms.zoomIn();
|
||||
case operations.ZOOM_OUT:
|
||||
|
|
|
@ -111,8 +111,12 @@ const toggleTabPinned = (current) => {
|
|||
updateTabPinned(current, !current.pinned);
|
||||
};
|
||||
|
||||
const duplicate = (id) => {
|
||||
return browser.tabs.duplicate(id);
|
||||
};
|
||||
|
||||
export {
|
||||
closeTab, reopenTab, selectAt, selectByKeyword, getCompletions,
|
||||
selectPrevTab, selectNextTab, selectFirstTab, selectLastTab, reload,
|
||||
updateTabPinned, toggleTabPinned
|
||||
updateTabPinned, toggleTabPinned, duplicate
|
||||
};
|
||||
|
|
Reference in a new issue