mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
autocollapse notes after period of inactivity + some other changes, #1192
This commit is contained in:
@@ -16,7 +16,7 @@ class TreeContextMenu {
|
||||
this.treeWidget = treeWidget;
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
|
||||
async show(e) {
|
||||
contextMenu.show({
|
||||
x: e.pageX,
|
||||
@@ -111,7 +111,14 @@ class TreeContextMenu {
|
||||
const notePath = treeService.getNotePath(this.node);
|
||||
|
||||
if (command === 'openInTab') {
|
||||
appContext.tabManager.openTabWithNote(notePath);
|
||||
|
||||
const start = Date.now();
|
||||
|
||||
await this.node.load(true);
|
||||
|
||||
console.log("Reload took", Date.now() - start, "ms");
|
||||
|
||||
// appContext.tabManager.openTabWithNote(notePath);
|
||||
}
|
||||
else if (command === "insertNoteAfter") {
|
||||
const parentNoteId = this.node.data.parentNoteId;
|
||||
@@ -136,4 +143,4 @@ class TreeContextMenu {
|
||||
}
|
||||
}
|
||||
|
||||
export default TreeContextMenu;
|
||||
export default TreeContextMenu;
|
||||
|
||||
Reference in New Issue
Block a user