From: Benny M. <ben...@gm...> - 2010-08-16 17:25:16
|
2010/8/16 Doug Blank <dou...@gm...> > > > > > I've added UndoableBuffer as a drop-in replacement for gtk.TextBuffer > > in the note editor. Control+z is bound to undo, and Control+shift+z is > > bound to redo. That could be changed to the same keys we use for db > > undo/redo; need to check on windows/mac to see how that works. > > Changing of style is not an undoable action, only deletes. > > Deletes and inserts are undoable, and a series of inserts/deletes are > merged together into a single undoable action. svn up. > > Alas, if I understood how copy and paste works regularly in > gtk.TreeBuffer, I could have probably figured out how to make this > work with StyledText. I hope someone can look at that someday. > > Doug, I can add icons for this, but some bugs are present. I can undo on an existing note and have all text disappear, just open a note and do undo, and text goes away. This is a bug. Text comes back without markup, but that is the limitation you talked about. I also had once a text appear after undo in a color on a note with some colored text. Cannot reproduce however. Benny |