Commit Graph

36 Commits

Author SHA1 Message Date
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
fbbf8e53dc
Various minor fixes 2021-02-24 21:49:56 +01:00
Mickaël Menu
4bff1cd326
Reorganize config structure 2021-02-13 22:16:11 +01:00
Mickaël Menu
e0c8e2fd02
Make the fzf preview command customizable 2021-02-11 21:31:47 +01:00
Mickaël Menu
f70b85ed6f
Show path relative to working directory in fzf 2021-02-11 20:32:43 +01:00
Mickaël Menu
aa87c570c2
Don't launch fzf or the pager when --no-input is set 2021-02-10 21:04:24 +01:00
Mickaël Menu
17c30a66e5
Improve help output and add --delimiter0 in list command 2021-02-10 20:27:34 +01:00
Mickaël Menu
5ef45020f0
Remove the no-pager config variable 2021-02-07 19:20:07 +01:00
Mickaël Menu
aac1c17a13
Show help as the default command 2021-02-07 19:03:27 +01:00
Mickaël Menu
7e3e2cbd20
Add a fzf binding to create a new note with the search query from the edit command 2021-02-07 17:48:23 +01:00
Mickaël Menu
76fb5f67aa
Migrate from HCL to TOML for the config language 2021-02-06 21:39:18 +01:00
Mickaël Menu
92afd77fd7
Add custom list delimiter 2021-01-27 20:20:37 +01:00
Mickaël Menu
0b0e7dfd08
Add note links to the database 2021-01-25 21:44:44 +01:00
Mickaël Menu
225b0c2603
Add support for user aliases 2021-01-24 12:22:47 +01:00
Mickaël Menu
1b905dacfd
Don't prompt the user when the terminal is not interactive 2021-01-23 21:29:22 +01:00
Mickaël Menu
72d9d6f8d4
Add user prompt/confirmation utilities 2021-01-23 21:15:17 +01:00
Mickaël Menu
5cffc71da6
Extract filtering and sorting flags 2021-01-23 15:39:47 +01:00
Mickaël Menu
6c95ff43c1
Refactor fzf integration 2021-01-23 15:24:08 +01:00
Mickaël Menu
fe6b062309
Filter notes interactively with fzf 2021-01-23 13:29:14 +01:00
Mickaël Menu
5759896fd4
Refactor note formatter 2021-01-19 21:13:16 +01:00
Mickaël Menu
a691a8857c
Support pager and no-pager config options 2021-01-16 14:30:52 +01:00
Mickaël Menu
b86a74d1e9
Use the system pager to paginate list results 2021-01-15 22:21:33 +01:00
Mickaël Menu
e113707a62
Move parsing of sorting terms to core 2021-01-14 22:45:05 +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
d797b94845
Filter by creation date 2021-01-12 19:58:14 +01:00
Mickaël Menu
91118a21ce
Add Zk.RelPath() 2021-01-12 19:38:58 +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
1176216eb8
Escape user input for FTS5 query 2021-01-10 22:41:36 +01:00
Mickaël Menu
8ed6667743
Add various list formats 2021-01-09 17:14:54 +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