Hello everyone, sorry for the delay but things have been hectic. I will try to resolve the issue within the week.
@laurent The ideal solution however would be the implementation of Allow Plugins to load search query via API
Once implemented, all the plugin would need to do is load the filter for untagged notes into joplin's own search bar and then joplin's own notes list would load all the untagged tasks.
No more need to poll for events, and to tag and untag what could potentially be thousands of notes. Finding untagged notes would be an instantaneous database search.
And its not just untagged notes, With the existing search system and filters, the possibilities are endless.
Plugins could store search filters for overdue notes, notes due today, notes with certain tags but excluding others. If plugins could manipulate the contents of the search bar and trigger a search, joplin could become a lot more powerful.
The Joplin favorites plugin GitHub - benji300/joplin-favorites: Save any notebook, note, to-do, tag, or search as favorite in an extra panel view for quick access. is pretty much all the way there in terms of what such a plugin could look like with its saved searches feature, however the saved searches function is crippled by the lack of access to the search bar. Currently, all the plugin can do is load the saved search to the clipboard and set the interface focus to the search bar so the user can paste the search query.
It would be a huge favor if this feature could be landed in the next stable release