mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #1062] pasting to the TextArea #770
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#770
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 @GrailFinder on GitHub (Dec 16, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1062
Hello.
Pasting text to the
TextAreahas some unpleasant moments:video example (linux; xorg; neovim):
https://github.com/user-attachments/assets/7e498f8b-a739-422c-b3f0-553d8ef625bb
Is there a better way to paste?
@rivo commented on GitHub (Dec 16, 2024):
This is explicitly addressed in
TextArea's documentation:https://pkg.go.dev/github.com/rivo/tview#hdr-Navigation_and_Editing-TextArea
@ivoGanev commented on GitHub (Feb 16, 2025):
Application.EnablePastedoesn’t seem to work on a Windows terminal, so I was wondering if there can be anything else done about totally disabling paste in a TextArea. I was able to redirect the key bindings to use other keys for pasting, but I am worried about what kind of experience it is going to be for a user who is used to using the 'Ctrl+V' shortcut. I imagine they will assume the app has a terrible copy/paste experience and quit using it.@rivo commented on GitHub (Feb 16, 2025):
I don't think there is a way to change the settings of a terminal application from within. At least I'm not aware of one.