From 20a778e785e67f1b87c10c83323441e9d7c60d41 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 13 Sep 2022 17:37:18 -0500 Subject: feat(zk): add zk config --- zk/.config/zk/config.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 zk/.config/zk/config.toml (limited to 'zk/.config') diff --git a/zk/.config/zk/config.toml b/zk/.config/zk/config.toml new file mode 100644 index 0000000..2132b71 --- /dev/null +++ b/zk/.config/zk/config.toml @@ -0,0 +1,40 @@ +[note] +filename = "{{id}}" +id-charset = "hex" +id-length = 8 +id-case = "lower" + +[extra] +author = "Mickaƫl" + +[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 , $@" -- cgit v1.2.3-70-g09d2