How to open note from a plugin without exiting the current search?

Context: I use the Note Tabs plugin. I like to switch between tabs while having a search running in the note list, but when I switch tabs, the search gets cleared out. I’m neither a plugin nor a Joplin developer, but I think this is due to the way the openNote command works and how it interacts with the search bar. Please correct me if my assumptions are incorrect.

Now, my question: is there a way, using the plugin API, to open a note without clearing out the current search? It would be nice to have the ability to switch between notes in my current workflow while maintaining my search context.

This might be related to Opening Note in New Window without changing currently opened Note and Changing notebooks shouldn’t exit current note.

opening the note in a new window seems to work without clearing the note list search, it can be done from a plugin using: joplin.commands.execute('openNoteInNewWindow', noteId);

2 Likes