1
1
mirror of https://github.com/walles/moar.git synced 2024-11-30 02:34:13 +03:00
Commit Graph

36 Commits

Author SHA1 Message Date
Johan Walles
a67c887554 Include stack trace in panic logs 2024-08-12 21:47:46 +02:00
Johan Walles
6cf1223634 Catch errors in goroutines and log them 2024-08-10 08:40:48 +02:00
Johan Walles
eae1915b5e Fix formatting 2024-05-18 15:34:17 +02:00
Johan Walles
11095496b2 Tune logging 2024-05-18 15:23:37 +02:00
Johan Walles
d1fac66a23 Improve search logging 2024-05-18 15:15:45 +02:00
Johan Walles
f434895eef Fix backwards search performance issue
This problem was here all along, but it was excarberated by the newly
introduced parallel search.
2024-05-18 08:37:06 +02:00
Johan Walles
686882ffcd Improve docs 2024-05-18 08:13:08 +02:00
Johan Walles
60d3577b59 Don't crash searching in empty buffer 2024-05-18 07:59:44 +02:00
Johan Walles
64ae443e1f Log searches 2024-05-18 07:55:46 +02:00
Johan Walles
856574c289 Don't divide by zero 2024-05-18 07:52:20 +02:00
Johan Walles
ee35c6b166 Fix the chunk before positions 2024-05-18 07:47:40 +02:00
Johan Walles
625193933d Fix the line counts 2024-05-18 07:44:01 +02:00
Johan Walles
387fb348c7 Fix loop variables warning 2024-05-18 07:33:53 +02:00
Johan Walles
84cf4a9cd9 Return the search results
And fix backwards searches.
2024-05-18 07:31:28 +02:00
Johan Walles
aa342d4325 Implement more of the parallel search 2024-05-18 07:28:17 +02:00
Johan Walles
27d03630a5 Half way implement the parallel search 2024-05-18 07:23:40 +02:00
Johan Walles
0ba0415a50 Set the stage for parallel search 2024-05-18 07:15:31 +02:00
Johan Walles
edb3e51680 Don't search the whole file more than once
Should improve the performance situation reported here:
https://github.com/walles/moar/issues/209
2024-05-13 07:59:40 +02:00
Johan Walles
01c22cd50b Wrap interactive search on no hit 2024-05-11 06:53:34 +02:00
Johan Walles
b5f9b88c31 Fix wrapping backwards search 2024-01-10 14:41:21 +01:00
Johan Walles
ab20550d45 Fix search problem on not-found mode
Fixes #182, but there are still related issues when searching backwards
and wrapping after not-found.
2024-01-10 13:37:45 +01:00
Johan Walles
625c94feec Fix hang searching backwards
Solves the hang in #182, but we still don't find anything on the way
back so not there yet.
2024-01-10 13:15:43 +01:00
Johan Walles
1164972796 Add a not found pager mode 2024-01-09 13:47:04 +01:00
Johan Walles
74b84eed34 Start extracting pager modes 2024-01-09 12:00:47 +01:00
Johan Walles
8a6c06ec9f Make the last non-test file compile again 2024-01-07 08:40:19 +01:00
Johan Walles
2c1dd09bbe Fix some compile errors 2024-01-06 18:55:07 +01:00
Johan Walles
f5302738f6 Make search.go compile again 2024-01-06 16:34:20 +01:00
Johan Walles
f0bc8f2258 Enable revive for unused parameters check 2024-01-01 13:30:25 +01:00
Johan Walles
d8055e7ef0 Centralize visible height calculation
And stop doing it wrong in some places.
2023-12-02 13:46:15 +01:00
Johan Walles
8c4a133008 Add line numbers to escape sequence log messages 2023-11-13 08:50:37 +01:00
Johan Walles
4bd2d70a53 Add support for +1234 command line option
Fixes #155.
2023-09-27 20:23:27 +02:00
Johan Walles
524fd38587 Fix search issue while typing
Fixes #152
2023-09-14 20:05:04 +02:00
Johan Walles
54ec5d690f Make following work 2022-11-26 22:21:02 +01:00
Johan Walles
978df35492 Dummy implement bottom check 2022-09-24 08:29:02 +02:00
Johan Walles
008b7a7c3a Fix search prompt with status bar hidden 2022-07-20 19:01:52 +02:00
Johan Walles
c431cae73d Move search related code into its own file 2022-04-24 08:23:54 +02:00