Johan Walles
81e9273f69
Add combra dependency
2021-11-07 09:14:08 +01:00
Johan Walles
871cf523c0
Bump Chroma to 0.9.4
...
Removes some indirect dependencies, fixes #74 .
2021-10-17 08:57:13 +02:00
Johan Walles
77f4b0aebe
Merge pull request #71 from walles/walles/windows-exe
...
Add a Windows executable to the release
2021-09-10 06:59:21 +02:00
Johan Walles
7a4e512bf6
Give "go test" more time on Windows
...
It took 14s in this Travis build...
https://app.travis-ci.com/github/walles/moar/jobs/536579072
... and I want more wiggle room, so increase the timeout to 30s.
2021-09-10 06:54:52 +02:00
Johan Walles
46b84fb392
Add a Windows executable to the release
2021-09-10 06:50:44 +02:00
Johan Walles
a710033d6f
Mention transparent decompression in --help message
2021-07-01 19:21:42 +02:00
Johan Walles
ce8ef9d1cc
README: List automatic decompression
...
It has been there all along, just not documented.
Spotted in #66 , thanks @ciscohack!
2021-07-01 19:13:33 +02:00
Johan Walles
994e29bc66
Document move to homebrew-core
2021-06-12 08:47:24 +02:00
Johan Walles
90ba73e11a
Add homebrew packaging
...
`brew install walles/johan/moar` to install.
`brew upgrade` to upgrade to latest release.
Packaging lives here:
https://github.com/walles/homebrew-johan/blob/main/Formula/moar.rb
Fixes #63 , thanks @fredericrous for the inspiration!
2021-06-05 11:10:31 +02:00
Johan Walles
fec9ad8149
Fix crash on paging down
...
Fixes #65 .
2021-06-04 13:20:28 +02:00
Johan Walles
2a435c091b
Print MOAR environment value in --help
2021-06-04 06:15:09 +02:00
Johan Walles
4552bfd79c
Add command line switch for hiding line numbers
2021-06-03 21:49:02 +02:00
Johan Walles
24776d7fe3
Improve vertical clipping in presence of wrapping
...
New vertical clipping algorithm:
1. Render all input lines we have
2. Scroll until the right ones are visible on screen
This makes us get closer to being able to show the last line in the
presence of wrapped lines, and paves the way for true sub-line
scrolling.
2021-06-03 07:25:02 +02:00
Johan Walles
8b242b42bc
Fix rendering of empty input
...
Before this change, we rendered empty input as one empty line.
With this change in place, we now put the EOF marker at the top, where
it belongs if there's nothing to show.
2021-05-31 19:08:19 +02:00
Johan Walles
47036defd4
Fix crash reading empty input
2021-05-31 19:00:11 +02:00
Johan Walles
962235dc8a
Merge branch 'walles/wrap-to-end'
...
This merge gets us closer to working scroll to the bottom when lines are
wrapped.
Next step to make this work all the way would be to support scrolling
the screen one screen line at a time, even when the first input line of
the screen is wrapped over multiple screen lines.
2021-05-30 16:13:08 +02:00
Johan Walles
c1d046f65b
First shot at wrap friendly line fitting
...
Tests crash, must fix.
2021-05-30 16:11:26 +02:00
Johan Walles
f7bad91000
Move search pattern into ScreenLines struct
2021-05-30 15:33:28 +02:00
Johan Walles
002d4e40af
Modify input lines rendering API
...
Make the rendering function return both the lines and the clipped
first-line-number value.
2021-05-30 11:36:07 +02:00
Johan Walles
c4e8562c7c
Revert "Remove failing test"
...
This reverts commit 4617c515b7
.
The test is valid and the point of this branch is to make it pass.
2021-05-30 10:18:04 +02:00
Johan Walles
531951967d
Merge branch 'walles/extract-rendering'
...
Extracts content rendering into its own file.
2021-05-30 10:16:13 +02:00
Johan Walles
4617c515b7
Remove failing test
...
The test is valid, but it's broken on master as well and it doesn't
affect this branch, so remove it so we're able to merge this branch into
master.
That test will be taken care of in another branch.
2021-05-30 10:13:11 +02:00
Johan Walles
891b2ccd4f
Add more cropping tests
2021-05-30 10:07:10 +02:00
Johan Walles
f84ae1df18
Move some tests into screenLines_test.go
...
Fix one crash, but I can provoke more so there are still more tests to
write.
2021-05-30 09:45:14 +02:00
Johan Walles
40905cd626
Extract single-line rendering into its own function
2021-05-29 16:08:53 +02:00
Johan Walles
5d0f11e4bc
Fix some horizontal clipping / scrolling issues
...
Some still remain.
2021-05-29 16:00:05 +02:00
Johan Walles
5ff126946a
Move pager lines rendering into its own file
2021-05-29 14:38:41 +02:00
Johan Walles
ecae4811de
Test that scolling to the last line works
...
It doesn't when we're in word wrapping mode.
Not sure how to fix this, but it is broken.
2021-05-27 06:48:51 +02:00
Johan Walles
3dd20e609d
Don't lose whitespace-only lines
2021-05-25 17:18:18 +02:00
Johan Walles
a062dd25f8
Break markdown links between text and URL
...
These tend to be long and screw up formatting, they need special
handling.
2021-05-25 17:10:24 +02:00
Johan Walles
05c1b278d6
Merge branch 'walles/wordwrap'
...
This is what was *actually* requested in #26 .
2021-05-24 19:16:17 +02:00
Johan Walles
a24a16434d
README: We support word wrapping
2021-05-24 19:15:53 +02:00
Johan Walles
3b7a906ce1
Word wrap URLs after /
2021-05-24 19:10:31 +02:00
Johan Walles
dda01e25a3
Break before whitespace
2021-05-24 18:46:00 +02:00
Johan Walles
ea7e9252b3
Extract wrap cutoff into its own function
2021-05-24 18:37:14 +02:00
Johan Walles
896ac3e874
Add word wrapping tests
2021-05-24 18:30:31 +02:00
Johan Walles
3df48a4ade
Simplify line wrapping tests
2021-05-24 18:16:57 +02:00
Johan Walles
e605199d92
Trim leading whitespace from wrapped lines
2021-05-23 16:23:04 +02:00
Johan Walles
0a40404070
Improve test feedback
...
On comparison failure, print both flavors.
2021-05-23 16:12:00 +02:00
Johan Walles
8a5f6fe473
Strip trailing whitespace when wrapping
2021-05-23 15:25:46 +02:00
Johan Walles
ca352bf37f
README: Add px / riff descriptions
2021-05-22 16:28:53 +02:00
Johan Walles
eea4afad18
Merge branch 'walles/wrap'
...
Add optional line wrapping.
Fixes #26 .
2021-05-22 16:05:52 +02:00
Johan Walles
ac6bdb4dbb
Update tests with new status line format
...
Line numbers are gone, the tests should reflect that.
2021-05-22 16:05:06 +02:00
Johan Walles
5e09be8a82
Update screenshot
...
New status bar without current line numbers.
2021-05-22 15:59:26 +02:00
Johan Walles
0f43cf1ea3
Make line wrapping controllable from the command line
2021-05-22 15:56:55 +02:00
Johan Walles
1538ed7e8d
Don't display current line numbers in the footer
...
They are visible on the side anyway, having them in the status bar is
just redundant.
NOTE: Wrapping should:
* default to off
* be controllable from the command line
* documented
2021-05-22 15:44:15 +02:00
Johan Walles
4efa280389
Make wrapping optional
...
And controllable from within by pressing 'w'.
NOTE: Wrapping should:
* default to off
* be controllable from the command line
* documented
* not mean we get the displayed line numbers wrong in the status line
2021-05-22 15:41:44 +02:00
Johan Walles
dcf8bbf9a7
Always wrap
...
NOTE: Wrapping should:
* be optional
* documented
* default to off
* be controllable from the command line
* be possible to toggle by pressing 'w'
2021-05-22 15:41:44 +02:00
Johan Walles
f0283e9e57
Implement simplistic wrapping
2021-05-22 15:41:44 +02:00
Johan Walles
b4a82b2668
Add initial line wrapper implementation
...
With failing tests.
2021-05-22 15:41:44 +02:00