-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Add or document inverse flag options #124
Comments
Sounds like fixing that "it's cutting of lines when line numbers are displayed" would be good as well. Could you please add to this ticket:
Since I don't have access to any Windows machine I may not be able to repro this, but at least having a screenshot would be good. |
Also, just out of curiosity, how did you install |
Installed with scoop package manager (https://scoop.sh) ❯ scoop info moar Name : moar $PAGER=moar |
I can repro this on Linux.
pwsh
update-help
help get-help
exit You can setup the PAGER & MOAR vars before runing pwsh or from within $Env:PAGER = moar
$Env:MOAR = '-no-linenumbers' |
Is the problem that Ref: #119 (comment) Otherwise, can you point out in detail one thing you'd like to look different in one of your screenshots? |
Yes :) |
Yes. I don't believe this is an issue with moar. That's why I didn't write that issue up specifically. The So, by necessity, what I need is to be able to set MOAR to default to -no-linenumbers, and then invoke moar with line numbers in cases where I need it (probably with an alias). That is the main issue I was intending to bring up here: Adding/documenting inverse flags. Eg. -show-linenumbers / -no-linenumbers / -no-linenumbers=f. I hate that last syntax's double negative, but it works as is right now. It's just not documented. Sorry we got side-tracked. |
On Windows, using PowerShell Get-Help with $PAGER configured to use moar, it's cutting of lines when line numbers are displayed. I don't know if that's a bug in moar or PowerShell. PowerShell doesn't give any options for configuring paging at all. Line wrapping option doesn't help at all: words are still cut off. I can add the -no-linenumbers flag to the $MOAR variable to fix it, but then I ran in to the problem of how to show line numbers in other instances. It took me a long time before I blindly stumbled on the solution: -no-linenumbers=f. That's terribly ugly and not documented anywhere that I can see.
Can we have inverted flags for boolean options? -linenumbers or -show-linenumbers? Or at the very least, document how to supply values to boolean flags? This was not obvious to me.
The text was updated successfully, but these errors were encountered: