Skip to content

Protect user from accidentally pasting too large input #1198

@christianparpart

Description

@christianparpart

@Marenz just found out, that when pasting too big text data to Contour, it will freeze (or at least looks like this).

After a short investigation, we found out that the data to be pasted was still being pasted, it just takes very long. Most likely because the way we do it is certainly not most efficient.

Action items

  • Ask the user something like: "Are you sure you want to paste {X amount} characters?" in a Yes/No dialog and only continue pasting on Yes, abort otherwise.
  • If the content is really to be pasted, make sure it's more efficiently done and NOT blocking the GUI thread

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendContour Terminal Emulator (GUI frontend)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions