mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #189] [MERGED] Implementing text input field widget. #244
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#244
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/189
Author: @mum4k
Created: 4/26/2019
Status: ✅ Merged
Merged: 4/27/2019
Merged by: @mum4k
Base:
devel← Head:text-input📝 Commits (10+)
bf72b5dSkeleton of the TextInput widget.b031be6Adding a type that holds data in the text input field.2cfaf25Initial functionality and tests for the field editor.2e7d295Planning out the editing algorithm.beb3777Intermediate commit.b33c3d2Logic that returns number of cells before and after.72989e7Editor: support for insertion and scrolling.c890f0bEditor can delete runes before the cursor.afe7055Merge branch 'devel' into text-inputda70101Merge branch 'devel' into text-input📊 Changes
20 files changed (+5460 additions, -294 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)📝
README.md(+13 -1)➖
doc/images/termdashdemo_0_7_0.gif(+0 -0)➕
doc/images/termdashdemo_0_9_0.gif(+0 -0)➕
doc/images/textinputdemo.gif(+0 -0)📝
internal/area/area.go(+23 -0)📝
internal/area/area_test.go(+85 -0)📝
internal/canvas/buffer/buffer.go(+5 -0)📝
internal/canvas/buffer/buffer_test.go(+12 -0)📝
internal/runewidth/runewidth_test.go(+2 -2)📝
keyboard/keyboard.go(+75 -2)📝
termdashdemo/termdashdemo.go(+139 -60)📝
terminal/termbox/event.go(+71 -131)📝
terminal/termbox/event_test.go(+104 -98)➕
widgets/textinput/editor.go(+417 -0)➕
widgets/textinput/editor_test.go(+1813 -0)➕
widgets/textinput/options.go(+265 -0)➕
widgets/textinput/textinput.go(+377 -0)➕
widgets/textinput/textinput_test.go(+1832 -0)➕
widgets/textinput/textinputdemo/textinputdemo.go(+221 -0)📄 Description
Fixes #65.
Also:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.