2024-02-21
ZkInfo is a command line interface to a sort of Zettelkasten system. It consists of nominally atomic pieces of tagged information, which can be recovered by querying for tags or words.
The program
The tags page shows a list of tags when you hover or click at top right. Select union or intersection to find info with any or all of the tags selected in the check boxes below.
The words page is a bit more complicated owing to the large number of words. Initially you see all infos with two buttons. the goto info button asks you for a number and shows that info, irrespective of any other choices.
The select button shows a union/intersection choice plus checkboxes for each word. Make your choices here, then click the view button to see the infos.
Both sets of checkboxes can be disabled by clicking the set words off button, which shows all infos, and enabled by clicking the set words on button, which appears when the checkboxes are disabled.
ZkInfos -h? -v? (-c <file>)? (-(r|u|d) <id>)?
options are:
-c <value> create info from <file>
-create create new infos.db in current directory
-d <value> delete <info number>
-h this help
-r <value> read <info number>
-t tag list
-u <value> update <info number>
-v version
-w word list - return infos with words matching all arguments
try ZkInfos.exe -w awk | less
ZkInfos stores supposedly atomic information as text in a database. Individual pieces of information are addressed by their id in the database. A datum may contain references to other data points and may be tagged. References and tags are rendered as hyperlinks in the html page.
The program also maintains a searchable word list.
'#' letter letter-or-digit-or-hyphen. # must be in column 1, with no trailing space on the line.'[' number '](' text ')' and are rendered as hypertext links to info <number>.The information is stored in an sqlite database called infos.db. ZkInfos.exe has to be started in this directory. Do ZkInfos -create to create the database if it doesn’t exist.
ZkInfos.exe -c <filename> prompts to create an info from <filename> the contents of filename.
ZkInfos.exe -r <number> prints info <number> to stdout.
ZkInfos.exe -u <number> prints info <number> to zk<number>.txt and writes contents of zk<number>.txt to the database when you press <return>.
ZkInfos.exe -d <number> deletes info <number>.
ZkInfos.exe -w word {word} prints tags containing all words to stdout.
ZkInfos.exe -t lists all tags to stdout.
The crud commands are straightforward queries on the database.
In order to parse links and tags, the info table is written to a temporary file with fields and records separated by ascii unit- and record-separators.
Html is then generated from the ZkInfos structure.
Produced with:
pp ZkInfosHelp.txt | pandoc --self-contained --toc --toc-depth=2 -N -c devDoc.css -s -t html5 -o ZkInfosHelp.html
2024-02-21 01:22:14