Skip to content

[+ vim-mode-plus] Changes not undoable #65

@ProbonoBonobo

Description

@ProbonoBonobo

os: Sierra
Atom: 1.12.7
atom-alignment 0.12.1

It's quite possible that this is a bug with vim-mode-plus, and not atom-aligment. vim-mode-plus nonetheless happily permits ctrl+z "undo" operations for other kinds of file modifications, so I thought I'd raise the issue here first. Please of course feel free to close if this smells more like a vim-mode issue.

Output after calling atom-alignment on a larger-than-intended area [Normal mode], and calling ctrl-z:

screen shot 2017-01-18 at 3 58 11 pm

This is unusual, as Normal mode doesn't replace the default Atom keybindings. Cmd+[key] events should work as expected in Normal mode.

Strangely it is semi-possible to undo the changes in Insertion Mode, but only one line at a time. It may or may not be relevant to mention ctrl-z undoes the deselect event as well, which for practical purposes means that the bottom of the selected portion steals focus from the window every time it gets called, i.e. you're just kinda blindly hitting undo over and over and it's not clear what you're undoing. For large areas of text, what this means is that returning to the previous state basically requires forcibly killing the buffer and reopening from the last save.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions