Undo / redo functionality #6
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: writeas/writeas-gtk#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It'd be nice to be able to Ctrl+Z / Ctrl+Shift+Z to Undo/Redo changes, respectively.
Yes, it most certainly would. Wouldn't be too hard to implement ourselves, or we could switch to adding a new dependency on gtksourceview so we can use it's implementation. But unfortunately it's not built-into core GTK.
I think I'll add that extra dependency, it does add a lot of nicities to the Gtk.TextView.
I still don't think implementing undo/redo will be to hard to do myself, but I think you'll benefit from Gtk.SourceView. It's not all about adding syntax highlighting.
Switched to using Gtk.SourceView over the Gtk.TextView superclass, and undo/redo is working very nicely.
So now any of the following won't be too hard: