Commit Graph

16 Commits

Author SHA1 Message Date
Mickaël Menu
52434f8618
Add the --mentioned-by filtering option (#15)
Find every note whose title is mentioned in the note you are working on with `--mentioned-by file.md`
2021-03-20 19:17:46 +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
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
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
Mickaël Menu
fb78993fbc
Save a link's context as a snippet 2021-01-30 16:32:58 +01:00
Mickaël Menu
0b0e7dfd08
Add note links to the database 2021-01-25 21:44:44 +01:00
Mickaël Menu
cd2040a74b
Fix sorting indexed notes by their paths in the database 2021-01-17 17:37:16 +01:00
Mickaël Menu
f371f58bd2
Add Lead and RawContent to the saved note metadata 2021-01-16 20:18:03 +01:00
Mickaël Menu
be25da2b80
Refactor FTS5 query sanitizing 2021-01-11 20:19:39 +01:00
Mickaël Menu
ea3b6923c0
Merge dir and filename to simplify paths handling 2021-01-09 12:17:15 +01:00
Mickaël Menu
5a8b6ec02f
Index the note filenames 2021-01-07 19:29:04 +01:00
Mickaël Menu
8a876f3b7f
Test note DAO 2021-01-05 20:50:39 +01:00
Mickaël Menu
d655720181
Test sqlite.DB 2021-01-04 20:03:32 +01:00
Mickaël Menu
8467f1aa3a
Refactor transaction usage 2021-01-03 17:39:04 +01:00
Mickaël Menu
0573852529
Index notes content 2021-01-03 14:43:27 +01:00
Mickaël Menu
4dad3a2309
Add the initial DB schema 2021-01-02 12:29:21 +01:00