mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #158] feature request: list.RemoveItem #124
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#124
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 @SamWhited on GitHub (Aug 26, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/158
Right now there is no way to remove an item from a list without clearing the list and re-adding everything. It would be nice to have a method to remove an item, probably something like:
@SamWhited commented on GitHub (Aug 26, 2018):
I started to implement this in case the request was accepted, but it occurred to me that there's non real way to track where an item ends up, or a way to sort lists, so it may be that the list view just doesn't work well for anything that's not append-only. Maybe it needs more work, or isn't the appropriate view for this.
@rivo commented on GitHub (Aug 27, 2018):
You're right,
Listcurrently lacks these functions. It should have them and I'll add them in the next few days. I'll update this issue when it's done.@rivo commented on GitHub (Sep 5, 2018):
Apologies for getting back to you so late. This function is now part of
List. Let me know in case there's anything else you need.@SamWhited commented on GitHub (Sep 5, 2018):
Not at all, thanks for being willing to do this and all your hard work on this library!