mirror of
https://github.com/mickael-menu/zk
synced 2024-11-13 01:10:43 +00:00
29 lines
749 B
Plaintext
29 lines
749 B
Plaintext
$ cd full-sample
|
|
|
|
# Use a custom filter with `zk list`.
|
|
$ echo "[filter] short = '--sort word-count --exclude ref'" > .zk/config.toml
|
|
|
|
$ zk list -qf"\{{word-count}} \{{path}} \{{title}}" short --limit 5
|
|
>21 fwsj.md Channel
|
|
>37 88el.md Ownership in Rust
|
|
>44 2cl7.md Fearless concurrency
|
|
>44 fa2k.md Financial markets are random
|
|
>49 wtz9.md Use small Hashable items with diffable data sources
|
|
|
|
# Filter named after a directory to override the default filtering options.
|
|
$ echo "[filter] inbox = 'inbox --sort path-'" > .zk/config.toml
|
|
|
|
$ zk list -qfpath inbox
|
|
>inbox/my59.md
|
|
>inbox/er4k.md
|
|
>inbox/dld4.md
|
|
>inbox/akwm.md
|
|
|
|
# Nested filters.
|
|
$ echo "nested = 'inbox --limit 2'" >> .zk/config.toml
|
|
|
|
$ zk list -qfpath nested
|
|
>inbox/my59.md
|
|
>inbox/er4k.md
|
|
|