zk
zk copied to clipboard
Shell completion
Discussed in https://github.com/mickael-menu/zk/discussions/165
Originally posted by rgoncalvesse February 4, 2022
Am I am missing something or is there still no shell completion?
Actually, I would separate the completion in two distinct types:
- Basic completion. Suggesting commands (e.g. new, list, ...) and flags for each of those commands (e.g. --help, -f/--format, ...).
- Filter completion. Suggesting note title, note id or tags when filtering (e.g. https://github.com/mickael-menu/zk/blob/main/docs/note-filtering.md#filter-by-tags)
For instance, taskwarrior
suggests a multitude of dates/day/month/events when creating a new task with a due date. For zk, the ultimate completion state could be to suggest similar days/events when filtering notes by creation or modification (see below).