mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix "show in full text search" in jump to note dialog
This commit is contained in:
@@ -67,8 +67,8 @@ export default class DialogCommandExecutor extends Component {
|
||||
appContext.triggerCommand('focusOnDetail', {tabId: tabContext.tabId});
|
||||
}
|
||||
|
||||
async searchNotesCommand() {
|
||||
const searchNote = await dateNoteService.createSearchNote();
|
||||
async searchNotesCommand({searchString, subTreeNoteId}) {
|
||||
const searchNote = await dateNoteService.createSearchNote({searchString, subTreeNoteId});
|
||||
|
||||
const tabContext = await appContext.tabManager.openTabWithNote(searchNote.noteId, true);
|
||||
|
||||
@@ -78,11 +78,7 @@ export default class DialogCommandExecutor extends Component {
|
||||
async searchInSubtreeCommand({notePath}) {
|
||||
const noteId = treeService.getNoteIdFromNotePath(notePath);
|
||||
|
||||
const searchNote = await dateNoteService.createSearchNote(noteId);
|
||||
|
||||
const tabContext = await appContext.tabManager.openTabWithNote(searchNote.noteId, true);
|
||||
|
||||
appContext.triggerCommand('focusOnSearchDefinition', {tabId: tabContext.tabId});
|
||||
this.searchNotesCommand({subTreeNoteId: noteId});
|
||||
}
|
||||
|
||||
showBackendLogCommand() {
|
||||
|
||||
Reference in New Issue
Block a user