From 94cd6be6d2479802defe7d7f217438882ab15dce Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Sun, 1 Jun 2025 14:40:47 +0200 Subject: [PATCH] added zk config to write docs --- templates/r/.zk/config.toml | 199 +++++++++++++++++++++++++++ templates/r/.zk/notebook.db | Bin 0 -> 86016 bytes templates/r/.zk/templates/default.md | 3 + 3 files changed, 202 insertions(+) create mode 100644 templates/r/.zk/config.toml create mode 100644 templates/r/.zk/notebook.db create mode 100644 templates/r/.zk/templates/default.md diff --git a/templates/r/.zk/config.toml b/templates/r/.zk/config.toml new file mode 100644 index 0000000..4b325e6 --- /dev/null +++ b/templates/r/.zk/config.toml @@ -0,0 +1,199 @@ +# zk configuration file +# +# Uncomment the properties you want to customize. + +# NOTE SETTINGS +# +# Defines the default options used when generating new notes. +[note] + +# Language used when writing notes. +# This is used to generate slugs or with date formats. +#language = "en" + +# The default title used for new note, if no `--title` flag is provided. +#default-title = "Untitled" + +# Template used to generate a note's filename, without extension. +extension = "md" +filename = "docs/{{slug title}}-{{format-date now '%Y-%m-%d'}}-{{id}}" +language = "en" + +# The file extension used for the notes. +#extension = "md" + +# Template used to generate a note's content. +# If not an absolute path or "~/unix/path", it's relative to .zk/templates/ +template = "default.md" + +# Path globs ignored while indexing existing notes. +#exclude = [ +# "drafts/*", +# "log.md" +#] + +# Configure random ID generation. + +# The charset used for random IDs. You can use: +# * letters: only letters from a to z. +# * numbers: 0 to 9 +# * alphanum: letters + numbers +# * hex: hexadecimal, from a to f and 0 to 9 +# * custom string: will use any character from the provided value +#id-charset = "alphanum" + +# Length of the generated IDs. +#id-length = 4 + +# Letter case for the random IDs, among lower, upper or mixed. +#id-case = "lower" + + +# EXTRA VARIABLES +# +# A dictionary of variables you can use for any custom values when generating +# new notes. They are accessible in templates with {{extra.}} +[extra] + +#key = "value" + + +# GROUP OVERRIDES +# +# You can override global settings from [note] and [extra] for a particular +# group of notes by declaring a [group.""] section. +# +# Specify the list of directories which will automatically belong to the group +# with the optional `paths` property. +# +# Omitting `paths` is equivalent to providing a single path equal to the name of +# the group. This can be useful to quickly declare a group by the name of the +# directory it applies to. + +#[group.""] +#paths = ["", ""] +#[group."".note] +#filename = "{{format-date now}}" +#[group."".extra] +#key = "value" + + +# MARKDOWN SETTINGS +[format.markdown] + +# Format used to generate links between notes. +# Either "wiki", "markdown" or a custom template. Default is "markdown". +link-format = "wiki" +# Indicates whether a link's path will be percent-encoded. +# Defaults to true for "markdown" format and false for "wiki" format. +#link-encode-path = true +# Indicates whether a link's path file extension will be removed. +# Defaults to true. +#link-drop-extension = true + +# Enable support for #hashtags. +hashtags = false +# Enable support for :colon:separated:tags:. +colon-tags = true +# Enable support for Bear's #multi-word tags# +# Hashtags must be enabled for multi-word tags to work. +multiword-tags = false + + +# EXTERNAL TOOLS +[tool] + +# Default editor used to open notes. When not set, the EDITOR or VISUAL +# environment variables are used. +#editor = "vim" + +# Pager used to scroll through long output. If you want to disable paging +# altogether, set it to an empty string "". +#pager = "less -FIRX" + +# Command used to preview a note during interactive fzf mode. +# Set it to an empty string "" to disable preview. + +# bat is a great tool to render Markdown document with syntax highlighting. +#https://github.com/sharkdp/bat +#fzf-preview = "bat -p --color always {-1}" + + +# LSP +# +# Configure basic editor integration for LSP-compatible editors. +# See https://github.com/zk-org/zk/blob/main/docs/editors-integration.md +# +[lsp] + +[lsp.diagnostics] +# Each diagnostic can have for value: none, hint, info, warning, error + +# Report titles of wiki-links as hints. +wiki-title = "hint" +# Warn for dead links between notes. +dead-link = "error" + +[lsp.completion] +# Customize the completion pop-up of your LSP client. + +# Show the note title in the completion pop-up, or fallback on its path if empty. +#note-label = "{{title-or-path}}" +# Filter out the completion pop-up using the note title or its path. +#note-filter-text = "{{title}} {{path}}" +# Show the note filename without extension as detail. +#note-detail = "{{filename-stem}}" + + +# NAMED FILTERS +# +# A named filter is a set of note filtering options used frequently together. +# +[filter] + +# Matches the notes created the last two weeks. For example: +# $ zk list recents --limit 15 +# $ zk edit recents --interactive +#recents = "--sort created- --created-after 'last two weeks'" + + +# COMMAND ALIASES +# +# Aliases are user commands called with `zk [] []`. +# +# The alias will be executed with `$SHELL -c`, please refer to your shell's +# man page to see the available syntax. In most shells: +# * $@ can be used to expand all the provided flags and arguments +# * you can pipe commands together with the usual | character +# +[alias] +# Here are a few aliases to get you started. + +# Shortcut to a command. +#ls = "zk list $@" + +# Default flags for an existing command. +#list = "zk list --quiet $@" + +# Edit the last modified note. +#editlast = "zk edit --limit 1 --sort modified- $@" + +# Edit the notes selected interactively among the notes created the last two weeks. +# This alias doesn't take any argument, so we don't use $@. +#recent = "zk edit --sort created- --created-after 'last two weeks' --interactive" + +# 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 , $@" + +# Show a random note. +#lucky = "zk list --quiet --format full --sort random --limit 1" + +# Returns the Git history for the notes found with the given arguments. +# Note the use of a pipe and the location of $@. +#hist = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --" + +# Edit this configuration file. +#conf = '$EDITOR "$ZK_NOTEBOOK_DIR/.zk/config.toml"' diff --git a/templates/r/.zk/notebook.db b/templates/r/.zk/notebook.db new file mode 100644 index 0000000000000000000000000000000000000000..c643cf70063e79a0734492da5ed25edbf2371c93 GIT binary patch literal 86016 zcmWFz^vNtqRY=P(%1ta$FlG>7U}R))P*7lCU|?ZjU=U?M012oVOoWkvfq@;y!9lYy z=#_P{GB7YO^8W@Y5$6BR%fPdN>pNEk=Oj)wj%6Gs?8n%?u?ex9U_Qw*kvWA)pK&Sw z50KJP3=e@ub`f@QYkkH>!_2&t)Cw>WpO;^fS{$F8pOcfCT#}ieSBxPb=p5wg7~-nn z>F44ap@2h|g1?^vhE4?ykWhSPijD%pg80l7%_bvZc5!`u#unj{#H5^5kShFc5P-TN z#L>ye6`Ms|oM4cdqTuNl;_B`iq!19~>FXF2so?Dzso)qI;_vC_9OUZj>KCH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Z4$jnQRFG?*e%`8eyNlVNrP6h4%XXJm%!2fh8`fk+CqaiRF0;3@?8Umvs mFd71*Aut*OqaiRF0;3@?8UmvsFd72z5RhWFWW+uOzytt|{KP{5 literal 0 HcmV?d00001 diff --git a/templates/r/.zk/templates/default.md b/templates/r/.zk/templates/default.md new file mode 100644 index 0000000..cb44174 --- /dev/null +++ b/templates/r/.zk/templates/default.md @@ -0,0 +1,3 @@ +# {{title}} + +{{content}}