Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying multiple operating systems #45

Closed
jedahan opened this issue Sep 1, 2018 · 6 comments
Closed

Allow specifying multiple operating systems #45

jedahan opened this issue Sep 1, 2018 · 6 comments

Comments

@jedahan
Copy link
Contributor

jedahan commented Sep 1, 2018

So sometimes I'm using tealdeer on my laptop which is macOS, and looking up a utility that is for linux on another box. I have to -o linux after seeing that the command is not found.

My workaround is function tld { tldr $* || tldr -o linux $* }

I was wondering how you'd feel making this the default behavior.

@dbrgn
Copy link
Collaborator

dbrgn commented Sep 1, 2018

Hm, what should happen if a command exists both on Linux and on SunOS (with different TLDR-pages), and you call tldr from macOS? 🙂

@jedahan
Copy link
Contributor Author

jedahan commented Sep 1, 2018

Perfect is the enemy of good?

I don't like to make things more complicated, but if you are concerned about confusion with automatic fallback, maybe one of all of:

  • configurable fallback order as cli arguments with a default
  • an indicator of the current fallback at the top or bottom of the rendering
  • maybe making this an upstream thing tldr-pages/tldr with symlinks as fallbacks?

@dbrgn
Copy link
Collaborator

dbrgn commented Sep 1, 2018

Maybe we could allow specifying multiple operating systems for the -o option? tldr -o osx,linux

@dbrgn dbrgn changed the title os fallback? Allow specifying multiple operating systems Oct 12, 2018
@BrainMaestro
Copy link

Maybe it could fail, but let the user know that the page exists on another os?

@dbrgn
Copy link
Collaborator

dbrgn commented Oct 23, 2018

I'd definitely favor an option where you could specify multiple operating systems in order of precedence (tldr -o osx,linux). Now that we have configfile support, the default setting could even be configurable. Alternatively, you could alias tldr to tldr -o osx,linux.

@dbrgn dbrgn added this to the v1.3.0 milestone Oct 8, 2019
@dbrgn dbrgn modified the milestones: v1.3.0, v1.4.0 Feb 27, 2020
@dbrgn dbrgn removed this from the v1.4.0 milestone Apr 14, 2021
@niklasmohrin
Copy link
Collaborator

This issue was closed in #300 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants