cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.14k stars 80 forks source link

Phrase-level undo command #317

Open pokey opened 2 years ago

pokey commented 2 years ago

The problem

As we become more adventurous with long command phrases, it becomes more painful to undo a command phrase that has gone wrong. We'd like to be able to undo everything done by a single phrase, even if it corresponds to many edits, potentially across multiple editors

The solution

We should probably implement this one as a separate extension. Seems more generic than just for cursorless

M1: The basics

M2: Other types of actions

M3 Unopened documents

Handle changes to documents that are not open in an editor

M4 Undo tree

tankorsmash commented 9 months ago

Coming from vim, I'm looking forward to the undo tree! I think the only pain point with Cursorless so far is the undo'ing an accidental command! It's surprisingly easy to have many words accidentally get inserted, and I'm used to being able to just press u to undo everything.

Thank you for Cursorless!

pokey commented 9 months ago

Coming from vim, I'm looking forward to the undo tree! I think the only pain point with Cursorless so far is the undo'ing an accidental command! It's surprisingly easy to have many words accidentally get inserted, and I'm used to being able to just press u to undo everything.

Yeah undo tree is def the biggest thing I miss from my vim days. You get drunk on the confidence it gives you

Thank you for Cursorless!

You're welcome! Glad you're finding it helpful ☺️