Open luisyaxmedrano opened 10 months ago
In the script engine, there would be https://www.qownnotes.org/scripting/hooks.html#autocompletionhook to control the autocompletion. https://github.com/pbek/QOwnNotes/blob/main/docs/scripting/examples/autocompletion.qml is a good example on what you can do with it.
I'm a little bit confused. This doesn't add an autocomplete feature, does it? It's like a function for me to script the feature, right? Because I added the script and it did nothing in QOwnNotes.
No, the script is just an example on how to use the autocompletionhook. One would need to implement a script looking for notes with a name starting with the characters already entered...
Expected behaviour
My request is that when linking a note by using <> and typing a letter QOwnNotes would show suggestions of notes that begin with that letter in their title. And so on, so, if I were to write an entire word within the <> QOwnNotes would also suggest notes that begin with that word in their title. So it's a sort of an Autocomplete feature that improves the speed in which notes can be linked.
Actual behaviour
The feature does not exist.
Steps to reproduce
Steps to reproduce would be regular linking steps. Using <> and putting the name of a note in it.
Relevant log output in the Log panel
Expand
``` [00:20:28] [debug] updatePanelMenu - 'updatePanelMenu' ```Information about the application, settings and environment
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `mar. nov. 14 00:20:37 2023` **Version**: `23.11.1` **Build date**: `Nov 10 2023` **Build number**: `1062` **Platform**: `windows` **Operating System**: `Windows 10 Version 2009` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `\HKEY_CURRENT_USER\Software\PBE\QOwnNotes` **Application database path**: `C:\Users\luisy\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite` **Application arguments**: `C:\Program Files\QOwnNotes`, `\QOwnNotes.exe`, `--after-update` **Qt Debug**: `0` **Locale (system)**: `es_GT` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1080` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `7` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: *empty* **appIsValid**: `yes` **notesPathExists**: *empty* **serverVersion**: *empty* **appVersion**: *empty* ## Spellchecking **Enabled**: `true` **Selected language**: `auto` **Language codes**: `en_US, es_ANY` **Language names**: `American English (United States), español de España (España)` **Application dictionaries path**: ## Note folders **currentNoteFolderId**: `1` ### Note folder `predeterminado` **id**: `1` **isCurrent**: `yes` **activeTagId**: `-1` **localPath**: `D:\Programas\QOwnNotes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: `Carrera` **database file**: `D:\Programas\QOwnNotes\notes.sqlite` ## Cloud connections ### Cloud connection `Predeterminado` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* **accountId**: *empty* ## Enabled scripts ## Settings **ActiveNoteHistoryItem** (NoteHistoryItem): `