Skip to content

Idempotence of null operations #92

@countvajhula

Description

@countvajhula

Certain commands insert extra characters that are useful and commonly desired when making changes. But if the command was executed accidentally or if the user changed their mind, we want to ensure that canceling the command restores the buffer to its original state. This ensures that null commands are idempotent, providing a more cohesive experience. The following commands should be reviewed in this connection:

(I)nsert-before
(A)ppend-after
(w)rap
(W)rap

and possibly even:
(o)pen-below
(O)pen-above
(c)hange
(C)hange-remaining
(s)ubstitute (i.e. replace)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions