Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
change allowSearchNotes to allowJumpToSearchNotes
SiriusXT836fa2deeeb2
diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.jsindex 91e003c7ba..69e098a4a5 100644--- a/src/public/app/services/note_autocomplete.js+++ b/src/public/app/services/note_autocomplete.js@@ -44,7 +44,7 @@ async function autocompleteSource(term, cb, options = {}) {].concat(results);}- if (term.trim().length >= 1 && options.allowSearchNotes) {+ if (term.trim().length >= 1 && options.allowJumpToSearchNotes) {results = results.concat([{action: 'search-notes',@@ -165,7 +165,7 @@ function initNoteAutocomplete($el, options) {autocompleteOptions.debug = true; // don't close on blur}- if (options.allowSearchNotes) {+ if (options.allowJumpToSearchNotes) {$el.on('keydown', (event) => {if (event.ctrlKey && event.key === 'Enter') {// Prevent Ctrl + Enter from triggering autoComplete.diff --git a/src/public/app/widgets/dialogs/jump_to_note.js b/src/public/app/widgets/dialogs/jump_to_note.jsindex ff4c4939be..75cd6b94ac 100644--- a/src/public/app/widgets/dialogs/jump_to_note.js+++ b/src/public/app/widgets/dialogs/jump_to_note.js@@ -58,7 +58,7 @@ export default class JumpToNoteDialog extends BasicWidget {noteAutocompleteService.initNoteAutocomplete(this.$autoComplete, {allowCreatingNotes: true,hideGoToSelectedNoteButton: true,- allowSearchNotes: true,+ allowJumpToSearchNotes: true,container: this.$results})// clear any event listener added in previous invocation of this functiondiff --git a/src/public/app/widgets/type_widgets/empty.js b/src/public/app/widgets/type_widgets/empty.jsindex 24d60b4fb3..abec94ab52 100644--- a/src/public/app/widgets/type_widgets/empty.js+++ b/src/public/app/widgets/type_widgets/empty.js@@ -70,7 +70,7 @@ export default class EmptyTypeWidget extends TypeWidget {noteAutocompleteService.initNoteAutocomplete(this.$autoComplete, {hideGoToSelectedNoteButton: true,allowCreatingNotes: true,- allowSearchNotes: true,+ allowJumpToSearchNotes: true,container: this.$results}).on('autocomplete:noteselected', function(event, suggestion, dataset) {