Is there an option that I've missed - to save a file as a copy and then continue working in the original?
current 'save as' behaviour is to start editing the newly named copy.
I often do save as to create a restore point for a file and keep getting caught out by the fact that I'm editing the new copy not the old file...
any suggestions for how I might approach this better, or is there an option for "save a copy of this with a new name and work in the original"
;o)
TIA
On 11 Mar 2008, at 14:35, Mark Eli Kalderon wrote:
any suggestions for how I might approach this better, or is there an option for "save a copy of this with a new name and work in the original"
Well, you could use version control. That way, you commit and continue working...
My workflow is that
bound to shift+apple+s
Is a shell script:
res=$(CocoaDialog filesave --title "Save As Copy" --with-file "$TM_FILENAME") cat > "$res"
input: entire doc output: discard
Cheers,
--Hans
version control is referring to a type of software that manages the iterations of your code for you (thats a pretty base description). you can read about one form of version control here: http://svnbook.red-bean.com/
On Tue, Mar 11, 2008 at 9:47 AM, Hans-Joerg Bibiko bibiko@eva.mpg.de wrote:
On 11 Mar 2008, at 14:35, Mark Eli Kalderon wrote:
any suggestions for how I might approach this better, or is there an option for "save a copy of this with a new name and work in the original"
Well, you could use version control. That way, you commit and continue working...
My workflow is that
bound to shift+apple+s
Is a shell script:
res=$(CocoaDialog filesave --title "Save As Copy" --with-file "$TM_FILENAME") cat > "$res"
input: entire doc output: discard
Cheers,
--Hans
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 11 Mar 2008, at 13:55, Steven Ross wrote:
version control is referring to a type of software that manages the iterations of your code for you (thats a pretty base description). you can read about one form of version control here: http://svnbook.red-bean.com/
I've tried Subversion and Mercurial, but as a solo developer used to working with folders of files (websites) it's very hard to see any speeding up of my process.
often I want a copy of a CSS file so the changes I'm making can be undone en-masse.
I'll also make a myriad of changes to several files to get a desired result and having to comment each change or commit is counter productive.
If I could get into the habit, it might help, but it doesn't seem to bring any benefits to me at this point...
any other web developers/builders using Version Control Systems want to share workflow? or point to a step by step?
;o)
Tony, I use cssEdit to edit css files, and it lets you create milestones to go back if you change your minds. About the TextMate, I, sadly, just make a copy, close the newly renamed and open the old one.
I don't know how to use subversion, but it seems bloated to a little freelance developer like me.
Il giorno 11/mar/08, alle ore 15:04, Tony Crockford ha scritto:
On 11 Mar 2008, at 13:55, Steven Ross wrote:
version control is referring to a type of software that manages the iterations of your code for you (thats a pretty base description). you can read about one form of version control here: http://svnbook.red-bean.com/
I've tried Subversion and Mercurial, but as a solo developer used to working with folders of files (websites) it's very hard to see any speeding up of my process.
often I want a copy of a CSS file so the changes I'm making can be undone en-masse.
I'll also make a myriad of changes to several files to get a desired result and having to comment each change or commit is counter productive.
If I could get into the habit, it might help, but it doesn't seem to bring any benefits to me at this point...
any other web developers/builders using Version Control Systems want to share workflow? or point to a step by step?
;o)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
As a developer I have used subversion a lot... where it benefits the most is in a multi user environment where you have the potential for a number of people editing the same files. However I have also used it when I am the only one working on a project. Workflow inside TM is easy ctrl-shift-a (select the folder or file you are working on) and commit it.
pretty easy.
On Tue, Mar 11, 2008 at 10:16 AM, (((Bonsai Studio))) - Giuseppe < giuseppe@bonsai-studio.net> wrote:
Tony, I use cssEdit to edit css files, and it lets you create milestones to go back if you change your minds. About the TextMate, I, sadly, just make a copy, close the newly renamed and open the old one.
I don't know how to use subversion, but it seems bloated to a little freelance developer like me.
Il giorno 11/mar/08, alle ore 15:04, Tony Crockford ha scritto:
On 11 Mar 2008, at 13:55, Steven Ross wrote:
version control is referring to a type of software that manages the iterations of your code for you (thats a pretty base description). you can read about one form of version control here:
I've tried Subversion and Mercurial, but as a solo developer used to working with folders of files (websites) it's very hard to see any speeding up of my process.
often I want a copy of a CSS file so the changes I'm making can be undone en-masse.
I'll also make a myriad of changes to several files to get a desired result and having to comment each change or commit is counter productive.
If I could get into the habit, it might help, but it doesn't seem to bring any benefits to me at this point...
any other web developers/builders using Version Control Systems want to share workflow? or point to a step by step?
;o)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I don't know how to use subversion, but it seems bloated to a little freelance developer like me.
Once you get used to it, you'll wonder how you ever survived without it. Mercurial makes localhost version control sinfully easy (moreso than SVN), though Subversion does have somewhat more advanced bundle support.
version control is referring to a type of software that manages the iterations of your code for you (thats a pretty base description). you can read about one form of version control here: http://svnbook.red-bean.com/
I've tried Subversion and Mercurial, but as a solo developer used to working with folders of files (websites) it's very hard to see any speeding up of my process.
Shuffling files and folders around ad nauseam is not exactly speedy, either. And woe unto you if you want to see how those folders looked two weeks ago (including that folder you deleted and those files you renamed...).
I am a web developer, and I will never go back to ad hoc, unversioned code. Your sanity will thank you, too.
often I want a copy of a CSS file so the changes I'm making can be undone en-masse.
I'll also make a myriad of changes to several files to get a desired result and having to comment each change or commit is counter productive.
Mercurial makes branching and merging almost painless (for trivial changes, that is). Also, collecting a series of changes to multiple files in a single changeset (that you can switch to instantly at-will) is far more efficient, from my perspective, than even a _highly- organized_ heap (heh) of files and folders with byzantine naming schemes.
If I could get into the habit, it might help, but it doesn't seem to bring any benefits to me at this point...
any other web developers/builders using Version Control Systems want to share workflow? or point to a step by step?
"Distributed Version Control Illustrated"[1] is a good place to start, I've found the "Hg Book" [2] to be informative and easy to read, as well. (shame about the pictures, though :/). The Mercurial wiki [3] is the canonical reference point.
HTH, Daniel
[1] http://betterexplained.com/articles/intro-to-distributed-version-control-ill... [2] http://hgbook.red-bean.com/ [3] http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial
On 11 Mar 2008, at 16:34, Daniel Stockman wrote:
Shuffling files and folders around ad nauseam is not exactly speedy, either. And woe unto you if you want to see how those folders looked two weeks ago (including that folder you deleted and those files you renamed...).
Time Machine? makes it easy... but does it break mercurial's in folder stuff?
I am a web developer, and I will never go back to ad hoc, unversioned code. Your sanity will thank you, too.
often I want a copy of a CSS file so the changes I'm making can be undone en-masse.
I'll also make a myriad of changes to several files to get a desired result and having to comment each change or commit is counter productive.
Mercurial makes branching and merging almost painless (for trivial changes, that is). Also, collecting a series of changes to multiple files in a single changeset (that you can switch to instantly at- will) is far more efficient, from my perspective, than even a _highly-organized_ heap (heh) of files and folders with byzantine naming schemes.
If I could get into the habit, it might help, but it doesn't seem to bring any benefits to me at this point...
any other web developers/builders using Version Control Systems want to share workflow? or point to a step by step?
"Distributed Version Control Illustrated"[1] is a good place to start, I've found the "Hg Book" [2] to be informative and easy to read, as well. (shame about the pictures, though :/). The Mercurial wiki [3] is the canonical reference point.
thanks for those.
Maybe I'll make one more attempt at getting organised...
;o)
Time Machine? makes it easy... but does it break mercurial's in folder stuff?
Since Mercurial stores everything in a .hg folder at the root of a checkout, I'm pretty sure Time Machine won't adversely affect it.
However, Time Machine ain't version control. It's a backup method. Version control does provide a backup, but that's almost beside the point. "Change management" is a better way to think of version control in this context. Time Machine is merely a stenographer, in comparison.
Regards, Daniel
At 14:47 Uhr +0100 11.03.2008, Hans-Joerg Bibiko wrote:
On 11 Mar 2008, at 14:35, Mark Eli Kalderon wrote:
any suggestions for how I might approach this better, or is there an option for "save a copy of this with a new name and work in the original"
Well, you could use version control. That way, you commit and continue working...
My workflow is that bound to shift+apple+s
Is a shell script:
res=$(CocoaDialog filesave --title "Save As Copy" --with-file "$TM_FILENAME") cat > "$res"
input: entire doc output: discard
Thank you, but this doesn't work for me (TextMate 1.5.7 under MacOS X 10.4.10).
e.g. I'm editing in the file "test.txt", select your "Save as Copy" bundle, enter "test01.txt" as file name... and a zero byte file called "test01.txt cat" is saved to my hard disk.
What's going wrong?
Kind regards, Tobias Jung
On 11 Mar 2008, at 15:13, Tobias Jung wrote:
Is a shell script:
res=$(CocoaDialog filesave --title "Save As Copy" --with-file "$TM_FILENAME") cat > "$res"
input: entire doc output: discard
Thank you, but this doesn't work for me (TextMate 1.5.7 under MacOS X 10.4.10).
e.g. I'm editing in the file "test.txt", select your "Save as Copy" bundle, enter "test01.txt" as file name... and a zero byte file called "test01.txt cat" is saved to my hard disk.
For me it's working for months. Did you try my tmcommand I attached?
Or did you retype it. If so, try to set output to "Show Tool Tip" or send me the tmcommand.
--Hans
At 15:22 Uhr +0100 11.03.2008, Hans-Joerg Bibiko wrote:
On 11 Mar 2008, at 15:13, Tobias Jung wrote:
e.g. I'm editing in the file "test.txt", select your "Save as Copy" bundle, enter "test01.txt" as file name... and a zero byte file called "test01.txt cat" is saved to my hard disk.
For me it's working for months. Did you try my tmcommand I attached?
Yes.
Or did you retype it.
No. :-/
Kind regards, Tobias
At 15:59 Uhr +0100 11.03.2008, I wrote:
At 15:22 Uhr +0100 11.03.2008, Hans-Joerg Bibiko wrote:
On 11 Mar 2008, at 15:13, Tobias Jung wrote:
e.g. I'm editing in the file "test.txt", select your "Save as Copy" bundle, enter "test01.txt" as file name... and a zero byte file called "test01.txt cat" is saved to my hard disk.
For me it's working for months. Did you try my tmcommand I attached?
Yes.
Problem solved. Obviously my email client messed with the line endings of the tmCommand file -- the attachment was stored with CR but I suppose TextMate expects LF.
After copying & pasting Hans-Joerg's code from the email message into TM's bundle editor, everything worked fine.
Thank you, Hans-Joerg!
Kind regards, Tobias
I would ask for an edit to the command if possible. Can the path of the file be set to the current file location so that I can just add a date to the file name such as 20080312 and save it in the same folder of the working file? I am asking for that since I normally work with packages, so I am not able to see their content in the finder.
Thanks in advance anyway, the command is really useful.
Il giorno 12/mar/08, alle ore 14:18, Tobias Jung ha scritto:
At 15:59 Uhr +0100 11.03.2008, I wrote:
At 15:22 Uhr +0100 11.03.2008, Hans-Joerg Bibiko wrote:
On 11 Mar 2008, at 15:13, Tobias Jung wrote:
e.g. I'm editing in the file "test.txt", select your "Save as Copy" bundle, enter "test01.txt" as file name... and a zero byte file called "test01.txt cat" is saved to my hard disk.
For me it's working for months. Did you try my tmcommand I attached?
Yes.
Problem solved. Obviously my email client messed with the line endings of the tmCommand file -- the attachment was stored with CR but I suppose TextMate expects LF.
After copying & pasting Hans-Joerg's code from the email message into TM's bundle editor, everything worked fine.
Thank you, Hans-Joerg!
Kind regards, Tobias
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 12.03.2008, at 16:05, (((Bonsai Studio))) - Giuseppe wrote:
I would ask for an edit to the command if possible. Can the path of the file be set to the current file location so that I can just add a date to the file name such as 20080312 and save it in the same folder of the working file? I am asking for that since I normally work with packages, so I am not able to see their content in the finder.
Thanks in advance anyway, the command is really useful.
Do you mean something like this:
res=$(CocoaDialog filesave --title "Save As Copy" --with-file "$TM_FILENAME" --with-directory `dirname "$TM_FILEPATH"`) cat > "$res"
--Hans