Skip to content

Allow to treat newline (\n) as safe terminal control code when pasting with confirm action #7374

@Jackenmen

Description

@Jackenmen

Is your feature request related to a problem? Please describe.
Right now, kitty prompts the user when the text they're pasting contains terminal control codes and that includes the newline character (\n). I do appreciate that the feature exists and would want to use it but the current behavior makes it impractical and will end up with me just always clicking the "Paste anyway" option due to popup fatigue.

Describe the solution you'd like
I would want to be able to compromise slightly and have kitty treat the newline character (\n) as a safe character, regardless of whether the bracketed paste mode is used by the program. An option for such behavior would be the solution I would like.

Describe alternatives you've considered
I could compromise more and just disable the prompt about terminal control codes entirely - this is already possible by changing the paste actions to not include the confirm action.

Additional context
Kitty's behavior was reported as a bug in #6872 and was considered intended behavior.
This is why I am instead making a feature request to allow me to configure kitty such that I can keep the prompt but only if it contains a terminal code that isn't the newline character (\n).

Also interestingly, the replace-dangerous-control-codes action does not replace the newline character (\n), while the confirm action does.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions