Home Download Buy Blog Forum Support

Plugin for maintaining a local history of files

Plugin for maintaining a local history of files

Postby vishal on Sat May 05, 2012 2:50 pm

vishal
 
Posts: 7
Joined: Sat May 05, 2012 2:38 pm

Re: Plugin for maintaining a local history of files

Postby iamntz on Sat May 05, 2012 4:46 pm

Seems a nice plugin. But version control already do this :D
Btw, if you like to (re)write history, an awesome plugin would be a persistent undo, to allow undo even if you close & open a file ;)
iamntz
 
Posts: 898
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Plugin for maintaining a local history of files

Postby vishal on Sat May 05, 2012 5:28 pm

In my understanding version control only maintains history if you check-in the file. With this plugin every time you modify a file, a copy of the old contents is kept in the local history.

PS: Also, not every file is under version control.
vishal
 
Posts: 7
Joined: Sat May 05, 2012 2:38 pm

Re: Plugin for maintaining a local history of files

Postby ajpalkovic on Sat May 05, 2012 6:19 pm

It's a nice plugin, it's a feature I've wanted for a long time.

You should try to do all of your file io in a thread though. On every save it has to do a blocking read, and two blocking writes, which on large files was causing a noticeable lag for me.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Plugin for maintaining a local history of files

Postby vishal on Sat May 05, 2012 6:36 pm

@ajpalkovic: Thanks for your input, I will have a look at it.
vishal
 
Posts: 7
Joined: Sat May 05, 2012 2:38 pm

Re: Plugin for maintaining a local history of files

Postby vishal on Sun May 06, 2012 8:46 pm

I have moved saving history to a thread, so its async and doesn't block. However the compare / replace are still sync intentionally.
vishal
 
Posts: 7
Joined: Sat May 05, 2012 2:38 pm

Re: Plugin for maintaining a local history of files

Postby senzo on Mon May 07, 2012 11:35 am

Very nice plugin, thanks for it. Just one suggestion. I would prefer to have the ".history" directory outside of Packages as it gets parsed by sublime. *.sublime-commands files from the .history directory show up in the command palette for example. It would be nice to have the path to the history directory as well as the HISTORY_LIMIT configurable in a settings file.
senzo
 
Posts: 106
Joined: Tue May 24, 2011 9:17 am

Re: Plugin for maintaining a local history of files

Postby apessino on Mon May 07, 2012 5:46 pm

Awesome plugin! Thank you so much! :)
apessino
 
Posts: 3
Joined: Fri Feb 24, 2012 6:44 pm

Re: Plugin for maintaining a local history of files

Postby bizoo on Tue May 08, 2012 9:37 am

senzo wrote:Very nice plugin, thanks for it. Just one suggestion. I would prefer to have the ".history" directory outside of Packages as it gets parsed by sublime. *.sublime-commands files from the .history directory show up in the command palette for example. It would be nice to have the path to the history directory as well as the HISTORY_LIMIT configurable in a settings file.

Hit the exact same issue :D
".history" directory must be located outside ST2 packages directory, the best place is probably in the user folder. Don't know how to do it in an OS independent way but I think that Automatic Backups package actually do it.

Good plugin, thanks for sharing.
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Plugin for maintaining a local history of files

Postby vishal on Tue May 08, 2012 9:14 pm

bizoo wrote:
senzo wrote:Very nice plugin, thanks for it. Just one suggestion. I would prefer to have the ".history" directory outside of Packages as it gets parsed by sublime. *.sublime-commands files from the .history directory show up in the command palette for example. It would be nice to have the path to the history directory as well as the HISTORY_LIMIT configurable in a settings file.

Hit the exact same issue :D
".history" directory must be located outside ST2 packages directory, the best place is probably in the user folder. Don't know how to do it in an OS independent way but I think that Automatic Backups package actually do it.

Good plugin, thanks for sharing.


Fixed! Added another feature to browser through incremental diffs. Let me know if any issues found.
vishal
 
Posts: 7
Joined: Sat May 05, 2012 2:38 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 13 guests