Skip to content

don't submit when pasting text with a newline into e.g. commit message #4402

@KiaraGrouwstra

Description

@KiaraGrouwstra

Is your feature request related to a problem? Please describe.
when in the commit title field i paste text that happened to accidentally include a newline, lazygit currently confirms the commit title, performing the actual commit.

Describe the solution you'd like

either:

  • ignore newlines
  • replace them with spaces
  • spill over content after newlines into the commit description

Describe alternatives you've considered
check extra well to ensure the commit message i'm pasting in doesn't like contain a trailing newline

Additional context
i like to still check my message to maybe edit it further, before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions