Textarea #59
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/cview#59
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
A longstanding issue with tview has been its lack of a "textarea-style" multiline form input. While the difficulties implementing it seem valid enough, it's been two years and there's no good solution that does not require a heavy lift like femto or gemacs or languishing PRs, and even hacking around it by shelling out to vim is a non-starter because of deadlock issues, which, incidentally, plagues cview as well
It would be wonderful to have literally any method of allowing the user to specify multiple lines in some kind of structured way, but right now it just can't be done, save for perhaps prompting them with a modal and an inputfield to load a text file, but forcing them to have two windows open just to get work done feels like a bridge too far.
rivo has a valid point about there being inherent bugs in how the text is iterated as runes rather than graphemes in this PR. If that were fixed I would be glad to merge the PR. It might be easier to add multi-line support directly to InputField. I will spend some time looking to each.
LOL, I was just posting here to say that I took a crack at the conversion, and even hacking to see if it would work involved nastiness like:
Which would make iterating on improvements afterwards relatively nightmarish. Your suspicion of extending InputField is starting to sound correct.