#25 Allow undo past last save

closed
None
5
2001-09-05
2001-08-18
No

Currently Boa only allows undo up to the last time the
file was saved. I would like at least an option to
have undo continue back longer (preferably
indefinately).

Discussion

  • Riaan Booysen

    Riaan Booysen - 2001-08-18
    • assigned_to: nobody --> riaan
    • status: open --> pending
     
  • Riaan Booysen

    Riaan Booysen - 2001-08-18

    Logged In: YES
    user_id=438

    I think in (0.0.12) it's actually worse ;)
    Undo is only stored up to the last time the file was refreshed (Refreshing applies changes from the source to the
    underlying model, e.g. updating the Explore view or any other views that you have open on the file)
    Saving auto-refreshes.

    My local copy (I'm relatively certain this is not checked in) does what you complain about, it only discards the
    undo buffer after saving (you may undo refreshing).

    I'll put in a settable preference so you can toggle this. I don't think there is a technical problem anymore with just
    not clearing the undo buffer. I decided against this because the buffers would grow indefinitely.
    Some operations replace the entire text control contents and all of this stays in the buffer. Times by the number
    of modules open in the Editor (31 in my current Boa, little more than usual ;).

    I agree, this is choice I should leave open for the user, but do you think this should be on by default?

     
  • Tim Hochberg

    Tim Hochberg - 2001-08-18

    Logged In: YES
    user_id=294744

    I think I would have it set on all the time, for what
    that's worth. It would be nicest, I think, to be able to
    set the number of saves that it would preserve undo
    information over. I think this could be done with
    relatively little pain by inserting some sort of "saved"
    marker into the undo file, but I admit to not really having
    looked at it.

    I think that preserving the save buffer for about three
    saves would satisfy me without letting the buffer get too
    huge, but if you were doing this, you might as well make
    the number of saves settable.

     
  • Tim Hochberg

    Tim Hochberg - 2001-08-18
    • status: pending --> open
     
  • Riaan Booysen

    Riaan Booysen - 2001-08-21

    Logged In: YES
    user_id=438

    Ok, I have it on (and will leave it on until someone complains).
    I'm not really game for counting the saves. The memory usage seems ok, but I will watch it.

     
  • Riaan Booysen

    Riaan Booysen - 2001-08-21
    • status: open --> pending
     
  • Riaan Booysen

    Riaan Booysen - 2001-09-05

    Logged In: YES
    user_id=438

    Changes are now in CVS, check them out!

     
  • Riaan Booysen

    Riaan Booysen - 2001-09-05
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks