Commit Graph

18 Commits

Author SHA1 Message Date
Ayman Bagabas
83fa9be7fe
chore: use x/ansi instead of exp/term 2024-05-15 14:59:47 -04:00
Ayman Bagabas
f6f93348b0
feat: switch to term/ansi for text manipulation (#268)
* feat: switch to term/ansi for text manipulation

Use ANSI aware, wide characters support, uniseg backed term/ansi package
to calculate string widths, truncate, and wrap strings.

Related: https://github.com/muesli/reflow/pull/71
Fixes: https://github.com/charmbracelet/lipgloss/issues/258
Fixes: https://github.com/charmbracelet/lipgloss/issues/220

* Update get.go
2024-03-29 15:05:18 -04:00
Ben Iofel
552cd7298f
Fix JoinHorizontal docs (#247) 2024-03-14 11:00:06 -04:00
Christian Rocha
01248034d0
chore(lint): add various nolint directives (#206)
Generally run-of-the-mill directives to disable magic number and exhaustive switches. Reasonings should be self explanatory while reading the code and comments, where applicable.
2023-07-24 11:50:04 -04:00
Christian Rocha
2cb1d4a5c1 docs(lint): update example code in GoDocs per new style standard
This revision was made automatically via 'golangci-lint run --fix'
2022-08-24 09:22:45 -07:00
Ryan Plant
f05ca49b39 Fix JoinVertical behavior for non-edge non-center alignments 2022-02-08 13:02:30 -08:00
Kiyon
84c08a0604 fix typos in join 2021-04-06 08:25:02 +02:00
Christian Rocha
5b43b10fd6
Add utility for horizontally and vertically placing blocks in whitespace 2021-03-26 13:35:48 -04:00
Christian Rocha
8d5c0823f8
Don't add a new line after the last line when joining horizontally 2021-03-25 19:05:54 -04:00
Christian Rocha
ae5db7b9f8
Fix rendering when horizontally joining a block with a height of 2 2021-03-24 21:31:57 -04:00
Christian Rocha
56a9250443
Fix panics when attemping to join one single string 2021-03-24 21:20:38 -04:00
Christian Rocha
7481f05486
Corrections to Join GoDocs 2021-03-18 16:59:48 -04:00
Christian Rocha
1498fd3b6b Simplify joining API 2021-03-18 14:14:35 -04:00
Christian Rocha
da5b337b1f
Drop an unused function 2021-03-18 12:40:33 -04:00
Christian Rocha
30078aa5a9
Rework horizontal and vertical joins 2021-03-17 22:13:43 -04:00
Christian Rocha
8348e40ab0
What the heck, add aligned vertical joins too 2021-03-17 20:28:59 -04:00
Christian Rocha
6aed53fa1c
Join an infinite number of text blocks 2021-03-17 16:25:37 -04:00
Christian Rocha
75544a8aac
Add utility for horizontally joining text blocks 2021-03-17 16:24:25 -04:00