dbrgn / tealdeer

A very fast implementation of tldr in Rust.
https://dbrgn.github.io/tealdeer/
Apache License 2.0
4.09k stars 124 forks source link

Add auto generate completions for some shells #295

Closed SergioRibera closed 1 year ago

SergioRibera commented 1 year ago

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

Supported Shells

dbrgn commented 1 year ago

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?

SergioRibera commented 1 year ago

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.

niklasmohrin commented 1 year ago

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

SergioRibera commented 1 year ago

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

niklasmohrin commented 1 year ago

Alright, no problem :)