1
1
mirror of https://github.com/walles/moar.git synced 2024-09-21 17:08:34 +03:00
Commit Graph

230 Commits

Author SHA1 Message Date
Johan Walles
9fcc235430 README: Unicode search hits done 2019-11-06 21:42:20 +01:00
Johan Walles
ad4c545df0 Add another match ranges test 2019-11-06 21:40:14 +01:00
Johan Walles
ea3dcf3ca5 Fix a crash 2019-11-06 21:38:39 +01:00
Johan Walles
fb3b6abbe7 Pass the tests
But crash the app.

Do:
* ./moar.sh sample-files/long-and-wide.txt
* Search (/) for "monkey"
2019-11-06 20:30:59 +01:00
Johan Walles
494032278b Fix some failing tests 2019-11-06 18:50:34 +01:00
Johan Walles
df1702ac21 Test that match ranges are by rune not by byte 2019-11-06 06:50:53 +01:00
Johan Walles
109f40e7ed Prettify 2019-11-05 21:30:04 +01:00
Johan Walles
81fe99f366 WIP: Test search highlights 2019-11-05 21:20:06 +01:00
Johan Walles
ab0e62123b WIP: Line rendering tests
Implement search hits tests as well.
2019-11-05 21:09:45 +01:00
Johan Walles
8e08e729c4 Fix environment depending test failure 2019-11-05 08:32:06 +01:00
Johan Walles
742401ec82 Fix crash removing unicode char from search string
Fixes #12
2019-11-02 12:19:04 +01:00
Johan Walles
f1f11f6805 release.sh usability fix 2019-10-30 22:08:37 +01:00
Johan Walles
6b42190343 Merge branch 'walles/less-termcap'
Fixes #14
2019-10-30 21:00:50 +01:00
Johan Walles
70eb01e5ed Update docs 2019-10-30 21:00:11 +01:00
Johan Walles
6334be7dcc Adapt to LESS_TERMCAP_md and LESS_TERMCAP_us
Fixes #14
2019-10-30 20:29:29 +01:00
Johan Walles
a7cba8bb16 Move man page formats into variables 2019-10-30 20:13:28 +01:00
Johan Walles
a4ec70fea3 Add man page formatting tests 2019-10-30 18:47:49 +01:00
Johan Walles
ad0f174651 Make loading spinner more obvious 2019-10-29 22:05:42 +01:00
Johan Walles
1ed285d13b Merge branch 'walles/moar-colors'
Adds eight and twenty four bits color support.
2019-10-29 06:09:25 +01:00
Johan Walles
7405293e25 Add sample file for color handling
From #14
2019-10-28 21:54:57 +01:00
Johan Walles
04cd520d0e Fix the last color handling tests 2019-10-28 21:46:18 +01:00
Johan Walles
1dda4b1a87 Handle 24 bit color 2019-10-28 20:30:04 +01:00
Johan Walles
94774e121a Report final error message 2019-10-28 20:21:39 +01:00
Johan Walles
8b9e85958c Handle 8 bit colors 2019-10-28 20:18:07 +01:00
Johan Walles
f973ed5c46 Report incomplete color sequence 2019-10-28 20:09:08 +01:00
Johan Walles
86b5f93895 Add another test 2019-10-27 21:45:26 +01:00
Johan Walles
e1eb4fd51e Fix an assertion test 2019-10-27 21:43:33 +01:00
Johan Walles
7b935e7c49 Sanity check input 2019-10-27 21:40:30 +01:00
Johan Walles
3f35a545f9 Turn some test errors into failures 2019-10-27 18:53:08 +01:00
Johan Walles
53328770ec Test incomplete 24 bit sequences 2019-10-27 10:11:25 +01:00
Johan Walles
4f731c37d8 Test incomplete 8 bit sequence 2019-10-27 10:07:34 +01:00
Johan Walles
295db4efa3 Test mid-sequence error reporting 2019-10-27 10:03:57 +01:00
Johan Walles
31946bc74e Test happy case mid sequence 2019-10-27 09:58:26 +01:00
Johan Walles
b73810dc14 WIP: Initial tests for 8/24 bit color 2019-10-27 09:15:16 +01:00
Johan Walles
7a4e5a36bc Fix a warning 2019-10-25 19:24:37 +02:00
Johan Walles
1eacd211b1 Merge branch 'walles/highlight-in-progress' 2019-10-16 06:24:50 +02:00
Johan Walles
019757100d Update README 2019-10-16 06:21:12 +02:00
Johan Walles
d3e3dc75a9 Animate the EOF marker 2019-10-16 06:09:21 +02:00
Johan Walles
b13c904c51 Add rolling ... to status bar while loading 2019-10-16 06:01:49 +02:00
Johan Walles
c756bd0288 Support SGR 4, underline
diff --git m/ansiTokenizer.go m/ansiTokenizer.go
index 365b76a..7161bc6 100644
--- m/ansiTokenizer.go
+++ m/ansiTokenizer.go
@@ -179,6 +179,9 @@ func _UpdateStyle(logger *log.Logger, style tcell.Style, escapeSequence string)
 		case "1":
 			style = style.Bold(true)

+		case "4":
+			style = style.Underline(true)
+
 		case "7":
 			style = style.Reverse(true)

@@ -226,7 +229,7 @@ func _UpdateStyle(logger *log.Logger, style tcell.Style, escapeSequence string)
 			style = style.Background(tcell.ColorDefault)

 		default:
-			logger.Printf("Unrecognized ANSI SGI code <%s>", number)
+			logger.Printf("Unrecognized ANSI SGR code <%s>", number)
 		}
 	}

Change-Id: I0527cbaff8b53cf25c99876789d69412af5ca118
2019-09-25 13:41:50 +02:00
Johan Walles
719942c137 Mark some already-done TODOs 2019-08-09 16:51:08 +02:00
Johan Walles
1fe3ad185f List changes since last release before tagging 2019-08-08 17:59:04 +02:00
Johan Walles
f5521f53f3 release.sh usability changes 2019-08-05 07:30:24 +02:00
Johan Walles
fa92a44a72 Now using annotated tags for releases 2019-08-05 07:29:06 +02:00
Johan Walles
687c948bd9 Fix speling error 2019-08-04 19:45:20 +02:00
Johan Walles
9bd1693037 Improve release script 2019-08-04 19:44:00 +02:00
Johan Walles
5031d4aa65 Prevent releasing dirty versions 2019-08-04 19:40:58 +02:00
Johan Walles
ea6382a8a7 Add end-user install instructions for the go version 2019-08-04 19:12:43 +02:00
Johan Walles
bc4bae3625 Add a script for making new releases 2019-08-04 19:07:14 +02:00
Johan Walles
eab564a705 Add a screenshot 2019-08-04 07:57:09 +02:00