tldr-pages / tldr-c-client

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

[Feature request] add `--platform=all` option value #43

Open huntie opened 5 years ago

huntie commented 5 years ago

Problem

Whatever host development system tldr is installed on, I'd prefer to always have the full range of pages searchable by default regardless of platform. At the moment it is only possible to search entries on another platform by selecting that platform explicitly, since this tool defaults to auto-detection:

tldr --platform=linux ufw

Very often (and until I looked it up), I had forgot to do this and thought the entry was undefined. Furthermore, it is not possible to search through all platforms at once – a user would have to alter the command each time.

Potential solution

I propose that the platform option is updated to read all as a value (or alternatively a comma separated list of existing platforms), which would make the command search through all tldr directories.

With this in place, people could create an alias such as the below and never need to consider platform when using tldr, which would be ideal.

abbr -a tldr 'tldr --platform=all'