]> Sergey Matveev's repositories - zk.zsh.git/blob - README
1dfb2c79e5c0d5cf7bf7b66e15fad5d1c5425d3c
[zk.zsh.git] / README
1 zk.zsh -- zettelkästen/wiki/static website helper/generator
2
3 * Use plain text files. One file per note/record
4 * Use CamelCase names, that are friendly with vi editor word
5   boundary determination
6 * You can safely place that notes in subdirectories hierarchy
7 * Edit and view your notes from their root path (zettelkästen
8   root). That way if you press "gf" on "Foo/Bar/Baz" word in
9   Vim, then it will open Foo/Bar/Baz file in current window
10 * Use expand("%:r") function to get current file path relative
11   to the root
12 * Place links to another notes inside square brackets. You can
13   highlight them with:
14     syntax region zkLink start="\[\S" end="\S]"
15     highlight link zkLink String
16 * Link to the directory's index can be made with [Dir/]
17 * Use Vim's filename completion (:help compl-filename) to
18   complete directories and filenames in them
19 * fzf (https://github.com/junegunn/fzf) related tools can be
20   used to navigate among existing notes
21 * Ordinary grep, git-jump or similar tools can be used to search
22   and quickly open results in the editor
23
24 The only thing Vim lacks there is ability to tell who backlinks
25 to the specified page. zk.zsh can be used to show what pages
26 backlinks to specified page and what pages are referenced by it:
27     $ zk.zsh links some/page
28     Another/Page
29     SomePage
30     $ zk.zsh backs some/page
31     [...]
32 That can be used to make categories and tags on notes. If note
33 contains a link to category/tag (even an empty file), then it
34 will be backlinked.
35
36     $ zk.zsh htmls path/to/dir
37 Will convert all your notes to HTMLs with properly created links
38 to other pages. It also will include all backlinks in them. Each
39 directory will also contain index page with links to all
40 existing pages in current directory and to subdirectories.
41
42 If ZK_CACHE environment variable contains path to some
43 directory, then it will keep caching information for speeding up
44 the processes in it. Look for CACHE file for more information.