mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #288] [MERGED] Releasing Termdash v0.14. #307
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#307
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/288
Author: @mum4k
Created: 12/30/2020
Status: ✅ Merged
Merged: 12/30/2020
Merged by: @mum4k
Base:
master← Head:release-0-14📝 Commits (10+)
c0f1cfdfirst commit8072326dev29d7e65dev65debbbDesign APIs of the HeatMap widgete5e6097Update comments2ac3bc5devf5dc333devb7a73f0dev283801eRename AxisWith to axisWith and add comments289e1ddMerge pull request #267 from fgksgf/api📊 Changes
44 files changed (+4678 additions, -345 deletions)
View changed files
📝
.gitignore(+3 -0)📝
CHANGELOG.md(+72 -1)📝
README.md(+19 -10)📝
container/container.go(+103 -21)📝
container/container_test.go(+477 -30)📝
container/focus.go(+97 -0)📝
container/focus_test.go(+1110 -47)📝
container/options.go(+229 -0)➕
doc/images/formdemo.gif(+0 -0)📝
private/canvas/canvas.go(+7 -14)📝
private/faketerm/diff.go(+3 -0)📝
private/fakewidget/fakewidget.go(+36 -16)📝
private/fakewidget/fakewidget_test.go(+117 -16)📝
termdash_test.go(+20 -5)📝
widgetapi/widgetapi.go(+25 -8)📝
widgets/barchart/barchart.go(+2 -2)📝
widgets/button/button.go(+170 -41)📝
widgets/button/button_test.go(+1001 -62)📝
widgets/button/options.go(+107 -21)➕
widgets/button/text_options.go(+85 -0)...and 24 more files
📄 Description
Breaking API changes
The
widgetapi.Widget.Keyboardandwidgetapi.Widget.Mousemethods nowaccepts a second argument which provides widgets with additional metadata.
All widgets implemented outside of the
termdashrepository will need to beupdated similarly to the
Barchartexample below. Change the original methodsignatures:
By adding the new
*widgetapi.EventMetaargument as follows:Fixed
termdashno longer crashes whentcellis used and the terminal windowdownsizes while content is being drawn.
Added
Text input form functionality with keyboard navigation
formdemothat demonstrates a text input form with keyboardnavigation.
Infrastructure changes
containernow allows users to configure keyboard keys that move focus tothe next or the previous container.
can be configured to move the focus within each focus group.
containeras focused using the newcontainer.Focusedoption.
Updates to the
buttonwidgetbuttonwidget allows users to specify multiple trigger keys.buttonwidget now supports different keys for the global and focusedscope.
buttonwidget can now be drawn without the shadow or the pressanimation.
buttonwidget can now be drawn without horizontal padding around itstext.
buttonwidget now allows specifying cell options for each cell of thedisplayed text. Separate cell options can be specified for each of button's
main states (up, focused and up, down).
buttonwidget allows specifying separate fill color values for each ofits main states (up, focused and up, down).
buttonwidget now has a methodSetCallbackthat allows updating thecallback function on an existing
buttoninstance.Updates to the
textinputwidgettextinputwidget can now be configured to request keyboard eventsexclusively when focused.
textinputwidget can now be initialized with a default text in theinput box.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.