Johan Walles
5313c02dd6
Simplify line rendering more
2023-10-10 21:26:43 +02:00
Johan Walles
dff0774141
Simplify line rendering
2023-10-10 21:14:36 +02:00
Johan Walles
99de54c510
Pass another mutation test
2023-10-10 20:46:53 +02:00
Johan Walles
8478883821
Test another corner case
...
It worked!
2023-10-10 06:18:03 +02:00
Johan Walles
a082fe207e
Use the correct style for the trailer
2023-10-10 06:16:09 +02:00
Johan Walles
59a636205a
Add trailing whitespace test
...
Failing.
2023-10-10 06:01:49 +02:00
Johan Walles
d7c104e80a
Be smarter about line endings
...
Doesn't help Kitty though, don't know why.
2023-10-09 19:52:01 +02:00
Johan Walles
cd95996e8e
Shortcut common style changes
2023-10-09 19:45:43 +02:00
Johan Walles
47e72d093c
Fix an outdated test
2023-10-09 19:45:27 +02:00
Johan Walles
c747b8ec0b
Add test for #161
...
It fails.
2023-10-08 12:00:07 +02:00
Johan Walles
b7f0e24fbf
Default to --colors=auto
2023-10-06 22:13:26 +02:00
Johan Walles
251513ef66
Use plain style color for unclassified text
...
I believe this fixes #159 .
2023-10-06 19:03:48 +02:00
Johan Walles
41e2efc05b
Merge pull request #160 from ilyagr/homeend
...
keys.go: Allow alternative Home/End key encoding
2023-09-30 17:06:33 +02:00
Ilya Grigoriev
7b8d7eafe3
keys.go: Allow alternative Home/End key encoding
...
My setup is Tmux running in Alacritty on Debian Linux running on Chrome OS.
Before this change, Home and End keys did not work for me inside Tmux.
(Outside tmux, I don't think there was a problem).
I got the required sequences by running `cat` and pressing Home/End.
This looks similar to (or possibly the opposite of)
daafbcdac4
.
The reference in that commit mentions these sequences for Home and End, these
kinds of sequences were already used for Delete, PgUp, and PgDown.
For reference, the missing `\x1b[2~` sequence would correspond to the Insert
key.
2023-09-29 23:30:38 -07:00
Johan Walles
faafc49471
Accept +1234 argument in any place
...
Fixes the issue reported with PR #158 :
https://github.com/walles/moar/pull/158#issue-1918313499
2023-09-29 22:42:41 +02:00
Johan Walles
242c050adf
Merge pull request #158 from m3tav3rse/arg0
...
Fix +number flag handling
2023-09-29 07:08:55 +02:00
m3tav3rse
3e75780a92
Fix + flag handling
...
Currently only works for: moar file +123
2023-09-28 23:20:54 +02:00
Johan Walles
822bd80f05
Merge pull request #157 from walles/johan/start-at-line
...
Add support for +1234 command line option
2023-09-27 20:36:22 +02:00
Johan Walles
1209010995
Handle the options test
2023-09-27 20:33:26 +02:00
Johan Walles
e21da3dabe
Don't accept negative line numbers
2023-09-27 20:29:29 +02:00
Johan Walles
4bd2d70a53
Add support for +1234 command line option
...
Fixes #155 .
2023-09-27 20:23:27 +02:00
Johan Walles
4b7c112364
Merge pull request #156 from walles/johan/bump-actions
...
Bump actions to latest versions
2023-09-23 13:05:01 +02:00
Johan Walles
c648074c8a
Bump actions to latest versions
...
For Go this means we get caching between runs.
For Checkout this means that we now use a supported Node setup, making
us not get warnings in the web UI.
2023-09-23 12:55:27 +02:00
Johan Walles
8ee8c75cce
Merge pull request #154 from m3tav3rse/gg
...
Keybinding: 'gg' now scrolls to line 1, like in `less`
2023-09-23 12:54:23 +02:00
Johan Walles
c1a43957eb
Add 'gg' to internal help
2023-09-23 12:46:22 +02:00
m3tav3rse
1b6b155bf3
Keybinding: 'gg' now scrolls to line 1, like in less
2023-09-17 22:00:26 +02:00
Johan Walles
0a2dfa38e2
Automate Homebrew packaging
2023-09-15 22:30:23 +02:00
Johan Walles
a25c9d6477
Don't crash on single line terminal windows
...
Corner case much?
2023-09-14 20:23:18 +02:00
Johan Walles
524fd38587
Fix search issue while typing
...
Fixes #152
2023-09-14 20:05:04 +02:00
Johan Walles
083f64dc9d
Don't show thousands separator for numbers < 10_000
...
Fixes #151
2023-09-13 06:52:20 +02:00
Johan Walles
5932600b65
Handle more TTY corner cases
...
Fixes #150 , which I to my surprise could reproduce on my own machine.
2023-08-31 19:48:02 +02:00
Johan Walles
5a33eda766
Improve console input EOF handling
...
Related to #126 . Need some Windows tester to tell me how it works.
2023-08-30 21:26:29 +02:00
Johan Walles
61f35db554
Avoid paging if screen setup fails
...
Instead, when screen setup fails, just pump our input (file or stream)
to stdout.
Fixes #149 .
2023-08-27 14:52:08 +02:00
Johan Walles
574235bc03
Print log messages on panic()
...
Before this change, if moar...
1. Logged some messages
2. Panicked
... then only the panic() output would be printed and the log messages
would be lost.
With this change in place, both are printed.
2023-08-27 09:02:31 +02:00
Johan Walles
848958dad0
Clarify where Windows errors come from
2023-08-14 19:47:42 +02:00
Johan Walles
99f4b5623f
Merge pull request #141 from walles/johan/386-tests
...
Make tests pass on 32 bit binary
2023-07-08 17:14:25 +02:00
Johan Walles
afcb45ab9d
Handle integer overflow
2023-07-08 17:09:06 +02:00
Johan Walles
bf9edda02d
Skip bzip2 tests if bzip2 is not available
2023-07-08 17:08:40 +02:00
Johan Walles
4f74d8b77b
Name files as we test them
2023-07-08 14:09:02 +02:00
Johan Walles
fbc1dc9e49
Enable running tests in 32 bit mode
...
One is failing.
Ref: https://github.com/walles/moar/issues/140
2023-07-08 09:53:11 +02:00
Johan Walles
daafbcdac4
Handle "SS3" arrow key events
...
Ref:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-C1-_8-Bit_-Control-Characters
Fixes #138
2023-06-07 19:49:13 +02:00
Johan Walles
15a90f5f77
Do all < 32 characters, not just ESC
2023-06-06 08:50:42 +02:00
Johan Walles
6abe5ba1b1
Improve debug logging of unhandled key events
...
Should help troubleshooting #138 .
2023-06-06 08:31:42 +02:00
Johan Walles
00d951bdc9
Make --quit-if-one-screen much more responsive
2023-05-20 08:03:45 +02:00
Johan Walles
2a5b82fe81
Log start / end on trace level
2023-05-20 07:00:05 +02:00
Johan Walles
63839bd325
Phrase locking nicer
2023-05-18 20:50:28 +02:00
Johan Walles
687aba62cd
Merge branch 'johan/quit-if-one-screen'
...
Fixes #113
2023-05-18 09:29:54 +02:00
Johan Walles
0427d26443
Self review
2023-05-18 09:28:03 +02:00
Johan Walles
54fdc5f684
Update man page
2023-05-18 09:28:03 +02:00
Johan Walles
015f0a3a14
Fix a test
2023-05-18 09:28:03 +02:00