mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #33] [MERGED] [2/5] Defining options for text written to the widget. #168
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#168
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/33
Author: @mum4k
Created: 5/14/2018
Status: ✅ Merged
Merged: 5/27/2018
Merged by: @mum4k
Base:
text-widget/1/widget-options← Head:text-widget/2/write-options📝 Commits (10+)
e786777Defining options for text written to the widget.7d14d22Adding line scanner.4c54b8aAdding an object that tracks the scrolling state.d6c153fImplementing the text widget.bb73338Merge branch 'text-widget/1/widget-options' into text-widget/2/write-options6b39babMerge branch 'text-widget/2/write-options' into text-widget/3/line-scannera13c1f6Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker8df67c6Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widgetd0ca7ecMerge branch 'text-widget/1/widget-options' into text-widget/2/write-optionsa3dfd1aAdding licence.📊 Changes
9 files changed (+2365 additions, -0 deletions)
View changed files
➕
widgets/text/demo/textdemo.go(+161 -0)➕
widgets/text/line_scanner.go(+142 -0)➕
widgets/text/line_scanner_test.go(+234 -0)➕
widgets/text/scroll.go(+165 -0)➕
widgets/text/scroll_test.go(+332 -0)➕
widgets/text/text.go(+282 -0)➕
widgets/text/text_test.go(+718 -0)➕
widgets/text/write_options.go(+117 -0)➕
widgets/text/write_options_test.go(+214 -0)📄 Description
Each set of options applies to a range of characters equal to the length
of the text added.
E.g. on write calls like:
Write("text", opts1)
Write("long text", opts2)
The two passed options will be stored as:
opts1 for byte range low:0, high:4
opts2 for byte range low:4, high:13
The text itself will be stored in a bytes.Buffer.
Works on #4
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.