Commit Graph

18 Commits

Author SHA1 Message Date
Qi Xiao
3037f6c8bf pkg/util: Move the wcwidth utilities to a new package, and add more tests.
This addresses #944.
2020-04-06 12:00:01 +01:00
Qi Xiao
2d802874ce pkg/ui: Add bare-bone tests for text_segment.go. 2020-04-04 01:32:13 +01:00
Qi Xiao
8374937a5f pkg/ui: Add more tests.
Also fix some small issues discovered by tests.

This addresses #944.
2020-04-01 22:39:46 +01:00
Qi Xiao
01b761df04 pkg/ui: Make all Styling types comparable. 2020-04-01 22:26:02 +01:00
Qi Xiao
ccbad60ab9 pkg/ui: Test Style.SGR.
This addresses #944.
2020-04-01 00:46:29 +01:00
Qi Xiao
5588cda927 pkg/ui: Style.ImportFromOptions -> .MergeFromOptions. 2020-04-01 00:39:02 +01:00
Qi Xiao
7a324880b0 pkg/ui: Test color.go.
This addresses #944.
2020-04-01 00:37:09 +01:00
Qi Xiao
c0146f1c42 pkg/ui: Export Fg and Bg. 2020-04-01 00:36:46 +01:00
Qi Xiao
3cd90d78cd [cleanup] pkg: Format files with "gofmt -s". 2020-04-01 00:11:16 +01:00
Qi Xiao
a70c2a30a4 pkg/ui: Declare every Styling global variable as Styling type.
This will make them appear under the Styling header in godoc.
2020-04-01 00:09:00 +01:00
Qi Xiao
9b83eaf61b pkg/ui: Improve the doc for styling variables. 2020-04-01 00:07:00 +01:00
Qi Xiao
c36be6e311 pkg/ui: Rearrange files. 2020-03-31 23:11:59 +01:00
Qi Xiao
794c19e19f pkg/ui: Export ParseKey and move ToKey to pkg/edit. 2020-03-31 23:05:41 +01:00
Qi Xiao
5442574394 pkg/ui: Test more of key.go.
Also fix the quoting style and an out-of-range bug in key.go.

This addresses #944.
2020-03-31 22:58:17 +01:00
Qi Xiao
f2ef28f51c pkg/ui: More tests for key.go.
This addresses #944.
2020-03-31 05:55:49 +01:00
Qi Xiao
c68de40a91 pkg/ui: Do not use util.Throw. 2020-01-12 17:45:42 -05:00
Qi Xiao
e9a2a9392d pkg/ui: Parse more SGR sequences in StyleFromSGR. 2019-12-31 11:51:39 +00:00
Qi Xiao
e45fdf7228 Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00