views:

3589

answers:

5

Hello,

Does anyone know of any notepad++ plugin that saves a version of whatever I'm working on periodically? Ideally, it would save many versions with the automatic version number and the date in the title, and perhaps store them in a zipped archive to save space.

Does something like this exist already, or shold I attempt to write such a plugin myself?

Thanks,
Cameron

P.S. It should be freeware or (preferably) open-source.

+2  A: 

You might be better off looking into something closer to "real" version control - Mercurial, perhaps. It doesn't require a server, and it's really easy to set up.

To automate it, you could turn on autosave in Notepad++, and set up a windows scheduled task to do an hg commit every few minutes.

Blorgbeard
A: 

It seems that you are a windows user, so you have an option of using shadow copies, but copies are probably not genedated often enough.

IntelliJ Idea and some other Java IDEs have local history feature.

I personally use TortoiseSVN and svn server on Dreamhost. This had additional benefit of having my files stored off-site in case of disaster.

bh213
+11  A: 

Settings > Preferences > Backup-Auto-completion tab > Click Verbose Backup and Tick Enable Auto-completion on each input

This will time stamp a copy of your file every time you save.


Update:

AutoSave allows to automatically save the currently open files based on a timer schedule (default is 1 min) and/or upon the application losing focus. The plugin offers a couple of options to save the current (or all the files), selecting only the named ones, accessible through a menu.

[Via Lifehacker]

srand
A: 

Thanks everyone for the suggestions.

@falco1: I didn't know that there was even that feature built-in! It is not flexible enough for my needs, however, because it sticks all backups of all file in the same directory, and I wanted something with version numbers.

I've decided to write my own plugin in my spare time. The first version will be finished soon and I will find a way to distribute it for anybody who wants it.

Cheers,
Cameron

UPDATE: I started writing a little plug-in, but it wasn't very useful in the end (slow and a little buggy). I am now using version control for any files I'd like to keep different versions of.

Cameron
+1  A: 

fstellari.googlepages.com/npp_plugins