mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #160] [MERGED] The text widget can now wrap its content at word boundaries. #228
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/160
Author: @mum4k
Created: 3/2/2019
Status: ✅ Merged
Merged: 3/2/2019
Merged by: @mum4k
Base:
devel← Head:word-wrap📝 Commits (6)
54c5dffFactoring the line wrapping logic out of the text widget.61aca3fRemoving Text's dependency on wrap.Needed.87cab66Simplifying the text widget.f102632Implementing AtWords wrapping mode.c43e453Text validation moved to the wrap package.2742487The text widget now wraps at words.📊 Changes
14 files changed (+1334 additions, -549 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
doc/images/textdemo.gif(+0 -0)📝
internal/canvas/buffer/buffer.go(+14 -0)📝
internal/canvas/buffer/buffer_test.go(+53 -6)➕
internal/wrap/wrap.go(+409 -0)➕
internal/wrap/wrap_test.go(+743 -0)➖
widgets/text/line_scanner.go(+0 -143)➖
widgets/text/line_scanner_test.go(+0 -287)📝
widgets/text/line_trim.go(+2 -1)📝
widgets/text/line_trim_test.go(+13 -12)📝
widgets/text/options.go(+12 -2)📝
widgets/text/text.go(+40 -95)📝
widgets/text/text_test.go(+45 -1)📝
widgets/text/textdemo/textdemo.go(+2 -2)📄 Description
Fixes #30
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.