Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document absence of "undo" functionality #3

Open
benghancock opened this issue Apr 18, 2023 · 2 comments
Open

Document absence of "undo" functionality #3

benghancock opened this issue Apr 18, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@benghancock
Copy link

I'm new to mined and it seems to be an exceptional editor. There's one aspect that I've found quite surprising: the apparent absence of "undo" functionality. Given that a lot of thought has gone into the program's design, I imagine this omission is intentional. Is there a workflow, philosophy, or other reason behind the absence of "undo"? May I recommend documenting this, so that the uninitiated have some introduction to this way of doing things? To a newcomer like myself, it feels like living on the edge 😄

Conversely, have I just missed something? I don't think so. I tried starting mined via Emacs-compatibility mode, typed some text and then hit the usual "Undo" key chord, and was greeted with the message "Undo not implemented".

Thanks!

@mined
Copy link
Owner

mined commented Apr 18, 2023

Thanks for raising this issue. No, there is no intentional "non-undo" philosophy. I have in fact thought about this feature and it's on my (very long) "todo" list. The problem is simply it's likely to be pretty high effort. And it's a design issue in the first place; should undo work per character/word/line? I think emacs has a medium approach (per word mostly). Would undo without redo be a good initial solution? Should implementation use "undo records" (emacs) or a replay approach?

@mined mined added enhancement New feature or request help wanted Extra attention is needed labels Apr 18, 2023
@benghancock
Copy link
Author

Thanks for the quick response! That's good to know.

I'm not sure if this is helpful (and I don't have expertise in this area), but I wonder if it's useful to explore the approach to undoing employed by Rob Pike's sam text editor. I'm reminded of it mainly because sam, like mined, also moved beyond the traditional line-oriented approach of other editors with structural regular expressions. Granted, the architectures are likely quite different, but I thought I'd at least mention it.

Reference: http://doc.cat-v.org/plan_9/4th_edition/papers/sam/ (see "Doing and Undoing").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants