-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fallback to regular man if page not exists #46
Comments
Maybe a short message saying "Sorry, no tldr page yet. Create one at [url]!" then a 2 second pause before loading the man page? |
I'm not sure about the auto-opening, especially since man pages go full-screen.
Although that's a change from the usual |
Ooh, I really like @rprieto's idea. Would |
That's what I had in mind, let's find the other *nix equivalents! |
Hmm. Looks like there really aren't any other *nix equivalents, but you could check if chrome / firefox is installed and call them. |
Some pointers here, but indeed it seems there's no universal solution. |
I don't have a Linux machine handy to try it, but ghwd uses: # mac and linux-compatible open
open=open
command -v xdg-open && open=xdg-open
$open $url |
That's what is pointed out in the SO post I linked to. A comment there says it doesn't work on RHEL, but I suppose apart from that its support base is probably wide enough for a start. Besides, if someone can eventually contribute something better, there are always issues and pull requests :) |
Sorry, I was on the train and hadn't read your link yet 😬 |
Just moving this issue over to tldr-node-client #9. |
I know this thread is long dead, but incase anyone stumbles on this while Googling a solution, I use a
If you dont like that man is fullpage, use a different pager than the default (
|
Nice trick, thanks for sharing @ChrisCummins! By the way, do you think you could have any input in #527? We got a little blocked trying to come up with some generic shell scripting to implement that idea. |
Just in case
The text was updated successfully, but these errors were encountered: