You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be useful to make templates that match the front_matter of other tools, for easier collaboration and integration into other zettelkasten tools. For this, some tools create unique random IDs in the front matter.
Do you mean the similar string as used in %random template for filenames, or just some random number? You can add custom fields to the front_matter, where values can be filled by Vim functions. For example, this configuration can be used to insert a random number in Vim 8.2:
function! s:insert_random()
let seed = srand()
return rand(seed)
endfunction
let g:zettel_options = [ {"front_matter" : [["random", function("s:insert_random")]]}]
I think it would be useful to make templates that match the front_matter of other tools, for easier collaboration and integration into other zettelkasten tools. For this, some tools create unique random IDs in the front matter.
similar to #68
Thanks!
The text was updated successfully, but these errors were encountered: