The (:attachlist:) command


The (:attachlist:) command is a placeholder, which is to be replaced with list of attachments of the note wnen parsing.

(:attachlist [params...]:)

The command (:attachlist:) can be used with the sort switch, which specifies the sorting order. The Sort switch can take the following values:

Examples


There are five files attached to the current note. The following table shows the output of the command (:attachlist:) with various values ​​of the sort switch:

Command (:attachlist:) (:attachlist sort=ext:) (:attachlist sort=descendext:) (:attachlist sort=size:)
Result anchor.png
first.jpg
image.gif
image.jpg
image.png
image.gif
first.jpg
image.jpg
anchor.png
image.png
image.png
anchor.png
image.jpg
first.jpg
image.gif
anchor.png
first.jpg
image.jpg
image.gif
image.png