Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally flag or checkpoint an autobackup file with a suffix #15

Open
bitcity opened this issue May 2, 2014 · 4 comments
Open

Optionally flag or checkpoint an autobackup file with a suffix #15

bitcity opened this issue May 2, 2014 · 4 comments

Comments

@bitcity
Copy link

bitcity commented May 2, 2014

This is a feature request:

Is it possible to add a keyboard shortcut that would flag the autobackups file name with a suffix (a tiny comment) when saving the file. Over the course of a day, I end up with a couple dozen timestamped backups. Sometimes while editing, I immediately want to take a peek at a file I saved 20 minutes or 2 hours ago. If I had saved it with a flag/suffix, I can easily identify that.

The flag could be fixed e.g. _checkpoint or a user prompted string. The resulting autobackups directory would look like this :

mycode_09063.py
mycode_09073.py
mycode_11054.py
mycode_11172_removed_big_feature.py        <- checkpoint / tag
mycode_12031.py
mycode_14300.py
mycode_15712_added_cool_stuff.py           <- checkpoint / tag
mycode_16003.py
@bitcity bitcity changed the title Flag or checkpoint a version while saving Optionally flag or checkpoint an autobackup file with a suffix May 2, 2014
@noameppel
Copy link

An alternative solution is to use inline comments in your code and include a version number which would work similar to your checkpoints.

/*
* myfile.php
* Version 1.5
*/

If you want to create a checkpoint, just bump up the version number.

@bitcity
Copy link
Author

bitcity commented Jun 8, 2014

These are micro changes over the course of a day. Putting version numbers defeats the purpose of automation.

@thecotne
Copy link
Collaborator

thecotne commented May 4, 2015

@bitcity why not use git ?

@bitcity
Copy link
Author

bitcity commented May 4, 2015

@thecotne Think of it as temporary micro-git. I want the commits to be automatic (in the background) and I don't want the history polluting the repository. Autobackups already solves most of this, just need to tag some of the saves every once in a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants