1
1
mirror of https://github.com/walles/moar.git synced 2024-11-27 01:05:23 +03:00
Commit Graph

688 Commits

Author SHA1 Message Date
Johan Walles
37d6c59cba Do faster checks first 2023-05-18 09:28:03 +02:00
Johan Walles
1d17d6f68f Parse --quit-if-one-screen command line flag 2023-05-18 09:27:50 +02:00
Johan Walles
628c380b93 Sort of implement quit-if-one-screen
Doesn't compile, but still...
2023-05-18 09:26:23 +02:00
Johan Walles
2d028beb0d Use struct fields rather than anonymous parameters
For readability and lowered error-prone-ness.
2023-05-18 09:26:10 +02:00
Johan Walles
62aa81a88b Enable checking whether highlighting is done 2023-05-14 19:56:03 +02:00
Johan Walles
ea94ad40fa Enable checking whether a reader is done 2023-05-14 19:42:18 +02:00
Johan Walles
8fe4883baf Fix Arch Linux install instructions
Thanks to an e-mail from Jeremy Gust.
2023-05-10 14:30:06 +02:00
Johan Walles
6d83b9e24f README: Advertise terminal hyperlinks support 2023-05-03 19:59:41 +02:00
Johan Walles
a233d13627 Merge branch 'johan/terminal-hyperlinks'
Based on https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda.

Fixes #131.
2023-05-03 19:55:04 +02:00
Johan Walles
6f97576908 Fix a warning 2023-05-03 19:54:46 +02:00
Johan Walles
533123d936 Fix broken test case 2023-05-03 19:47:05 +02:00
Johan Walles
5ea3e61e8c Improve test diagnostics 2023-05-03 19:45:04 +02:00
Johan Walles
717ac6f164 Pass escape-backslash test 2023-05-03 19:33:35 +02:00
Johan Walles
a8e1279118 Pass the bell-terminated test 2023-05-03 19:29:40 +02:00
Johan Walles
6f8fc89f2e Improve parsing
But it still doesn't work.
2023-05-03 19:07:32 +02:00
Johan Walles
8ef7a00f03 Try implementing the logic
Doesn't work but I think we're close.
2023-05-03 17:38:54 +02:00
Johan Walles
d40026eb52 Fix broken checks 2023-05-03 06:27:14 +02:00
Johan Walles
047dbe4d23 Initial hyperlink tests 2023-05-03 06:22:50 +02:00
Johan Walles
dc0fe53366 Don't repeat the same hyperlink 2023-05-02 06:30:09 +02:00
Johan Walles
f6b7edc768 Reset hyperlinks at the end of each screen line 2023-05-02 06:29:37 +02:00
Johan Walles
a4da40ff8c Add rendering support for terminal hyperlinks 2023-05-01 15:56:08 +02:00
Johan Walles
077e5db9f3 Add terminal hyperlinks example 2023-05-01 15:11:22 +02:00
Johan Walles
9ee1d18ab5 Add another test
Turns out the thing I worried about wasn't moar's fault, but this test
is still valid so let's keep it.

Ref: https://gitlab.com/gnachman/iterm2/issues/10862
2023-03-23 22:42:40 +01:00
Johan Walles
eafb70d790 Configurable side scroll amount
Using the new --shift command line flag.

Fixes #130.
2023-03-19 11:57:40 +01:00
Johan Walles
a5bd7037e3 Single character shift when moving right / left
By holding ALT while pressing the right / left arrow keys.

Relates to #130.
2023-03-19 11:25:52 +01:00
Johan Walles
7bd5d3e099 Handle some unused parameters issues 2023-03-03 16:56:09 +01:00
Johan Walles
bc5260c95b
Merge pull request #129 from walles/johan/fix-windows-ci
Follow docs on how to build Go on CI
2023-03-03 08:38:45 +01:00
Johan Walles
6b93118c57 Maybe this one is better for Go 1.20? 2023-03-03 08:28:24 +01:00
Johan Walles
ddc5175325 Improve symmetry with the Linux workflow 2023-03-03 08:25:50 +01:00
Johan Walles
97851b2516 Follow docs on how to build Go on CI
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
2023-03-03 08:20:41 +01:00
Johan Walles
367c44d734 Make clicking CI badges take you to a good place 2023-03-03 08:13:04 +01:00
Johan Walles
fcc10582c9 Merge branch 'johan/better-flags'
This change simplifies command line flags handling and error reporting
by using flagSet.Func() for custom flags parsing.
2023-03-02 07:24:03 +01:00
Johan Walles
e21005d498 Improve comments 2023-03-02 07:22:32 +01:00
Johan Walles
e17e6bdac2 Make command line error messages more visible
Before this change I felt they just disappeared in the clutter from the
help text.
2023-03-02 07:17:05 +01:00
Johan Walles
5432ff567a Fix speling error 2023-03-02 07:06:10 +01:00
Johan Walles
b4541db00f Handle the scroll-sideways hints 2023-03-02 07:03:39 +01:00
Johan Walles
65ba59d136 Fix unprintable parsing 2023-03-02 06:56:52 +01:00
Johan Walles
b4eb15a53f Fix statusbar style printing 2023-03-02 06:50:45 +01:00
Johan Walles
c127d47b69 Handle style option better 2023-03-01 21:38:49 +01:00
Johan Walles
285aff2afc Do our own help printing 2023-03-01 07:36:49 +01:00
Johan Walles
c730afce46 Nicer code but worse feedback on option parse failures 2023-03-01 07:25:01 +01:00
Johan Walles
35105e5c64 Bump Go version to get generics 2023-03-01 07:05:54 +01:00
Johan Walles
c99c2e127a
Merge pull request #125 from walles/dependabot/go_modules/golang.org/x/sys-0.1.0
Bump golang.org/x/sys from 0.0.0-20210511113859-b0526f3d8744 to 0.1.0
2023-02-28 19:32:07 +01:00
Johan Walles
cc6819efd0 Display Private Use Unicode characters
Before this change, we rendered those as highlighted question marks.

With this change in place, we just send them to the screen for
displaying.

The reason is that Font Awesome uses these for symbols, this one for
example: https://fontawesome.com/v4/icon/battery-empty

More reading: https://en.wikipedia.org/wiki/Private_Use_Areas
2023-02-28 19:28:37 +01:00
dependabot[bot]
64d780fea7
Bump golang.org/x/sys from 0.0.0-20210511113859-b0526f3d8744 to 0.1.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20210511113859-b0526f3d8744 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 08:30:00 +00:00
Johan Walles
50e3ca43ae Add CI badges 2023-02-22 21:07:49 +01:00
Johan Walles
7e2d1a97f4 All the other arches are in lowercase 2023-02-22 19:58:29 +01:00
Johan Walles
1366ae1429 Add Arch Linux install instructions
Fixes #123

I went with Yay:
https://trends.google.com/trends/explore?date=all&q=arch%20paru,arch%20yay
2023-02-22 19:56:22 +01:00
Johan Walles
ce49d99a9a Add Linux/arm32 builds
Fixes #122

Or actually works around rather than fixes. The fix would be to have
moar packaged for Debian.
2023-02-22 19:48:31 +01:00
Johan Walles
742a6ac7e3 Allow 'q' to exit Go to Line
I keep pressing 'q' to do this but it never worked...
2023-02-19 03:15:04 +01:00