Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Undo should not undo each suggested word and typed character #8

@alexchee

Description

@alexchee

Atom's change to the way it handles undo history, broke this line: https://github.com/alexchee/atom-inline-autocomplete/blob/master/lib/inline-autocomplete.coffee#L91
selection.insertText(match.word, { select: false, undo: 'skip' })

Need to figure out a way to get the undo history to at least only do it for the previously typed word and not leave the extra suggested text behind.

Maybe there's a hook to undo or another method to replace text that will make undo behave this way.

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