chrrs / scribble

Fabric mod to expertly edit your books with rich formatting options and page utilities
https://modrinth.com/mod/scribble
MIT License
4 stars 3 forks source link

Feature idea: Ctrl Z #9

Closed J4PC closed 1 month ago

J4PC commented 3 months ago

A Standard feature in nearly every text editing program is undo and redo or rather; Ctrl z, Ctrl y.

This would be great if you had anciently deleted a paragraph or made any kind of mistake. Where before any mistake was permeant, you can know just undo it.

I know you mentioned that you don't want too many hidden shortcuts, but I think this could be a reasonable one.

chrrs commented 3 months ago

Ctrl-Z support would be great! With how the minecraft code around books works though, it might not be that easy to implement, so I think it'll be a bit before I'll get to it.

wiskiw commented 2 months ago

Hey @chrrs Is there any progress going on right now on this feature? I can try to implement it.

chrrs commented 2 months ago

I haven't yet worked on this. It would require keeping track of some kind of undo stack that updates with every action taken. Feel free to try to implement it!