Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.62 KB

usage.md

File metadata and controls

63 lines (46 loc) · 1.62 KB

Usage

ZenKat supports a number of operations based on the fields it indexes. As of version v0.0.10 it indexes documents, links, list items, and tags and can recursively access properties. You can customise the output using --format.

zenkat list pages --filter "tags.name has writing" --format "{rel_path} {tags.name}"

One of the most powerful features of ZenKat is the ability to calculate backlinks and resolve paths:

zenkat list pages --sort "in_link_count asc"

It can correctly operate over dates using filters.

zenkat list pages --filter "created_at > Sep 25 2023"

You can also combine multiple filters, which will act like an AND statement.

zenkat list pages --filter "rel_path has business" --filter "rel_path has Client"

You can sort by fields using straightforward ascending / descending statements. Note that you can only sort on one field at the moment.

zenkat list pages --filter "rel_path has business" --sort "modified_at asc" --format "{modified_at} {filename}"

You can get a simple list of tags and then find which pages have those tags:

zenkat list tags
zenkat list pages --filter "any tags.name = daily"

You can access subfields recursively in most commands:

zenkat list pages --format "{title} {tags.0.name}"

You can keep track of your tasks and filter your todo lists:

zenkat tasks --filter "status ~ done"

You can quickly check document formatting:

zenkat cat README.md

You can store specific commands as macros from config:

[macros]
list_pages = "list pages --sort 'word_count desc'"
zenkat macro list_pages