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
{{ message }}
This repository was archived by the owner on Apr 27, 2024. It is now read-only.
Capture templates have support for substitution with the"${substitution}" syntax. Substitutions are functionsdefined in the config table which take a metadata table as a parameter and return a string. Themetadata table currently only supports thetitle field. The builtin substitutions are${title}, and${date} as above. The${title} substitution is the@document.meta title if the file exists already,or the telescope prompt if it does not exist. The file and title fields are only updated whencapturing a new file. In the above example, if you don't override thetitle field then it willdefault to the filename which is${title}_${date}.
Capture template fields
name: identifier for the template
file the path where the file will be saved. The norg extension will be added automatically
title: the metadata title to inject into the@document.meta tag
lines: the list of lines to insert
Capture templates to do
Currently capture templates always insert after the metadata. Support a target property toinsert after any tree-sitter node.
Support thenarrowed flag to capture in a blank buffer and write lines to file on save.
currently implemented features
Find notes.
Insert links to norg files.
Capture notes.
Capture to the index file.
Capture templates
TODO:
Create sql module.
Implement back links.
Other types of linkables.
Write tests.
Insert links is broken when inserting link to a file in a different root directory.
Moving files around / renaming them should not break links.