Focus the denote-dired buffer with denote-dired-focus
The command denote-dired-focus gives users the option to further filter an existing Dired buffer that was produced by the denote-dired command (Display filtered and sorted files with denote-sort-dired or denote-dired).
Call denote-dired-focus from inside such a Dired buffer to further limit its contents to files matching the given regular expression or plain string. This is not a new query. It builds on top of the current Dired buffer’s file list to operate only on those files.
Call denote-dired-focus with a prefix argument (‘C-u’ by default) to invert the logic: all the files that match the given regular expression are removed from the Dired buffer.