tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
296 stars 49 forks source link

[Feature request] Add download prompt and option to toggle it off #45

Closed snowman closed 3 years ago

snowman commented 5 years ago

Search a nonexisting command could take 5 seconds, like tldr u This could be worse in some poor networks.

https://github.com/tldr-pages/tldr-cpp-client/blob/9b23d268548d3324581997c07df453542b302d51/src/tldr.c#L160-L164 https://github.com/tldr-pages/tldr-cpp-client/blob/9b23d268548d3324581997c07df453542b302d51/src/parser.c#L214-L221

Expect

  1. Add prompt for friendly

    fprintf(stderr, "Searching INPUT in URL...\n");
  2. option to turn search function on/off