-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
fix #30 Fit vertically/adjust to terminal height #50
Conversation
Just as I submitted the PR I realized that I haven't considered both |
Thank you for this! |
Morning @posva, what behaviour would you prefer if both
Personally I would prefer number 3 |
Aborting with an error message sounds good 👍 |
8ee1886
to
27c07e4
Compare
- Add arguments check to ensure that `-w` and `-H` aren't used at the same time - Update and rearrange the man page to reflect to above
27c07e4
to
9229865
Compare
Hi, I added the check and abort if both are passed. Additionally I did reorganise the man page file a bit so the options are sorted alphabetically. Plus reorganised the synopsis a bit. If you don't like it I'll of course restore the old man page + add the Related to the man page I got some questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this!
I need to test it a bit more to make sure it works on all machines. Where did you test so far?
I did test it on macOS 10.15.5, macOS 10.14.6, Linux Mint 19.3, Linux Mint 20, Raspberry Pi 3B+ with Debian Buster and FreeBSD 12.1. |
Oh, and no hurry at all. I'm old enough to know that the priorities can vary greatly. |
Oh wow, you already tested it in so many devices. After the needed changes, it should be good for a merge! |
- Changes in wording of man page - Renaming variable to snake_case
Testing is a big word :) ... it compiles and works fine for me on the mentioned platforms/distros with different images and two animated gifs. I haven't done any testing on Windows. It would be interesting because according to StackOverflow getting Btw: It also compiles on Haiku OS R1/Beta2 but the output in the Btw2: It compiles and works on Fedora 32 (all the OS except macOS & FreeBSD run on a Intel NUC) but you would have to move two variable definitions ( |
- Changes 'sc' & 'sr' to full names - Put (what I guess is a) span around some math operators
I made the changes as I mentioned in the comments + what I guessed does "put span around math operators" mean. |
- Fix logic error in arguments check to ensure that `-w` and `-H` aren't used at the same time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks a lot!
I will have to take a look at upgrading through home-brew and others. I haven't done it in a while!
I realized there is a floating point exception when providing a |
I see, I'll check on it and great a PR. The same does not happen with |
And regarding upgrading homebrew. a) no hurry and b) |
I pulled the merged |
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
-H
it changes. Passing-H
or-H 0
will adjust the image to the terminal height, passing a number is adjust to that height.