mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
unified Jump-To and quick search behavior with regards to hoisting and opening in a new tab
This commit is contained in:
@@ -76,7 +76,10 @@ export default class RootCommandExecutor extends Component {
|
||||
// force immediate search
|
||||
await froca.loadSearchNote(searchNote.noteId);
|
||||
|
||||
const noteContext = await appContext.tabManager.openContextWithNote(searchNote.noteId, true);
|
||||
const activeNoteContext = appContext.tabManager.getActiveContext();
|
||||
const hoistedNoteId = activeNoteContext?.hoistedNoteId || 'root';
|
||||
|
||||
const noteContext = await appContext.tabManager.openContextWithNote(searchNote.noteId, true, null, hoistedNoteId);
|
||||
|
||||
appContext.triggerCommand('focusOnSearchDefinition', {ntxId: noteContext.ntxId});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user