I'm not a programmer, but I would definitely like a simple way to control versioning. I use text mate for HTML, CSS, and basic PHP. I personally hate Apple's versions, and they have caused problems, so I disabled them in apps that had them on by default.
Being not very technical when it comes to certain things, I have never used Git, Mercurial, and don't know where to start.
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy. We would need the ability to control the highlight color (background color and text color) since we all use different syntax highlighting themes.
thanks
On 18 Oct 2014, at 12:09, BigZite brieftrager@bigzite.com wrote:
I'm not a programmer, but I would definitely like a simple way to control versioning. I use text mate for HTML, CSS, and basic PHP. I personally hate Apple's versions, and they have caused problems, so I disabled them in apps that had them on by default.
Being not very technical when it comes to certain things, I have never used Git, Mercurial, and don't know where to start.
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy. We would need the ability to control the highlight color (background color and text color) since we all use different syntax highlighting themes.
thanks
I totally agree with this. Losing your changes in case of crash/freeze/human error or not knowing what your changes are is so last decennium :-) Of course the latter can be covered by the use of git and the like, but the former is still an issue.
If adopting Apple’s versioning system is not a good idea, an alternative would be to have a very user friendly way to set up a local git repo (akin to Xcode’s ‘Create git repository’ tick box when creating a project). The difference highlighting is already slowly making its way into Textmate with the new gutter icons. This doesn’t cover the loss of changes in case of a crash/freeze though…
Best regards, Bas
On Sat, 18 Oct 2014 14:56:28 +0200, Bas Van Klinkenberg wrote:
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy.
First of all I agree with the others that learning git will be the best option and is not so frightening (if you stick to a basic workflow). You actually don't need a github or other remote account—you can just use it to keep track of local changes if you want, although you lose the benefit of having a remote backup and easy collaboration.
That being said, I also use the attached two TM commands for simple backup/versioning. The command "Save Document and Backup" runs every time you save your document, creating a new time-stamped copy at every save point. If you want to view an old copy the command "View Document Backups" brings up a HTML page listing all backups of that filename with links to open the file in TM. But, WARNING, **it's stupid**: it displays all files with the same filename. So if you have been editing lots of different files named index.html, and run the "View" command you'll see all backup files with this name in the list indiscriminately. But it works if you're in a pinch and need to recover an earlier version. The date-time included with the filename helps find the correct version.
You define where these backups go to by setting a variable in TextMate > Preferences > Variables (or inside a .tm_properties file), e.g.:
TM_BACKUP_DIR = '/Users/MYUSERNAME/.backup/textmate'
And make sure the directory exists.
Because many files will be created, you'll want to prune those older than a few months by adding this to your crontab (from the Terminal run `EDITOR=mate; crontab -e` and paste in the following two lines):
# Prune old textmate backup files, each day at 11am. 0 11 * * * find /Users/MYUSERNAME/.backup/textmate/ -mtime +180 -delete >/dev/null
Also note if you want to compare differences between two copies of a file there is a very useful command in the Diff bundle called "Document / Selection With Clipboard" that shows a useful comparison of changes.
Quinn
Even if you aren't a programmer, you are writing HTML/CSS, so it will benefit from version control. I'd really recommend you spent a little time learning git, it takes a little while but it will pay you back hundreds of times.
This is a good starting point..
http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-p...
If you want an off-site repository and don't want to set your own up, github.com allows free public repo's or private repos for a small monthly fee.
On 18 October 2014 11:09, BigZite brieftrager@bigzite.com wrote:
I'm not a programmer, but I would definitely like a simple way to control versioning. I use text mate for HTML, CSS, and basic PHP. I personally hate Apple's versions, and they have caused problems, so I disabled them in apps that had them on by default.
Being not very technical when it comes to certain things, I have never used Git, Mercurial, and don't know where to start.
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy. We would need the ability to control the highlight color (background color and text color) since we all use different syntax highlighting themes.
thanks
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Oct 18, 2014, at 11:39 AM, Carpii UK carpii.uk@gmail.com wrote:
Even if you aren't a programmer, you are writing HTML/CSS, so it will benefit from version control. I'd really recommend you spent a little time learning git, it takes a little while but it will pay you back hundreds of times.
This is a good starting point..
http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-p...
If you want an off-site repository and don't want to set your own up, github.com allows free public repo's or private repos for a small monthly fee.
BitBucket (https://bitbucket.org) has unlimited private repos, no fee. Just the number of users per repo is limited.
Gerd
On 18 October 2014 11:09, BigZite brieftrager@bigzite.com wrote: I'm not a programmer, but I would definitely like a simple way to control versioning. I use text mate for HTML, CSS, and basic PHP. I personally hate Apple's versions, and they have caused problems, so I disabled them in apps that had them on by default.
Being not very technical when it comes to certain things, I have never used Git, Mercurial, and don't know where to start.
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy. We would need the ability to control the highlight color (background color and text color) since we all use different syntax highlighting themes.
thanks
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate