Johan Walles
37d6c59cba
Do faster checks first
2023-05-18 09:28:03 +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
ea94ad40fa
Enable checking whether a reader is done
2023-05-14 19:42:18 +02: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
3b2980de8e
Use standoutStyle in the screen footer
2022-12-31 16:54:10 +01:00
Johan Walles
4c5193bb44
Fix a function name
2022-12-31 16:41:57 +01:00
Vinícius Machado Daros
b16aea6aa6
Changed Press 'q' or ESC to quit to be more symetric
2022-12-18 23:03:41 -03:00
Johan Walles
143bac35a8
Drop ALT-< / ALT-> support
...
Those don't work in `less` either and they haven't been out in any
release.
Also, I don't get them raw, so it's hard for me to support properly.
Ref: https://github.com/walles/moar/issues/107#issuecomment-1328354080
2022-11-28 07:09:18 +01:00
Johan Walles
56419b0491
Add some more keybindings
...
Requested here:
https://github.com/walles/moar/issues/107#issuecomment-1328354080
2022-11-28 07:05:15 +01:00
Johan Walles
bb1126bf7a
Remove unclear comment
...
That I wrote!
2022-11-26 22:28:38 +01:00
Johan Walles
fed3bbfbb8
Follow after first down
...
Even if it didn't scroll down right now.
2022-11-26 22:23:40 +01:00
Johan Walles
54ec5d690f
Make following work
2022-11-26 22:21:02 +01:00
Johan Walles
0c39d63aa0
Initial attempt
2022-11-26 21:58:24 +01: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
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
d7c1485c62
Keybinding: 'G' to scroll to the end
...
Fixes #92 .
2022-07-19 15:46:28 +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
72e78881fd
Cosmetics
2022-05-01 18:12:00 +02:00
Johan Walles
9ce0fb27be
Simplify enum
2022-05-01 09:16:02 +02:00
Johan Walles
ca51dc3be4
WIP Initial go to line pager changes
...
Doesn't compile, next step is to add a gotoLine.go file.
2022-05-01 09:07:28 +02:00
Johan Walles
42feb12f20
Fix mentions of the old Ruby version
2022-04-24 08:29:42 +02:00
Johan Walles
c431cae73d
Move search related code into its own file
2022-04-24 08:23:54 +02:00
Johan Walles
3bd4dd8df2
Unbreak search
2022-03-07 06:54:42 +01:00
Johan Walles
44f03aadf9
Add recursion guard to canonicalize()
2022-03-06 16:23:00 +01:00
Johan Walles
911b81610a
Fix ReprintAfterExit()
2022-03-06 16:23:00 +01:00
Johan Walles
91f7fdad83
Fix more compile errors
2022-03-06 16:23:00 +01:00
Johan Walles
43d955250a
Fix more compile errors
2022-03-06 16:23:00 +01:00
Johan Walles
c41bbf9351
Make scrolling publicly available
2022-03-06 16:23:00 +01:00
Johan Walles
154a071ff5
More understandability changes
2022-03-06 16:23:00 +01:00
Johan Walles
caf43e2ce3
WIP: Start using scrollPosition
2022-03-06 16:23:00 +01:00
Johan Walles
41923045fc
Move redrawing into screenLines.go
2022-03-06 16:23:00 +01:00
Johan Walles
388de91d3a
Add option for how to render unprintable characters
...
Fixes #83 .
2022-02-27 09:39:16 +01:00
Johan Walles
94c3623701
Proper go function names
...
Private function names should start with lowercase letters.
2022-02-19 08:49:10 +01:00
Johan Walles
46a5924796
Fix feature envy
...
The ScreenLines struct was just a subset of the pager struct.
2022-02-18 19:27:10 +01:00
Johan Walles
f0f4d703a0
Add --statusbar= command line option
...
Supports "plain", "inverse" or "bold", defaulting to "inverse".
Resolves #81 .
2022-02-18 19:09:05 +01:00
Johan Walles
b96c88c4d1
Support retaining screen contents after exit
...
Fixes #76 .
2021-11-09 18:56:02 +01: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
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
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
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
dc070cad75
Left pad line numbers
...
Fixes a regression, this is what it used to look like and should have
looked like all the time.
2021-05-22 15:39:39 +02:00
Johan Walles
f1061202ba
Extract search highlighting into its own Line method
2021-05-22 11:25:44 +02:00
Johan Walles
7e3a73f053
Three-group line numbers
...
Both the numbers in the left column of the file display, and the line
numbers shown in the page footer.
Fixes #6 .
2021-05-21 19:38:10 +02:00
Johan Walles
2b1e87b8ac
Log received events on trace level
...
If you run moar with -trace you'll get all handled events listed after
moar finishes running.
The point would be to be able to debug mishandled keys as reported
in #55 .
Also, remove the screen refresh timings from the trace logs. We get lots
of them, and I don't think they provide value any more.
2021-05-13 19:12:44 +02:00