Re: saving key stroke history
Thomas Orgis <[email protected]> Fri, 25 Mar 2011 11:16:12 +0100
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============4493890138892323141== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/jzTIKuy9v=JfStT4IDZAEiW"; protocol="application/pgp-signature" --Sig_/jzTIKuy9v=JfStT4IDZAEiW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Thu, 24 Mar 2011 08:27:03 -0700 schrieb [email protected]:=20 > Actually, I am using subversion, but that is not what I am referring=20 > to. I'd like to > be able to store editing history so that I can close a file and re-open=20 > it with all Ok, so you really meant what you wrote;-) The solution to this problem would still resemble the algorithm of a versio= n control system ... only with much more frequent snapshots. I gather that = one could make nedit use a configurable buffer for the undo history (hm, ho= w many does it store, actually?), amounting to a total protocol of editing = actions... and then dump that to disk, and also load it from there. One mig= ht even devise a format that's a bit more platform / build independent than= raw memory dump.=20 But you could hack NEdit's code with raw dump/restore of the undo data as a= first step. The other option would be to train yourself to do more small a= nd frequent commits in SVN to lessen the need for the ultra-history. Or use= a virtual file system that commits to svn on each write. I don't know if someone did this to NEdit already, and I doubt it's a stand= ard feature. But it for sure can be done, technically. Just locate the code= dealing with the undo history and add hooks to write the state to disk, al= so read it from the same. A quick look over the net reveals not much in pri= or art... just stumbled over http://www.emeditor.com, which can save it's w= hole state as a workspace, but meh, that's not even Open Source, so it does= n't count;-) Alrighty then, Thomas. --Sig_/jzTIKuy9v=JfStT4IDZAEiW Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk2Ma2wACgkQm0xSvNRG1SQhbwCePJm3ScAX8ZuRjSrcM8E6N+L+ PFcAoJte1B4lJMMZ1AmzfjiBECtQa4Mf =sn82 -----END PGP SIGNATURE----- --Sig_/jzTIKuy9v=JfStT4IDZAEiW-- --===============4493890138892323141== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss --===============4493890138892323141==--