mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #233] Feature request: add GetText method to TextView #178
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#178
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?
Originally created by @dguendisch on GitHub (Feb 3, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/233
Would be helpful to have a
GetTextmethod on a TextView to get the current text.Would free myself from tracking this "state" as it is already present in the TextView itself.
(Background: I'm mostly using filterable textviews, that is a TextView surrounded by means to filter and highlight the respective text. Currently I need to wrap all "text-changing" calls to the TextView so that I can track the currently displayed text, so that I can later filter/search on it. If TextView had a
GetTextI wouldn't need to care who is setting or appending new text to the TextView, but simply get the current text withGetTextwhenever I need it)@rivo commented on GitHub (Feb 13, 2019):
That makes sense. I added this function to the class with the latest commit.