[TxMt] save as copy
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Tue Mar 11 13:47:22 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Save As Copy.tmCommand
Type: application/octet-stream
Size: 719 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20080311/cb266413/attachment.tmCommand>
-------------- next part --------------
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
More information about the textmate
mailing list