-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Proposal: Formatted and Paginated Help #69
Comments
Are there any other tools that do this? Why not let the user do the piping? What if the user pipes the output to a file, then we should not emit ansi escape codes. Should we write a man page instead? Also see babashka/babashka#1299 |
I did a quick survey on my machine and to my surprise the only command I could find that did this was To put things in perspective, this isn't a huge priority for me, because I know there are other important things we can solve instead. No need to worry about this too much if you disagree with what I'm saying here, but I at least wanted to share my feelings about it. I would rank the ANSI formatting higher than the pagination since the ANSI formatting requires us as implementors to specify where the formatting should be. In contrast the pagination can be filled in by the user.
The best user experience should be the default. I think in practice most people would appreciate it if these things just worked out-of-the-box. Key word here being default, since it would still be possible to opt-out.
Yeah, I think this is doable. In contrast to the pagination behavior, I was able to find a couple examples of modern tools with colorized help (
I think the man pages would be in a different format from the |
I don't think adding paginated help is something we should do: it would complicate things too much imo. |
@borkdude: Understood. Does that mean ANSI formatting is still on the table? If so I'll make a placeholder issue just for that, otherwise I will just move on to other stuff. |
I think we should first solve babashka/babashka#1299 before we can reliably do ANSI. |
IMO it's not that important, but feel free to create an issue for it. |
Sounds good. I agree that the issue you linked higher priority. |
Features
--pager
/$PAGER
//usr/bin/less -is
(disabled in Windows?)--pager
is set and falsy, disable pagerDocs from
man man
Example (final formatting TBD)
The text was updated successfully, but these errors were encountered: