diff --git a/.idea/dataSources/a2c75661-f9e2-478f-a69f-6a9409e69997.xml b/.idea/dataSources/a2c75661-f9e2-478f-a69f-6a9409e69997.xml index b6650b657..094828c17 100644 --- a/.idea/dataSources/a2c75661-f9e2-478f-a69f-6a9409e69997.xml +++ b/.idea/dataSources/a2c75661-f9e2-478f-a69f-6a9409e69997.xml @@ -57,7 +57,6 @@ 1 apiTokenId - 1 @@ -126,21 +125,17 @@ 1 attributeId - 1 noteId - name value - value - attributeId @@ -202,17 +197,14 @@ value 1 branchId - 1 noteId parentNoteId - parentNoteId - branchId @@ -243,7 +235,6 @@ parentNoteId 1 noteId - 1 @@ -274,7 +265,6 @@ parentNoteId 1 noteRevisionId - 1 @@ -359,28 +349,22 @@ parentNoteId 1 noteRevisionId - 1 noteId - utcDateLastEdited - utcDateCreated - dateLastEdited - dateCreated - noteRevisionId @@ -462,36 +446,28 @@ parentNoteId 1 noteId - 1 title - type - isDeleted - dateCreated - dateModified - utcDateCreated - utcDateModified - noteId @@ -532,7 +508,6 @@ parentNoteId 1 name - 1 @@ -568,7 +543,6 @@ parentNoteId 1 noteId - 1 @@ -589,12 +563,10 @@ parentNoteId 1 sourceId - 1 utcDateCreated - sourceId @@ -656,12 +628,10 @@ parentNoteId entityName entityId - 1 utcSyncDate - id diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.js index 3c934b170..5a2298de7 100644 --- a/src/public/javascripts/services/entrypoints.js +++ b/src/public/javascripts/services/entrypoints.js @@ -255,6 +255,8 @@ function registerEntrypoints() { await treeService.expandToNote(note.noteId); await noteDetailService.openInTab(note.noteId, true); + + noteDetailService.focusAndSelectTitle(); }); keyboardActionService.setGlobalActionHandler("EditBranchPrefix", async () => { diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 28920c6d2..ba8cf9f22 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -127,16 +127,16 @@ async function getNodeFromPath(notePath, expand = false, expandOpts = {}) { // we expand only after hoisted note since before then nodes are not actually present in the tree if (parentNode) { - checkFolderStatus(parentNode); - if (!parentNode.isLoaded()) { await parentNode.load(); } if (expand) { - parentNode.setExpanded(true, expandOpts); + await parentNode.setExpanded(true, expandOpts); } + await checkFolderStatus(parentNode); + let foundChildNode = findChildNode(parentNode, childNoteId); if (!foundChildNode) { // note might be recently created so we'll force reload and try again