tealdeer icon indicating copy to clipboard operation
tealdeer copied to clipboard

Add auto generate completions for some shells

Open SergioRibera opened this issue 3 years ago • 2 comments

This is a requested function that solves problem #268 by generating automatic autocompletions and allows updating the cache

  • [x] Check format
  • [x] Check clippy
  • [x] test commands implementation

Supported Shells

  • Bash
  • Zsh
  • Fish
  • Powershell
  • Elvish

SergioRibera avatar Oct 04 '22 22:10 SergioRibera

Thanks! This issue (auto-generated completions) was originally tracked in https://github.com/dbrgn/tealdeer/issues/220 and a resolution attempt was started in https://github.com/dbrgn/tealdeer/pull/256 and https://github.com/dbrgn/tealdeer/pull/273. However, we noticed that the generated completions do not support dynamically generated values (i.e. completing the TLDR pages that are installed on the system). Your proposal probably doesn't have a solution for dynamic completions (#256) either, right?

dbrgn avatar Oct 04 '22 22:10 dbrgn

Thanks! This issue (auto-generated completions) was originally tracked in #220 and a resolution attempt was started in #256 and #273. However, we noticed that the generated completions do not support dynamically generated values (i.e. completing the TLDR pages that are installed on the system). Your proposal probably doesn't have a solution for dynamic completions (#256) either, right?

You are right, I guess I had not seen that, but I think I can implement it with the base I have so far, I will update the PR and let you know if I get something or not to close this PR, thank you very much.

SergioRibera avatar Oct 04 '22 22:10 SergioRibera

@SergioRibera Do you want to keep working on this, or should we close this PR for now?

niklasmohrin avatar Jul 05 '23 21:07 niklasmohrin

I've been busy with other things, so I think you can close the PR for now.

SergioRibera avatar Jul 05 '23 21:07 SergioRibera

Alright, no problem :)

niklasmohrin avatar Jul 05 '23 21:07 niklasmohrin