1
1
mirror of https://github.com/walles/moar.git synced 2024-08-16 23:40:35 +03:00
Commit Graph

593 Commits

Author SHA1 Message Date
Johan Walles
a33568d3d2 Add locking
Maybe not needed.
2022-11-04 18:03:14 +01:00
Johan Walles
78344d1761 Implement our string builder 2022-11-04 08:57:15 +01:00
Johan Walles
18bd350dab ReusableStringBuilder skeleton 2022-10-31 21:52:18 +01:00
Johan Walles
d3f67b2989 Use a reusableStringBuilder instead
Next step is to build one of those...
2022-10-30 21:26:01 +01:00
Johan Walles
62322e6cc0 README: Improve profiling section 2022-10-30 00:54:22 +02:00
Johan Walles
6a44c61809 Merge branch 'johan/faster-styledStringsFromString'
This about doubles search performance in highlighted text.
2022-10-30 00:46:03 +02:00
Johan Walles
183f984eb5 Handle plain text search performance regression 2022-10-30 00:42:28 +02:00
Johan Walles
e78f1efd71 Fix typo 2022-10-30 00:29:03 +02:00
Johan Walles
faf5e330e7 Do styledStringsFromString without regexps
The idea is that this should use fewer memory allocations, and thereby
improve our benchmark numbers.

I think this is mostly right, but one test fails though and that needs
to be looked into.
2022-10-30 00:29:03 +02:00
Johan Walles
b31cbd5de1 Print memory stats while benchmarking 2022-10-30 00:28:08 +02:00
Johan Walles
0260da08a5 30% faster search performance 2022-10-29 16:50:42 +02:00
Johan Walles
b7ad10fda6 Merge branch 'johan/clear-to-eol' 2022-10-28 21:29:54 +02:00
Johan Walles
b43f52be7b Self review fixes 2022-10-28 21:23:31 +02:00
Johan Walles
d359c1e05e Make the tests pass 2022-10-28 21:18:47 +02:00
Johan Walles
09e7a2178e Remember to set the trailer color 2022-10-28 06:59:45 +02:00
Johan Walles
a30a31bb2b Try supporting Clear-to-EOL
This should be about right, but the tests are still failing.
2022-10-27 16:51:17 +02:00
Johan Walles
5936fb07ee Initial tests for clear-to-eol support 2022-10-25 21:24:04 +02:00
Johan Walles
e323fb98f6 Merge branch 'johan/fix-105'
Fixes #105
2022-10-13 19:46:26 +02:00
Johan Walles
8682d2509b Fix the crash
We don't need to render anything and get this precisely right, it just
has to be at least enough.
2022-10-13 19:43:18 +02:00
Johan Walles
fa1f38c687 Repro the crash in a test case 2022-10-13 19:38:28 +02:00
Johan Walles
c619e6c248 Merge branch 'johan/fix-line-highlight' 2022-09-25 21:08:31 +02:00
Johan Walles
3401d95140 Fix toRunePositions()
So it has no corner cases any more.
2022-09-25 21:07:27 +02:00
Johan Walles
d32eb6af27 Remove dead variable 2022-09-25 19:21:05 +02:00
Johan Walles
b0bfc0cb58 Add test for a just-found highlighting bug 2022-09-25 19:20:36 +02:00
Johan Walles
3e9d6d2a44 Bump testing library to latest version 2022-09-25 09:06:46 +02:00
Johan Walles
45adcc4a3c Correct homebrew release instructions 2022-09-25 08:40:40 +02:00
Johan Walles
f8228e4c49 Merge branch 'johan/fix-wrap-search' 2022-09-25 08:27:43 +02:00
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