Johan Walles
2561e6a114
Fix wrapping scroll issue
2024-01-09 14:25:50 +01:00
Johan Walles
07e8bf6142
Pass all tests
2024-01-09 14:14:39 +01:00
Johan Walles
f22f6e7658
Silence false positive linter warnings
2024-01-09 14:10:44 +01:00
Johan Walles
8e81a04188
Make the tests compile
2024-01-09 13:52:59 +01:00
Johan Walles
1164972796
Add a not found pager mode
2024-01-09 13:47:04 +01:00
Johan Walles
2fbf74559f
Add a go-to-line mode
2024-01-09 13:38:52 +01:00
Johan Walles
dde3525a2b
Implement viewing mode
2024-01-09 13:31:43 +01:00
Johan Walles
74b84eed34
Start extracting pager modes
2024-01-09 12:00:47 +01:00
Johan Walles
f186b736da
Add zstd compression support
...
I like zstd.
2024-01-08 21:25:15 +01:00
Johan Walles
4a77e96159
Merge branch 'johan/zopen2'
...
With this change in place we now decompress using Go code rather than
forking off decompression programs.
As a side effect, this will make it possible (although maybe not
recommended) to use moar as a decompression program early in a pipeline:
moar something.gz | grep hello
Fixes https://github.com/walles/moar/issues/177 , or at least what that
issue has in its title.
2024-01-08 14:08:10 +01:00
Johan Walles
a579da4ccc
Revive xz support
2024-01-08 14:07:30 +01:00
Johan Walles
c6f6cfb7e7
Support gzip and bzip2 using Go's stdlib
2024-01-08 14:03:36 +01:00
Johan Walles
b2e223e381
Add a decompressing-while-piping test
2024-01-08 13:44:10 +01:00
Johan Walles
8c8b82f166
Use ZOpen() instead of os.Open()
2024-01-08 13:43:46 +01:00
Johan Walles
953d7382b0
Merge branch 'johan/linenumber'
...
This moves line number handling into its own package.
2024-01-08 12:59:19 +01:00
Johan Walles
a830f921b5
Update a comment
2024-01-08 12:58:58 +01:00
Johan Walles
6852018ece
Update a test to the new reality
2024-01-08 12:52:47 +01:00
Johan Walles
2a80a04243
Fix a faulty test
2024-01-08 12:50:34 +01:00
Johan Walles
b40c4bddf9
Always get status from reader
2024-01-08 12:41:51 +01:00
Johan Walles
c2d3e63ad4
Make another test pass
2024-01-07 23:40:12 +01:00
Johan Walles
6cf4d6b8ab
Fix another test
...
I don't understand the difference here, but the old one failed and the
new (even) more obvious one passes.
2024-01-07 23:30:15 +01:00
Johan Walles
ba3241e43e
Fix a broken assertion
2024-01-07 23:20:59 +01:00
Johan Walles
1c58d83bd3
Make some more tests pass
2024-01-07 23:17:34 +01:00
Johan Walles
d2b3fad36b
Parameterize another test
...
For great results presentations.
2024-01-07 22:48:14 +01:00
Johan Walles
f81ba2b216
Make another test pass
2024-01-07 22:44:32 +01:00
Johan Walles
ac6793f7a9
Make one test pass
2024-01-07 15:21:00 +01:00
Johan Walles
29e277ef06
Make a test pass
2024-01-07 09:11:09 +01:00
Johan Walles
41c77cd147
Make everything compile
2024-01-07 09:09:06 +01:00
Johan Walles
f82f63151b
Make another test compile
2024-01-07 09:08:11 +01:00
Johan Walles
cab9f9d3b2
Make some more tests compile
2024-01-07 08:56:02 +01:00
Johan Walles
044039739b
Make moar.go compile
2024-01-07 08:49:44 +01:00
Johan Walles
8a6c06ec9f
Make the last non-test file compile again
2024-01-07 08:40:19 +01:00
Johan Walles
5d4201b151
Make pager.go compile again
2024-01-07 08:38:52 +01:00
Johan Walles
05f8c2674b
Make pager.go compile again
2024-01-07 08:26:13 +01:00
Johan Walles
2c1dd09bbe
Fix some compile errors
2024-01-06 18:55:07 +01:00
Johan Walles
7acf6834a5
Make screenLines.go compile again
2024-01-06 18:51:22 +01:00
Johan Walles
7d80675075
Make the textstyles package compile again
2024-01-06 18:43:15 +01:00
Johan Walles
71ee7db815
Make line.go compile again
2024-01-06 16:40:13 +01:00
Johan Walles
00ad3f4699
Make gotoLine.go compile again
2024-01-06 16:36:08 +01:00
Johan Walles
f5302738f6
Make search.go compile again
2024-01-06 16:34:20 +01:00
Johan Walles
6f92718ab2
Make scrollPosition.go compile again
2024-01-06 16:30:03 +01:00
Johan Walles
2388327f69
Start working on scrollPosition.go
2024-01-06 14:47:50 +01:00
Johan Walles
a92121e2ec
Make reader.go compile
2024-01-06 14:34:16 +01:00
Johan Walles
bc866a1971
Fix package name
2024-01-06 14:10:26 +01:00
Johan Walles
a4d68435cb
Add a line numbers package
2024-01-06 14:08:32 +01:00
Johan Walles
55e2daf07f
Move textstyles into the (mostly) not-public part
...
I don't foresee this ever being published for anybody else to use.
2024-01-05 09:12:17 +01:00
Johan Walles
dc0243f9e3
Handle some warnings
2024-01-05 07:02:58 +01:00
Johan Walles
54c88d3858
Merge branch 'johan/textstyles'
...
This moves text styling code into its own package.
2024-01-05 06:53:27 +01:00
Johan Walles
c70228207e
Make the binary compile
2024-01-05 06:45:03 +01:00
Johan Walles
4dde8fe115
Make two more files build again
2024-01-05 06:43:37 +01:00