summaryrefslogtreecommitdiffstatshomepage
path: root/zk/.config/zk/config.toml
blob: 9fbf3e5e84d33e3fc944ef55ce0a7f7578772822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[note]
filename = "{{id}}"
id-charset = "hex"
id-length = 8
id-case = "lower"

[extra]
author = "Toby Vincent"

[format.markdown]
hashtags = true
colon-tags = false
multiword-tags = false

[tool]
fzf-preview = "$FZF_PREVIEW_COMMAND"

[lsp.diagnostics]
wiki-title = "hint"
dead-link = "error"

[lsp.completion]
note-label = "{{title-or-path}}"
note-filter-text = "{{title}} {{path}}"
note-detail = "{{filename-stem}}"

[alias]
ls = "zk list $@"
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive"
log = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --"
lg = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git lg --patch --"
editlast = "zk edit --limit 1 --sort modified- $@"
gen = "neuron gen -o public"
serve = "neuron gen -wS"
conf = '$EDITOR "$ZK_NOTEBOOK_DIR/.zk/config.toml"'
# Print paths separated with colons for the notes found with the given
# arguments. This can be useful to expand a complex search query into a flag
# taking only paths. For example:
#   zk list --link-to "`zk path -m potatoe`"
#path = "zk list --quiet --format {{path}} --delimiter , $@"