Commit Graph

54 Commits

Author SHA1 Message Date
Mickaël Menu
ba41fe5a71
Experimental LSP server (#21) 2021-04-04 15:31:54 +02:00
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
c58e68e0e2
Add support for nested maps in the YAML frontmatter
Don't prevent saving a note when the YAML to JSON serialization fails
2021-03-19 21:19:55 +01:00
Mickaël Menu
01b85c55e8
Fix looking for mentions of a note with a title containing double quotes 2021-03-14 17:20:01 +01:00
Mickaël Menu
314024eae0
Add the --mention filtering option (#8) 2021-03-13 15:31:05 +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
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
c10449a425
Refine path filtering with regexes 2021-02-27 19:23:03 +01:00
Mickaël Menu
ac545f550a
Guard against infinite loops with recursive links traversal 2021-02-27 18:15:42 +01:00
Mickaël Menu
27eda3deb6
Override default sort orders with --sort 2021-02-27 11:23:16 +01:00
Mickaël Menu
65521769c2
Disable --not-link* variants and move database to .zk/notebook.db 2021-02-27 10:20:53 +01:00
Mickaël Menu
5905688bd3
Add --related filtering option 2021-02-01 22:04:44 +01:00
Mickaël Menu
d9d5fe1730
Add --max-distance for recursive link filtering options 2021-01-31 17:07:44 +01:00
Mickaël Menu
2111deb88d
Add recursive link filtering 2021-01-31 12:24:33 +01:00
Mickaël Menu
d8b328912d
Fix combining link filters 2021-01-30 18:18:20 +01:00
Mickaël Menu
b011d6adc5
Extract contextual snippets for link filters 2021-01-30 18:08:02 +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
e4e734f3dd
Add --orphan filtering flag 2021-01-29 20:40:06 +01:00
Mickaël Menu
f7a5c04c6e
Add "not" variants for --linked-by and --linking-to 2021-01-27 21:25:33 +01:00
Mickaël Menu
7c6b5af4f9
Add --linking-to filter option 2021-01-27 20:20:26 +01:00
Mickaël Menu
a0ba426aa2
Add "linked by" note filter 2021-01-25 22:57:12 +01:00
Mickaël Menu
0b0e7dfd08
Add note links to the database 2021-01-25 21:44:44 +01:00
Mickaël Menu
fe6b062309
Filter notes interactively with fzf 2021-01-23 13:29:14 +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
a691a8857c
Support pager and no-pager config options 2021-01-16 14:30:52 +01:00
Mickaël Menu
38f24148e7
Split note/list into list and find 2021-01-14 22:10:35 +01:00
Mickaël Menu
16fea38764
Sort list matches 2021-01-13 22:06:05 +01:00
Mickaël Menu
09d688f1cc
Exclude paths in list 2021-01-13 19:53:15 +01:00
Mickaël Menu
4fbd5b3fac
Filter by modification date 2021-01-12 20:54:08 +01:00
Mickaël Menu
18f8c39d5d
Store dates as UTC 2021-01-12 20:33:55 +01:00
Mickaël Menu
d797b94845
Filter by creation date 2021-01-12 19:58:14 +01:00
Mickaël Menu
a7b85eeb1e
Limit the number of results 2021-01-11 22:22:23 +01:00
Mickaël Menu
f2c41f35fc
Show number of results 2021-01-11 22:02:06 +01:00
Mickaël Menu
4cd3df749b
Refactor generation of the SQL find query and add support for PathsFilter 2021-01-11 21:51:50 +01:00
Mickaël Menu
be25da2b80
Refactor FTS5 query sanitizing 2021-01-11 20:19:39 +01:00
Mickaël Menu
1176216eb8
Escape user input for FTS5 query 2021-01-10 22:41:36 +01:00
Mickaël Menu
0e8ae93450
Improve test result diffing 2021-01-10 16:39:10 +01:00
Mickaël Menu
9f1ec95194
Test NoteDAO find all 2021-01-10 12:29:57 +01:00
Mickaël Menu
8ed6667743
Add various list formats 2021-01-09 17:14:54 +01:00
Mickaël Menu
e0aaa60955
Move zk/file to util/paths 2021-01-09 13:01:41 +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
6dc9a65d21
Add lazy prepared statements 2021-01-03 21:49:11 +01:00
Mickaël Menu
2cd15aafe2
Proof of concept for listing notes 2021-01-03 21:22:34 +01:00