I have been running into a problem with Textmate that for me, anyway, is a major hurdle. When I'm editing an HTML document, and I'm using Textmate's project drawer, I often want to use the open document as a basis for other documents. I go to "Save As..." and name the file, and hit enter. In almost every other Mac OS X program that I know, that command simply creates a new document with the old document as the starting point.
However, with Textmate's project drawer, the old file has essentially been renamed by the new one. I have to go back and re-add the old file to have it show up in the Project drawer again.
I have searched the archives of the Textmate list, and one other person has mentioned it - about a year ago. Some of the suggestions included hiding the program and bringing it back, re-booting the program, hiding the drawer - nothing works at all for me. I can't even drag the old files form the finder, I have to go to FIle>Add.
So my question is: is there any hope for this bug to be resolved? Are there any other fixes that I may not be aware of? I dunno - I would think this would be a rather glaring problem that more people would be clamoring to have fixed. I'm not a hardcore coder or anything - just someone who writes his own HTML. It just seems sort of... well, primary.
I do appreciate the power that Textmate has, and I can understand how useful it can be to people's workflows. But every time I try to "get into" it, something basic like this comes up as a roadblock and puts me off from wanting to use it. (See my old discussion about the Open Document in Running Browser command, which sadly still does absolutely nothing) I want to love Textmate, I really do. Just any help at all would be appreciated.
BTW: I'm on a MacBook Pro running OS 10.4.9 and using Textmate build 1.5.5/1368
On 29 Apr 2007, at 14:42, Chip Cullen wrote:
I have been running into a problem with Textmate that for me, anyway, is a major hurdle. When I'm editing an HTML document, and I'm using Textmate's project drawer, I often want to use the open document as a basis for other documents. I go to "Save As..." and name the file, and hit enter. In almost every other Mac OS X program that I know, that command simply creates a new document with the old document as the starting point.
However, with Textmate's project drawer, the old file has essentially been renamed by the new one. I have to go back and re-add the old file to have it show up in the Project drawer again.
Assuming your project just contains a live directory just cmd-tab away from TextMate and back and it'll reveal that - in fact - it has created a new copy.
Andy-
Wow - quick response! Thanks so much!
That was one of the suggestions from the old message posting from a year ago. No dice. I can jump to another application, come back, hide Textmate, come back, quit Textmate, relaunch - everything! And nothing happens. The new file remains in the project drawer, and the old one still has to be re-added.
Is this the kind of thing re-installing would fix? I'd like to avoid that if possible.
On 29 Apr 2007, at 14:50, Chip Cullen wrote:
Wow - quick response! Thanks so much!
That was one of the suggestions from the old message posting from a year ago. No dice. I can jump to another application, come back, hide Textmate, come back, quit Textmate, relaunch - everything! And nothing happens. The new file remains in the project drawer, and the old one still has to be re-added.
Do you add files explicitly to your project or does it just contain the contents of a folder?
It may need to be the latter to work - not sure.
Andy,
I did what you suggested, and it's starting to work - sort of. I created a new project, and added the folder, rather than the contained documents. When I did a Save As the same renaming problem happens, but now the Cmd-Tab to another app and back trick works! So, thank you very much for that!!
So, now to complicate matters: it gets really weird when you save files inside other directories in your project. I have a file open, and I go to "Save As..." and save the document within a folder that is listed in the project, and the rename bug still happens. Also, the 'new' document doesn't appear in the folder in which it was saved. However, when I Cmd-tab to a different app, and come back - the 'new' file appears in the right place. However, the 'old' document is STILL renamed with the 'new' filename. And when you go to open that 'old' document (with the 'new' name), it only opens the 'new' file, and you simply can't open the old one!
Strange...
On 4/29/07, Andy Armstrong andy@hexten.net wrote:
On 29 Apr 2007, at 14:50, Chip Cullen wrote:
Wow - quick response! Thanks so much!
That was one of the suggestions from the old message posting from a year ago. No dice. I can jump to another application, come back, hide Textmate, come back, quit Textmate, relaunch - everything! And nothing happens. The new file remains in the project drawer, and the old one still has to be re-added.
Do you add files explicitly to your project or does it just contain the contents of a folder?
It may need to be the latter to work - not sure.
-- Andy Armstrong, hexten.net
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 29 Apr 2007, at 15:19, Chip Cullen wrote:
So, now to complicate matters: it gets really weird when you save files inside other directories in your project. I have a file open, and I go to "Save As..." and save the document within a folder that is listed in the project, and the rename bug still happens. Also, the 'new' document doesn't appear in the folder in which it was saved. However, when I Cmd-tab to a different app, and come back - the 'new' file appears in the right place. However, the 'old' document is STILL renamed with the 'new' filename. And when you go to open that 'old' document (with the 'new' name), it only opens the 'new' file, and you simply can't open the old one!
I confess I tend to avoid all that - I use directory based projects and do most of my file management from the shell. That probably doesn't help you much :)
Andy, you've already done a lot - so I truely thank you for that. Yes, using the shell to manage files is beyond my level.
I just want to use the project drawer in the way that I think it is intended. I hate to say it, but something more Dreamweaver-like (Blasphomy! I know!) when it comes to managing site files would be great. Even without the FTP features. At least there, in the DW file manager, the files act pretty much like they do in the FInder. You "Save As..." a new file, and it as well as the old one are there. I dunno, it doesn't seem that complicated to me. Then again, I've never built a full-fledged application like this, so what do I know?
The project drawer just seems not quite finished. Ah well. Any other thoughts from other people out there?
On 4/29/07, Andy Armstrong andy@hexten.net wrote:
On 29 Apr 2007, at 15:19, Chip Cullen wrote:
So, now to complicate matters: it gets really weird when you save files inside other directories in your project. I have a file open, and I go to "Save As..." and save the document within a folder that is listed in the project, and the rename bug still happens. Also, the 'new' document doesn't appear in the folder in which it was saved. However, when I Cmd-tab to a different app, and come back - the 'new' file appears in the right place. However, the 'old' document is STILL renamed with the 'new' filename. And when you go to open that 'old' document (with the 'new' name), it only opens the 'new' file, and you simply can't open the old one!
I confess I tend to avoid all that - I use directory based projects and do most of my file management from the shell. That probably doesn't help you much :)
-- Andy Armstrong, hexten.net
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 29 Apr 2007, at 15:33, Chip Cullen wrote:
Andy, you've already done a lot - so I truely thank you for that. Yes, using the shell to manage files is beyond my level.
Complete digression: you may be surprised. The learning curve to start using the shell is a bit steep - you can't just click on things to find out what they do - but once you've cracked the basics you might find it's friendlier than you thought.
[snip]
The project drawer just seems not quite finished. Ah well. Any other thoughts from other people out there?
I don't have specifics but I know Allan is planning big changes for TM 2. I wouldn't be surprised if the drawer receives quite a bit of his attention.
Andy,
I gotta tell you, I wouldn't even know where to begin with that. I've used the terminal a handful of times, but I don't even know the beginning of using anything command-line. If I get the time, maybe I'll learn someday.
As for Textmate 2.0 - I've done more looking through the mailing list, and it seems like other people are having different issues with the project drawer. I can't wait to see what Allan comes up with - I hope it makes everything much easier. There isn't even a rough ETA, is there?
On a totally separate digression - is there any reason there isn't a Textmate forum/bulletin board? Using a mailing list to look for support/answers just seems to involve about five extra steps for the end user. If Allan likes having everything in digest form, I guess that's his prerogative.
On 4/29/07, Andy Armstrong andy@hexten.net wrote:
On 29 Apr 2007, at 15:33, Chip Cullen wrote:
Andy, you've already done a lot - so I truely thank you for that. Yes, using the shell to manage files is beyond my level.
Complete digression: you may be surprised. The learning curve to start using the shell is a bit steep - you can't just click on things to find out what they do - but once you've cracked the basics you might find it's friendlier than you thought.
[snip]
The project drawer just seems not quite finished. Ah well. Any other thoughts from other people out there?
I don't have specifics but I know Allan is planning big changes for TM 2. I wouldn't be surprised if the drawer receives quite a bit of his attention.
-- Andy Armstrong, hexten.net
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 29 Apr 2007, at 15:58, Chip Cullen wrote:
I gotta tell you, I wouldn't even know where to begin with that. I've used the terminal a handful of times, but I don't even know the beginning of using anything command-line. If I get the time, maybe I'll learn someday.
Give it a try :)
As for Textmate 2.0 - I've done more looking through the mailing list, and it seems like other people are having different issues with the project drawer. I can't wait to see what Allan comes up with - I hope it makes everything much easier. There isn't even a rough ETA, is there?
Not before Leopard I think.
On a totally separate digression - is there any reason there isn't a Textmate forum/bulletin board? Using a mailing list to look for support/answers just seems to involve about five extra steps for the end user. If Allan likes having everything in digest form, I guess that's his prerogative.
That's one of those things. The people who prefer mailing lists can't imagine why anyone would prefer a forum and vice versa :)
Chip Cullen wrote:
As for Textmate 2.0 - I've done more looking through the mailing list, and it seems like other people are having different issues with the project drawer. I can't wait to see what Allan comes up with - I hope it makes everything much easier. There isn't even a rough ETA, is there?
I believe the rough ETA is "sometime after Leopard", which I would guess means sometime between October and December.
On a totally separate digression - is there any reason there isn't a Textmate forum/bulletin board? Using a mailing list to look for support/answers just seems to involve about five extra steps for the end user. If Allan likes having everything in digest form, I guess that's his prerogative.
Actually, it is much easier to search a mailing list for answers than a forum,[^1] the messages are arranged in nice nested threads by the mail headers, it is very easy to munge the messages into any type of format desired, and there is no requirement to use a badly designed forum web interface to do anything with the content. Web forums are by far the worst online discussion medium (bbcode is one of the stupidest formats ever invented), and it's a tragedy that so many projects cripple their discussions by putting them in a forum. ;)
[^1]: If you like, you can read the mailing list in a forum-like interface at [gmane](http://dir.gmane.org/gmane.editors.textmate.devel), or you can use gmane's nntp gateway to browse the list with your favorite usenet client. I use Thunderbird for this and it works quite well.
-Jacob
On Apr 29, 2007, at 7:58 AM, Chip Cullen wrote:
On a totally separate digression - is there any reason there isn't a Textmate forum/bulletin board? Using a mailing list to look for support/answers just seems to involve about five extra steps for the end user. If Allan likes having everything in digest form, I guess that's his prerogative.
There is a forum-esque version of this mailing list, hosted at http:// www.nabble.com/textmate-users-f18157.html. I forget when it was founded, or how far back its archives go, but it does provide another means of searching the discussions which happen here.
Brooks
Chip,
It sounds as though what you really want is a "Save a copy…" command, which makes a new file containing the contents of your current document, rather than renaming the current document.
TextMate doesn't have such a command built-in, but it's easy to write one. Here it is, attached. I've bound it to apple-D, which doesn't seem to clash with anything, but you can easily change that in the bundle editor.
Robin
Robin,
Thank you so much for this command, and Chip for bringing it to your attention. This problem has flummoxed me and is now solved. So this morning I now have a beautiful new google spell checker from Andy and Save a copy from you.
Jenny
On Apr 29, 2007, at 8:41 AM, Robin Houston wrote:
Chip,
It sounds as though what you really want is a "Save a copy…" command, which makes a new file containing the contents of your current document, rather than renaming the current document.
TextMate doesn't have such a command built-in, but it's easy to write one. Here it is, attached. I've bound it to apple-D, which doesn't seem to clash with anything, but you can easily change that in the bundle editor.
Robin
<Save a copy.tmCommand>
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 4/29/07, Robin Houston robin.houston@gmail.com wrote:
TextMate doesn't have such a command built-in, but it's easy to write one. Here it is, attached.
Whoops, that had a silly bug that makes it screw up if you press the Cancel button! Here is a fixed version.
Robin
TextMate doesn't have such a command built-in, but it's easy to write one. Here it is, attached. I've bound it to apple-D, which doesn't seem to clash with anything, but you can easily change that in the bundle editor.
Nice idea Robin. How about adding this? It may save a little directory locating and typing time...
filename="$(CocoaDialog filesave --title 'Save a copy' --with- directory `dirname "$TM_FILEPATH"` --with-file "$TM_FILENAME" )" [ -n "$filename" ] && cat >"$filename" rescan_project
On 4/29/07, Simon Gregory simon@helvector.org wrote:
Nice idea Robin. How about adding this? It may save a little directory locating and typing time...
Thanks. I like the --with-file, but the --with-directory could get annoying if you regularly want to save copies to a different directory. (I'd guess that's more common than wanting to save a copy to the same directory, probably.)
Maybe this could be added to the TextMate bundle or somewhere? It seems to be something that people quite often want.
Robin
Robin, Simon et al -
Thank you all so much! That does it! I still have to do the Cmd-Tab trick for the new file to show up in the project drawer, but I can live with that until TM2. October can't come fast enough!
Jacob - different strokes I guess. For the average user, in my opinion, forums/bulletin boards are much more intuitive. They're easier to browse (if you're not quite sure how to word your problem) - and you don't have to go through the process of setting up a 3rd party piece of software to use them with any ease. In well run forums, topics are grouped by general subject, not just in one huge archive (again, easier for browsing). Also, when you search for something, and click on a hit, you get to see the whole thread at once, rather than having to go through message by message (as you do with the mailing list archives on Gmane). I agree, many forums out there are extremely garish in terms of design, but that can easily be remedied by the admin tweaking the style sheet. I guess I've also gotten used to searching for answers on forums and am having a difficult time getting used to a mailing list. The last time I was on a mailing list was the late 1990's. But hey, the people are great!
Brooks - thank you for pointing me to that! It definitely is more what I'm used to looking through! It seems to be at least current, but as you say, I'm not sure how far back it goes.
Robin & Simon,
Well, I took a little bit of what both of you did and came up with an even better solution:
filename="$(CocoaDialog filesave --title 'Save a copy')" [ -n "$filename" ] && cat >"$filename" rescan_project
Robin - your solution was working fine, but I had to do the Cmd-Tab trick to have the new file show up in the project. Simon, your solution showed the new file in the project drawer, but it was erasing everything in the 'old' document afterwards and giving a weird error. So, I just took the bit at the end of Simon's code and put it at the end of Robin's, and there you go - no error with the document, and everything shows up in the project drawer.
I guess the only thing that would make this work even better is if the new file were the open document, and the old one were closed, like a 'true' save as.
Thanks everyone!
On 4/30/07, Chip Cullen chip.cullen@gmail.com wrote:
Robin, Simon et al -
Thank you all so much! That does it! I still have to do the Cmd-Tab trick for the new file to show up in the project drawer, but I can live with that until TM2. October can't come fast enough!
Jacob - different strokes I guess. For the average user, in my opinion, forums/bulletin boards are much more intuitive. They're easier to browse (if you're not quite sure how to word your problem) - and you don't have to go through the process of setting up a 3rd party piece of software to use them with any ease. In well run forums, topics are grouped by general subject, not just in one huge archive (again, easier for browsing). Also, when you search for something, and click on a hit, you get to see the whole thread at once, rather than having to go through message by message (as you do with the mailing list archives on Gmane). I agree, many forums out there are extremely garish in terms of design, but that can easily be remedied by the admin tweaking the style sheet. I guess I've also gotten used to searching for answers on forums and am having a difficult time getting used to a mailing list. The last time I was on a mailing list was the late 1990's. But hey, the people are great!
Brooks - thank you for pointing me to that! It definitely is more what I'm used to looking through! It seems to be at least current, but as you say, I'm not sure how far back it goes.
I was just wondering - I was able to put Simon's command "rescan_project" at the end of Robin's command, and Textmate will rescan the project drawer - very helpful.
Is there anyway to make "rescan_project" a stand-alone command?
I'm borderline-ignorant on how to make bundle commands, short of cobbling other things together and hoping they work. I tried just making a command in the bundle editor that said "rescan_project", but that erases the entire contents of the page that I am working on. I obviously am missing something fundamental. Any thoughts?
Thanks!
Chip
On 4/30/07, Chip Cullen chip.cullen@gmail.com wrote:
Robin & Simon,
Well, I took a little bit of what both of you did and came up with an even better solution:
filename="$(CocoaDialog filesave --title 'Save a copy')" [ -n "$filename" ] && cat >"$filename" rescan_project
Robin - your solution was working fine, but I had to do the Cmd-Tab trick to have the new file show up in the project. Simon, your solution showed the new file in the project drawer, but it was erasing everything in the 'old' document afterwards and giving a weird error. So, I just took the bit at the end of Simon's code and put it at the end of Robin's, and there you go - no error with the document, and everything shows up in the project drawer.
I guess the only thing that would make this work even better is if the new file were the open document, and the old one were closed, like a 'true' save as.
Thanks everyone!
On 4/30/07, Chip Cullen chip.cullen@gmail.com wrote:
Robin, Simon et al -
Thank you all so much! That does it! I still have to do the Cmd-Tab trick for the new file to show up in the project drawer, but I can live with that until TM2. October can't come fast enough!
Jacob - different strokes I guess. For the average user, in my opinion, forums/bulletin boards are much more intuitive. They're easier to browse (if you're not quite sure how to word your problem) - and you don't have to go through the process of setting up a 3rd party piece of software to use them with any ease. In well run forums, topics are grouped by general subject, not just in one huge archive (again, easier for browsing). Also, when you search for something, and click on a hit, you get to see the whole thread at once, rather than having to go through message by message (as you do with the mailing list archives on Gmane). I agree, many forums out there are extremely garish in terms of design, but that can easily be remedied by the admin tweaking the style sheet. I guess I've also gotten used to searching for answers on forums and am having a difficult time getting used to a mailing list. The last time I was on a mailing list was the late 1990's. But hey, the people are great!
Brooks - thank you for pointing me to that! It definitely is more what I'm used to looking through! It seems to be at least current, but as you say, I'm not sure how far back it goes.
Hi Chip,
I'm borderline-ignorant on how to make bundle commands, short of cobbling other things together and hoping they work. I tried just making a command in the bundle editor that said "rescan_project", but that erases the entire contents of the page that I am working on. I obviously am missing something fundamental. Any thoughts?
Check that the "Output" setting on the command (it's a dropdown below the main text box in the bundle editor) isn't set to "Replace Document" -- I think you want to just "Discard" the output.
Also, I think "Input"(s) wouldn't hurt to be set to "None" or "Nothing"
Does that help? -steve
Steve-
Ha ha! Perfect! Now I don't even have to Cmd-Tab to see all the files in the project drawer! yay! thank you so much!
Chip
On 5/1/07, Steve Lianoglou lists@arachnedesign.net wrote:
Hi Chip,
I'm borderline-ignorant on how to make bundle commands, short of cobbling other things together and hoping they work. I tried just making a command in the bundle editor that said "rescan_project", but that erases the entire contents of the page that I am working on. I obviously am missing something fundamental. Any thoughts?
Check that the "Output" setting on the command (it's a dropdown below the main text box in the bundle editor) isn't set to "Replace Document" -- I think you want to just "Discard" the output.
Also, I think "Input"(s) wouldn't hurt to be set to "None" or "Nothing"
Does that help? -steve
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