Insert links from marked files in Dired
The command denote-link-dired-marked-notes is similar to denote-add-links in that it inserts in the buffer a typographic list of links to Denote notes (Insert links matching a regexp). Though instead of reading a regular expression, it lets the user mark files in Dired and link to them. This should be easier for users of all skill levels, instead of having to write a potentially complex regular expression.
If there are multiple buffers that visit a Denote note, this command will ask to select one among them, using minibuffer completion. If there is only one buffer, it will operate in it outright. If there are no buffers, it will produce an error.
With optional ‘ID-ONLY’ as a prefix argument (‘C-u’ by default), the command inserts links with just the identifier, which is the same principle as with denote-link and others (Adding a single link).
The command denote-link-dired-marked-notes is meant to be used from a Dired buffer.
As always, links are created only for files which qualify as a “note” for our purposes (Linking notes).
The denote-dired-link-marked-notes is an alias for denote-link-dired-marked-notes.