Commit Graph

8 Commits

Author SHA1 Message Date
Mickaël Menu
36365c68fb
Expose environment variables to note templates with the new {{env}} variable 2021-03-11 21:18:29 +01:00
Mickaël Menu
9fda155a99
Add a [format.markdown] config section to customize tags syntax 2021-03-11 20:59:53 +01:00
Mickaël Menu
f5b3102deb
Save additional metadata in the database (#7)
* YAML frontmatter as a JSON object in `notes.metadata`
    * Print metadata from the YAML frontmatter in `list` output using `{{metadata.<key>}}`, e.g. `{{metadata.description}}`. Keys are normalized to lower case.
* Start and end offsets for link snippets.
    * This could be useful to expand backlinks contexts.
2021-03-08 21:38:32 +01:00
Mickaël Menu
bae1fab567
Exclude a tag with the --tag filtering option 2021-03-07 17:36:54 +01:00
Mickaël Menu
f1391b5a63
Rename --linking-to filtering option to --link-to 2021-03-07 17:14:07 +01:00
Mickaël Menu
08cc4a3c3f
Filter notes by tags (#6)
Filter notes by their tags using `--tag "history, europe"`. To match notes associated with either tags, use a pipe `|` or `OR` (all caps), e.g. `--tag "inbox OR todo"`.
2021-03-07 17:00:09 +01:00
Mickaël Menu
7dc3120d3a
Separate multiple --extra variables with , instead of ; 2021-03-06 21:16:28 +01:00
Mickaël Menu
4bf660f934
Parse tags in Markdown documents (#5)
Many tag flavors are supported: `#hashtags`, `:colon:separated:tags:` and even Bear's [`#multi-word tags#`](https://blog.bear.app/2017/11/bear-tips-how-to-create-multi-word-tags/). If you prefer to use a YAML frontmatter, list your tags with the keys `tags` or `keywords`.
2021-03-06 19:38:52 +01:00