Skip to content

Shell completion #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mickael-menu opened this issue Apr 23, 2022 Discussed in #165 · 3 comments
Open

Shell completion #192

mickael-menu opened this issue Apr 23, 2022 Discussed in #165 · 3 comments
Labels
feature request Something is missing

Comments

@mickael-menu
Copy link
Member

Discussed in #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

@dandeandean
Copy link
Contributor

Do you guys know if any work has been done on this? I think even the simple completion would be a huge win for cli usability. It'd be nice to be able to page through the notes by calling zk edit <t>. If no one is actively working on it, I could take a look.

@tjex
Copy link
Member

tjex commented Mar 25, 2025

This is not being worked on since the start of 2024 when I came on board. Before that, I'm not sure, but that's more or less a general "no" I'd say.

I agree, it would be nice :)

@WhyNotHugo
Copy link
Contributor

WhyNotHugo commented Mar 26, 2025

It'd be nice to be able to page through the notes by calling zk edit .

zk edit -i should work for that particular use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Something is missing
Projects
None yet
Development

No branches or pull requests

4 participants