1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00
Commit Graph

566 Commits

Author SHA1 Message Date
Johan Walles
6bee135317 Add a comment 2022-09-25 08:27:10 +02:00
Johan Walles
1fa95284a1 Fix the final test failure 2022-09-25 08:22:47 +02:00
Johan Walles
210c5c1b33 Fix an oversight in a test case 2022-09-24 17:00:17 +02:00
Johan Walles
b06ba09972 Fix a mis-written test 2022-09-24 16:59:29 +02:00
Johan Walles
b1a5743231 Fix broken test expectation 2022-09-24 16:50:14 +02:00
Johan Walles
c0aa6160e6 Fix a crash discovered by a test case 2022-09-24 16:40:41 +02:00
Johan Walles
94ab7d37ee Start making tests pass 2022-09-24 16:37:52 +02:00
Johan Walles
28d1fea887 Add wrapped test 2022-09-24 12:12:26 +02:00
Johan Walles
a51f38826c Add tests for Pager.isScrolledToEnd() 2022-09-24 08:46:31 +02:00
Johan Walles
a639a2c77c Simplification 2022-09-24 08:46:15 +02:00
Johan Walles
28eb7bd364 gotest.tools has assert(), not require() 2022-09-24 08:29:39 +02:00
Johan Walles
978df35492 Dummy implement bottom check 2022-09-24 08:29:02 +02:00
Johan Walles
15a3df46da go mod tidy 2022-09-24 08:28:55 +02:00
Johan Walles
c62037f952 Add a failing test 2022-09-24 08:25:12 +02:00
Johan Walles
8c68a5cd68 We already had a testing library 2022-09-24 08:24:26 +02:00
Johan Walles
38ed948da3 Simplify test expectations 2022-09-22 20:53:59 +02:00
Johan Walles
8d9c2be69f Add initial search tests 2022-09-22 20:45:13 +02:00
Johan Walles
ef51467457
Merge pull request #99 from herbygillot/patch-1
README: Add MacPorts install info
2022-08-08 08:11:56 +02:00
Johan Walles
257b9e7bf5 Clarify we want UTF-8 input
Fixes #101.
2022-08-07 19:26:51 +02:00
Johan Walles
1faf60d615 Merge branch 'johan/scroll-hints'
Fixes #94.
2022-08-07 19:10:17 +02:00
Johan Walles
7d91acaf74 Update man page 2022-08-07 19:07:46 +02:00
Johan Walles
0cd33532f9 Fix scroll hint options parsing 2022-08-07 17:57:13 +02:00
Johan Walles
1e192779f7 Add scroll hint options
Broken, unsure why. Tried it without any options and got error messages.
2022-08-07 17:43:29 +02:00
Johan Walles
2697cee997 Make tests pass 2022-08-07 15:26:14 +02:00
Johan Walles
da43e89b5f Make scroll hints API configurable 2022-08-07 15:15:43 +02:00
Johan Walles
a7156c5ee7 Bump golangci-lint 2022-08-07 15:14:59 +02:00
Herby Gillot
e6456e01a8
README: Add MacPorts install info
https://ports.macports.org/port/moar/
2022-07-29 02:24:33 -04:00
Johan Walles
fdb520ce13 Merge branch 'johan/options-on-manpage'
Improves on #87.
2022-07-22 11:32:26 +02:00
Johan Walles
cde9935268 Tuning 2022-07-22 11:32:00 +02:00
Johan Walles
5571c181b7 Accept not having --version in the OPTIONS section
It's documented separately at the top of the man page.
2022-07-22 11:26:04 +02:00
Johan Walles
8ca95ce6d2 Document the last two options 2022-07-22 11:24:28 +02:00
Johan Walles
7ef4557355 Man page more options 2022-07-22 09:13:23 +02:00
Johan Walles
9b24499765 Fix test.sh verification
It now handles options containing \- in the man page source.
2022-07-22 09:05:09 +02:00
Johan Walles
e93d3b4924 Document more options
But break our verification...
2022-07-22 08:56:50 +02:00
Johan Walles
51e553cf36 Verify man page options vs --help options 2022-07-22 08:45:27 +02:00
Johan Walles
7a924e3593 Document one option
Based on the GNU ls man page.
2022-07-22 08:35:20 +02:00
Johan Walles
226170989d Clarify what "decompression" means
Fixes #97.
2022-07-21 19:10:23 +02:00
Johan Walles
1c2417be58 Add a man page
Relates to #87, but before marking as fixed the Homebrew packaging will
need to be updated as well to include the man page:

https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/moar.rb
2022-07-21 16:08:31 +02:00
Johan Walles
900e373688 Support bright background colors
Not sure why this had been forgotten about.

Fixes #95.
2022-07-20 22:22:28 +02:00
Johan Walles
2a4336f6db Add --no-statusbar to hide the status bar
Fixes #93.
2022-07-20 22:16:33 +02:00
Johan Walles
008b7a7c3a Fix search prompt with status bar hidden 2022-07-20 19:01:52 +02:00
Johan Walles
0942ce5c6c Enabling toggling status bar on / off
Only from within the pager right now, toggle key is `=`.

Relates to #93.
2022-07-20 18:57:19 +02:00
Johan Walles
0ec6e58b23 Link to source code from --help output
Relates to #87.
2022-07-19 17:07:11 +02:00
Johan Walles
d7c1485c62 Keybinding: 'G' to scroll to the end
Fixes #92.
2022-07-19 15:46:28 +02:00
Johan Walles
fe029d056b Fix startup race condition
Before this change, if the input stream was slow at loading, pressing
down arrow would immediately take you to the end of the input.

Also, searching wouldn't find anything.

With this change in place both arrow-down and searching should work even
when the input stream is slow.
2022-05-26 09:23:23 +02:00
Johan Walles
196edb1bb2 ^u / ^d for half-page up / down
Resolves #90 together with #91.
2022-05-02 07:08:45 +02:00
Johan Walles
4c5eed7e04 Improve unknown-runes logging
Before this change, ^d and ^u were logged as just '', which was not
helpful.
2022-05-02 06:57:48 +02:00
Johan Walles
1c4ec28cb5
Merge pull request #91 from walles/johan/goto-line
Implement go to line functionality
2022-05-01 18:16:25 +02:00
Johan Walles
72e78881fd Cosmetics 2022-05-01 18:12:00 +02:00
Johan Walles
d68a80ee4b Update README 2022-05-01 18:11:17 +02:00