mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
open links in new tab without activation
This commit is contained in:
parent
e5155130e7
commit
3ab2b41e8c
@ -78,7 +78,6 @@ function goToLink(e) {
|
|||||||
if (notePath) {
|
if (notePath) {
|
||||||
if ((e.which === 1 && e.ctrlKey) || e.which === 2) {
|
if ((e.which === 1 && e.ctrlKey) || e.which === 2) {
|
||||||
const tabContext = appContext.tabManager.openEmptyTab();
|
const tabContext = appContext.tabManager.openEmptyTab();
|
||||||
appContext.tabManager.activateTab(tabContext.tabId);
|
|
||||||
tabContext.setNote(notePath);
|
tabContext.setNote(notePath);
|
||||||
}
|
}
|
||||||
else if (e.which === 1) {
|
else if (e.which === 1) {
|
||||||
@ -142,7 +141,6 @@ $(document).on('mousedown', '.note-detail-text a', function (e) {
|
|||||||
if (notePath) {
|
if (notePath) {
|
||||||
const tabContext = appContext.tabManager.openEmptyTab();
|
const tabContext = appContext.tabManager.openEmptyTab();
|
||||||
tabContext.setNote(notePath);
|
tabContext.setNote(notePath);
|
||||||
appContext.tabManager.activateTab(tabContext.tabId);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const address = $link.attr('href');
|
const address = $link.attr('href');
|
||||||
|
@ -109,7 +109,6 @@ class TreeContextMenu {
|
|||||||
|
|
||||||
if (command === 'openInTab') {
|
if (command === 'openInTab') {
|
||||||
const tabContext = appContext.tabManager.openEmptyTab();
|
const tabContext = appContext.tabManager.openEmptyTab();
|
||||||
appContext.tabManager.activateTab(tabContext.tabId);
|
|
||||||
tabContext.setNote(notePath);
|
tabContext.setNote(notePath);
|
||||||
}
|
}
|
||||||
else if (command === "insertNoteAfter") {
|
else if (command === "insertNoteAfter") {
|
||||||
|
@ -84,7 +84,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
const tabContext = appContext.tabManager.openEmptyTab();
|
const tabContext = appContext.tabManager.openEmptyTab();
|
||||||
const notePath = treeService.getNotePath(node);
|
const notePath = treeService.getNotePath(node);
|
||||||
tabContext.setNote(notePath);
|
tabContext.setNote(notePath);
|
||||||
appContext.tabManager.activateTab(tabContext.tabId);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
node.setActive();
|
node.setActive();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user