I like using the Note Overview plugin ( Joplin Plugins - Note overview ).
Currently the search: option requires the notebook name to be hardcoded, e.g.:
<!-- note-overview-plugin
search: notebook:"email Templates" -title:Overview -tag:EXCLUDED
fields: title, tags, updated_time
alias: title AS Titel, tags AS Tags, updated_time AS Last edit
sort: updated_time DESC
-->
There is currently no way to reference the notebook that the note-overview note itself is stored in.
Use case
I use this kind of note-overview blocks to list all notes within the same notebook they are placed in (an "overview note" per notebook).
I copy the same overview-note template into many different notebooks.
Each time, I have to manually edit the hardcoded notebook:"..." value to match that specific notebook.
Additionally, if a notebook is later renamed or moved, every copy of the overview note has to be updated individually.
The manual maintenance of the notebook name in each copy is error-prone and does not scale across many notebooks.
My suggestion
Add a placeholder that resolves to the notebook containing the current note, for example:
search: notebook:current
or alternatively
search: %notebook%
Either syntax would let the same code block work unmodified in any notebook it is placed in.
A forum search did not turn up an existing open discussion or issue on this topic.