Commit Graph

295 Commits

Author SHA1 Message Date
Christian Muehlhaeuser
3e568c8b14 Add Go 1.17 build tags 2022-01-11 14:06:16 -05:00
Christian Muehlhaeuser
20656fd247 Add separate sets of hard- and soft-enforced linters 2022-01-11 14:06:16 -05:00
Stefan VanBuren
94046d357b Fix README.md typo 2021-12-10 15:22:07 -05:00
Maas Lalani
87d191bbb7 doc: fix typos in README 2021-11-22 11:49:27 -05:00
Christian Rocha
43f7d86f20 Run go mod tidy on example so it'll run without any fuss 2021-10-15 18:44:46 -04:00
Christian Rocha
4f0d448967 Force-wrap strings that run wider than the width 2021-09-03 10:20:33 -04:00
Christian Rocha
7f051d0e92 Add HiddenBorder(), which renders a border comprised of spaces
HiddenBorder() can be useful if you want to remove a border but maintain
layout positioning. This said, you can still apply a background color to
a hidden border.
2021-08-19 15:36:14 -04:00
Christian Rocha
a9b894aa07 Add Style.GetFrameSize(), improve border method naming 2021-08-19 15:26:30 -04:00
Christian Rocha
e1ec4e822e Return a width of 0 for disabled border edges 2021-08-19 15:26:30 -04:00
Christian Rocha
3b4907dffe Simplify how border styles are queried 2021-08-19 15:26:30 -04:00
Christian Rocha
0fe0960eaa Add meta-getters for horizontal and vertical gaps 2021-08-19 15:26:30 -04:00
Christian Rocha
adee683da4 Add methods to query border widths 2021-08-19 15:26:30 -04:00
Christian Muehlhaeuser
4b93de0799 Update linter config 2021-07-12 03:26:40 +02:00
Christian Rocha
4b96343a09 go mod tidy 2021-07-01 09:28:51 -04:00
Christian Rocha
a6ae7e925f Update color profile test per termenv v0.9.0 update 2021-07-01 09:28:51 -04:00
Christian Rocha
093474ebdf Bump termenv to v0.9.0 2021-07-01 09:28:51 -04:00
Christian Rocha
639b1fe3b8 Correct stringer interface example in README 2021-06-16 12:56:04 -04:00
Christian Muehlhaeuser
40b2c31765 Fix README examples for joins 2021-06-16 03:46:47 +02:00
Christian Rocha
c66ed10823
Bump go-runewidth to v0.0.13 2021-06-02 18:30:46 -04:00
Christian Rocha
117c27dc45 Add SetColorProfile for explicitly setting the color profile 2021-05-31 12:47:39 -04:00
Christian Rocha
66eb23093a Add StyleRunes function for styling specific runes in a string 2021-05-25 14:06:45 -04:00
Christian Rocha
d9fae9f03a For now, limit corners on border to a single rune 2021-04-29 09:59:44 -04:00
Christian Rocha
f5b1667a09 Adjust some instructional README copy 2021-04-29 09:59:44 -04:00
Christian Rocha
6064d52be1 Support for multi-rune borders 2021-04-29 09:59:44 -04:00
Christian Rocha
8a64d5c381 Bump go-runewidth to fix some emoji mis-measuring 2021-04-29 09:59:44 -04:00
Christian Rocha
36f851c815 Add some border documentation to the README 2021-04-29 09:59:44 -04:00
Christian Rocha
493d49e38a Add info on measuring width/height to README + add Size helper function 2021-04-29 09:59:44 -04:00
Christian Rocha
1e530f78cb Split utility functions into their own section in the README 2021-04-29 09:59:44 -04:00
Christian Rocha
51800631a2 Quince is not a citrus fruit
https://cathode.church/@meena/106002336386354738
2021-04-21 12:19:28 -04:00
Christian Rocha
e71af71a23 Add getters for all style rules 2021-04-21 10:52:50 -04:00
Christian Rocha
f7065243b8 Query terminal background color on initialization 2021-04-16 21:30:49 -04:00
Christian Rocha
2b27307e58 Short circuit rendering if no style rules are set 2021-04-12 18:34:48 -04:00
Christian Rocha
200b8d839f Revert "Keep margins, padding, widths, and heights positive"
This reverts commit 64fb44b31b.
2021-04-12 16:50:41 -04:00
Christian Rocha
64fb44b31b Keep margins, padding, widths, and heights positive 2021-04-12 16:44:37 -04:00
Christian Rocha
0f0a70603a Improve some doc comments 2021-04-07 12:23:36 -04:00
Christian Rocha
bb42143109 Remove 'Color' suffix from border FG/BG API methods
This makes the border API better match the rest of the API. Also, the
'Color' part is implicit.
2021-04-07 12:23:36 -04:00
Christian Rocha
874349bbec Don't enable ANSI in cmd.exe until absolutely necessary 2021-04-06 11:39:01 -04:00
Christian Rocha
fedd7a49aa Enable ANSI colors in cmd.exe and Windows PowerShell in Windows 10 2021-04-06 11:39:01 -04:00
Kiyon
cb8ec749fe Use the same receiver name 2021-04-06 08:25:18 +02:00
Kiyon
84c08a0604 fix typos in join 2021-04-06 08:25:02 +02:00
Kiyon
3cb36e5bd1 Cleanup: fix a typo and remove a redundant line 2021-04-06 08:24:41 +02:00
Kiyon
09613e226b Fix typos in unset 2021-04-06 08:24:10 +02:00
Kiyon
90ec1a88d1 Fix typos in set 2021-04-06 08:23:35 +02:00
Kiyon
55b4f2a124 Fix a typo in the whitespace render doc comment 2021-04-06 08:22:21 +02:00
Ahmed Khalf
5874013ef4 Fix example code to reflect api changes
Added boolean to Inline() function
2021-04-05 17:43:36 -04:00
Christian Rocha
816cd12f4a Remove irrelevant note about unset and falsey values 2021-04-05 15:20:51 -04:00
Christian Rocha
cdba8ecd00 Fix a typo in the Inline doc comment 2021-04-05 11:22:17 -04:00
Christian Rocha
b3875326a3 Don't check color profile and terminal darkness until absolutely necessary 2021-04-05 10:43:01 -04:00
Christian Rocha
e45d00a9fe
go mod tidy against example per termenv update 2021-04-03 10:36:20 -04:00
Christian Rocha
57eb90e4ca
Fix typo in README 2021-04-03 10:25:48 -04:00