   
|
edbb81c136
|
feat(viewport)!: gutter column, soft wrap, search highlight (#697)
* horizontal scroll
* rebase branch
* add tests
* add tests with 2 cells symbols
* trimLeft, move to charmbracelete/x/ansi lib
* up ansi package
* Update viewport/viewport.go
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: do not navigate out to the right
* fix: cache line width on setcontent
* fix tests
* fix viewport tests
* add test for preventing right overscroll
* chore(viewport): increase horizontal step to 6
* chore(viewport): make horizontal scroll API better match vertical scroll API
* fix: nolint
* fix: use ansi.Cut
* perf: do not cut anything if not needed
* feat: expose HorizontalScrollPercent
* fix: do not scroll if width is 0
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: visible lines take frame into account
* feat(viewport): column sign
* feat: gutter, soft wrap
* wip: search
* wip: search
* wip: search
* fix: perf
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: rename
* wip
* wip
* refactor: viewport highlight ranges
* fix: ligloss update
* doc: godoc
* feat: fill height optional
* fix: handle no content
* fix: empty lines
* wip
* wip
* Revert "wip"
This reverts commit 933f181e88405c21d65a08b816a88030806ca03e.
* Reapply "wip"
This reverts commit 0e3e31b70f53d93250a1474547cc5157d50e9237.
* fix: wide
* fix: wide, find
* still not quite there
* fix: grapheme width
* fix: cleanups
* fix: refactors, improves highlight visibility
* docs: godoc
* chore: lipgloss update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* chore: x/ansi update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: typos, godocs
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: rename
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: typo
* fix: scroll when soft-wrapping
* fix: soft wrap adjustments
* fix: update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: deps
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Roman Suvorov <suvorov83@gmail.com>
Co-authored-by: Roman Suvorov <tty2.rs@gmail.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
|
2025-02-04 13:15:40 -03:00 |
|