mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
middle click can now open links in new tab (and close tab)
This commit is contained in:
@@ -372,11 +372,14 @@ $(tabRow.el).on('contextmenu', '.note-tab', e => {
|
||||
contextMenuService.initContextMenu(e, {
|
||||
getContextMenuItems: () => {
|
||||
return [
|
||||
{title: "Close all tabs", cmd: "removeAllTabs", uiIcon: "empty"},
|
||||
{title: "Close all tabs except for this", cmd: "removeAllTabsExceptForThis", uiIcon: "empty"}
|
||||
];
|
||||
},
|
||||
selectContextMenuItem: (e, cmd) => {
|
||||
if (cmd === 'removeAllTabsExceptForThis') {
|
||||
if (cmd === 'removeAllTabs') {
|
||||
tabRow.removeAllTabs();
|
||||
} else if (cmd === 'removeAllTabsExceptForThis') {
|
||||
tabRow.removeAllTabsExceptForThis(tab[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user