leostera / tldr.jsx

📚 A Reactive web client for tldr-pages
https://tldr.ostera.io
MIT License
1.54k stars 75 forks source link

Fallback to common / list OS-specific variants #156

Open clintonc opened 6 years ago

clintonc commented 6 years ago

If I search for linux/dd, it shouldn't say nothing was found -- it should display the content of common/dd (with an indication that the "common" version was shown).

If I search for dd, it shouldn't say nothing was found -- it should link me to the variants.

yigitsever commented 5 years ago

Moreover, currently on the homepage, while it's saying that

Try osx/say, linux/du, or simply man

https://tldr.ostera.io/linux/du claims command not found.

leostera commented 4 years ago

Ah, yes, this could be better. At the moment if it can't find the specific OS, it just bails, but it could probe for all the OS's available and list the other matches.

"Could not find [linux/dd], but found [common/dd]" - something like this.