Files
dotfiles/zsh/.local/share/zsh/functions/zkbat
2026-01-03 01:59:33 +00:00

7 lines
180 B
Plaintext

# A simple wrapper around `zk list` to select & view a note
zkbat() {
filename=$(zk list "$@" --interactive -q -f jsonl | jq -r .absPath )
bat $filename
echo $filename >&2
}