zk icon indicating copy to clipboard operation
zk copied to clipboard

Shell completion

Open mickael-menu opened this issue 2 years ago • 0 comments

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:

  1. Basic completion. Suggesting commands (e.g. new, list, ...) and flags for each of those commands (e.g. --help, -f/--format, ...).
  2. 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).

image

mickael-menu avatar Apr 23 '22 12:04 mickael-menu