mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
hoisting improvements
This commit is contained in:
@@ -181,7 +181,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
const notePath = treeService.getNotePath(node);
|
||||
|
||||
if (notePath) {
|
||||
appContext.tabManager.openTabWithNote(notePath);
|
||||
appContext.tabManager.openTabWithNoteWithHoisting(notePath);
|
||||
}
|
||||
|
||||
e.stopPropagation();
|
||||
@@ -311,7 +311,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
}
|
||||
else if (event.ctrlKey) {
|
||||
const notePath = treeService.getNotePath(node);
|
||||
appContext.tabManager.openTabWithNote(notePath);
|
||||
appContext.tabManager.openTabWithNoteWithHoisting(notePath);
|
||||
}
|
||||
else if (data.node.isActive()) {
|
||||
// this is important for single column mobile view, otherwise it's not possible to see again previously displayed note
|
||||
|
||||
@@ -32,9 +32,9 @@ export default class OwnedAttributeListWidget extends TabAwareWidget {
|
||||
}
|
||||
|
||||
renderTitle(note) {
|
||||
const ownedNotes = note.getAttributes().filter(attr => attr.noteId === this.noteId)
|
||||
const ownedAttrs = note.getAttributes().filter(attr => attr.noteId === this.noteId && !attr.isAutoLink)
|
||||
|
||||
this.$title.text(`Owned attrs (${ownedNotes.length})`);
|
||||
this.$title.text(`Owned attrs (${ownedAttrs.length})`);
|
||||
|
||||
return {
|
||||
show: true,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -190,7 +190,7 @@ export default class RelationMapTypeWidget extends TypeWidget {
|
||||
const noteId = this.idToNoteId($noteBox.prop("id"));
|
||||
|
||||
if (command === "openInNewTab") {
|
||||
appContext.tabManager.openTabWithNote(noteId);
|
||||
appContext.tabManager.openTabWithNoteWithHoisting(noteId);
|
||||
}
|
||||
else if (command === "remove") {
|
||||
const confirmDialog = await import('../../dialogs/confirm.js');
|
||||
|
||||
Reference in New Issue
Block a user