trilium-collection-views icon indicating copy to clipboard operation
trilium-collection-views copied to clipboard

Attribute for note content

Open mabeyj opened this issue 1 year ago • 0 comments

Discussed in https://github.com/mabeyj/trilium-collection-views/discussions/49

Originally posted by TheBig-O December 29, 2023 I'm not sure this is possible but I'd like to show a truncated version of a note's text as a field in a collection view. If it's not possible to truncate the note, the whole note would work as well, but is not the preferred option. (I'm only working with short snippets.) Does this seem possible?

Add a $content attribute which returns the content of a note. HTML will likely have to be stripped or limited. If the note is not a text or code note, then nothing is returned.

mabeyj avatar Jan 13 '24 19:01 mabeyj