Skip to content

Quit from arrange should not be an error but ask if something is discarded #9243

@Vampire

Description

@Vampire

Description

Is my sane decision to quit arrange, discarding changes really an error condition?
Also, at that time it is too late for anything anyway.

Steps to Reproduce the Problem

  1. jj arrange
  2. Eventually make some changes
  3. Press q

Expected Behavior

If no changes were done, successful quitting without error message or error exit code.
If changes were done it should ask for confirmation to discard the change and quit,
for example if q was hit accidentally.
If the confirmation is accepted, still no error message or error exit code should result.

Actual Behavior

If you intentionally hit q, you get an error message.
If you unintenionally hit q, you loose the changes you did so far and get an error message but the changes are lost anyway already.

Specifications

  • Platform: all
  • Version: 0.40.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    polish🪒🐃Make existing features more convenient and more consistent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions