Hello all,
I'm trying to work out how to order files/folders in the project drawer. I dragged and dropped files in to the drawer ordered however they're listed in a bit of a random order now.
Any ideas?
Thanks!
Alastair
I work mostly with web markup and php. For my purposes, I set up folders for grouping stuff:
Main <- the top level web pages CSS <- where I keep the frogs Structure <- headers, footers, menus, shared stuff SCForm <- web form package Board <- Programs <- Practice <- etc. <- include files grouped by where they are used (Board = Bd of Directors)
This lets me fold away parts I'm not looking at. When I upload to the website, everything goes into one big pot, but development is categorized. TM lets me structure my work without having to impose that structure on the website file structure.
Works for me.
On 2/10/06, Alastair Moore alastair@kozmo.co.uk wrote:
Hello all,
I'm trying to work out how to order files/folders in the project drawer. I dragged and dropped files in to the drawer ordered however they're listed in a bit of a random order now.
Any ideas?
Thanks!
Alastair
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
Lewis Overton wrote:
I work mostly with web markup and php. For my purposes, I set up folders for grouping stuff:
Main <- the top level web pages CSS <- where I keep the frogs Structure <- headers, footers, menus, shared stuff SCForm <- web form package Board <- Programs <- Practice <- etc. <- include files grouped by where they are used (Board = Bd of Directors)
This lets me fold away parts I'm not looking at. When I upload to the website, everything goes into one big pot, but development is categorized. TM lets me structure my work without having to impose that structure on the website file structure.
Works for me.
Hi,
Thanks for the reply, it's not really the structuring of sites or putting files into folders but in the project drawer, the ordering of files. If I have, for example:
Folder A Folder B Folder C File A File B File C etc.
when I drag and drop files and folders into the project drawer, it lists them in a random order, so I might get something like -
File C Folder B Folder C File B File A Folder A
It's not a biggy but for the files and folders to be in a correct order, it makes it easier when working with a large number of folders and files. Is there a way to order these correctly?
If you have a look at a screen grab I made, it will probably explain it a little better.
http://www.kozmo.co.uk/misc/textmate.png
Cheers!
Alastair
On Feb 13, 2006, at 3:31 AM, Alastair Moore wrote:
when I drag and drop files and folders into the project drawer, it lists them in a random order, so I might get something like -
File C Folder B Folder C File B File A Folder A
I'm seeing a similar problem. It seems that if you drag files from the Finder when it's in Column view, the project files are sorted alphabetically, as expected. But if you drag them when Finder is in List view, strange things happen. For example, here's a Finder window:
http://vocaro.com/trevor/files/FinderScreenSnapz001.png
And here's what I get in TextMate after selecting all items in the Finder and dragging them to a new project window:
http://vocaro.com/trevor/files/TextMateScreenSnapz001.png
So the results are neither in alphabetical order nor in the order in which they appeared in the Finder. Perhaps this is a bug in Finder? Either that or a bug in TextMate's drop handling.
Trevor
The lack of order might well be a Finder problem: if you drag several image files onto the Photoshop icon for example, they open in a "random" order. I've seen this in other programs too. Rather irritating.
Once Folders are in the TextMate drawer, you can DRAG them to change the order in which they appear.
eo
On Feb 13, 2006, at 2:16 PM, Trevor Harmon wrote:
On Feb 13, 2006, at 3:31 AM, Alastair Moore wrote:
when I drag and drop files and folders into the project drawer, it lists them in a random order, so I might get something like -
File C Folder B Folder C File B File A Folder A
I'm seeing a similar problem. It seems that if you drag files from the Finder when it's in Column view, the project files are sorted alphabetically, as expected. But if you drag them when Finder is in List view, strange things happen. For example, here's a Finder window:
http://vocaro.com/trevor/files/FinderScreenSnapz001.png
And here's what I get in TextMate after selecting all items in the Finder and dragging them to a new project window:
http://vocaro.com/trevor/files/TextMateScreenSnapz001.png
So the results are neither in alphabetical order nor in the order in which they appeared in the Finder. Perhaps this is a bug in Finder? Either that or a bug in TextMate's drop handling.
Trevor
this morning and just now, I got a 'you must restart' message (on 10.4.3 and 10.4.4) doing a save in textmate to a samba-mounted drive.
I am having trouble deciphering the console messages, eg:
"/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/ SystemUIServer: The function CGSCreateDictionary is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance."
(this is repeated several times for various other items such as CGSDictionarySetObjectForKey, CGSSetGStateAttribute, et al)
I suspect the crashes have to do with the configuration of the smb share itself, but wanted to know if anyone else has had/can replicate this problem?
I cannot find any references to textmate in the logs, fyi, but it only happens using that app (eg, using emacs locally and saving the same files doesn't crash).
cheers!
Hmm. FWIW, I've been doing this very thing for the last week without any problems. Some details: MacOS 10.4.4 on an iMac G5. WinXP laptop on the same 100mb (home) network, where the files reside.
The only thing I notice is that sometimes when I switch to TextMate it will go "busy" for 1 second or so, presumably checking the file system for changes.
dean
On 2/13/06, d. vinay dixit vinayd@mac.com wrote:
this morning and just now, I got a 'you must restart' message (on 10.4.3 and 10.4.4) doing a save in textmate to a samba-mounted drive.
I am having trouble deciphering the console messages, eg:
"/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/ SystemUIServer: The function CGSCreateDictionary is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance."
(this is repeated several times for various other items such as CGSDictionarySetObjectForKey, CGSSetGStateAttribute, et al)
I suspect the crashes have to do with the configuration of the smb share itself, but wanted to know if anyone else has had/can replicate this problem?
I cannot find any references to textmate in the logs, fyi, but it only happens using that app (eg, using emacs locally and saving the same files doesn't crash).
cheers!
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
-- Dean Wampler http://www.aspectprogramming.com http://www.newaspects.com http://www.contract4j.org
On 14/2/2006, at 3:35, d. vinay dixit wrote:
this morning and just now, I got a 'you must restart' message (on 10.4.3 and 10.4.4) doing a save in textmate to a samba-mounted drive. [...]
TextMate uses setxattr() to save meta data for files.
Apple's implementation of this function is unfortunately broken (as to cause kernel panics) for at least AFS, NFS, and MS-DOS (e.g. used with USB devices). But I have not had any reports for SMB -- but likely that is what happens for you.
There are two options, either to disable the use of setxattr completely [1]:
defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1
Or you can enable my custom replacement for setxattr on the affected file system [2]:
defaults write com.macromates.textmate \ OakDocumentCustomFSMetaData '( smbfs, afpfs, nfs, msdos )'
[1] http://macromates.com/textmate/manual/ saving_files#extended_attributes_metadata [2] http://macromates.com/textmate/manual/ expert_preferences#oakdocumentcustomfsmetadata
On 13/2/2006, at 23:16, Trevor Harmon wrote:
So the results are neither in alphabetical order nor in the order in which they appeared in the Finder. Perhaps this is a bug in Finder? Either that or a bug in TextMate's drop handling.
At least in the past, AHIG said that when dragging items from a list (such as Finder), the ordering should be the order in which the user selected the items, unless the list presented the items sorted (e.g. by name), in which case, the ordering should be that.
The only way I can respect that, is if Finder puts the items on the drag clipboard, in the proper order, which unfortunately it does not.
I filed a bug long ago, which I think was marked a duplicate, which seems to mean that Apple acknowledge the problem -- that I can no longer find the passage in AHIG, and my ADC account has apparently “been disabled for security reasons” (wtf?) though indicates that maybe I should take actions myself toward a workaround ;)
Initially I didn't want to just sort the dropped items by filename, cause in theory the user could drag from another application, where the sort criterion was something else - but I guess in practice this is rare.
All that said: in the future I am not sure I will support projects which consist of arbitrarily grouped files and folders, but instead only folder references (that is, making the project drawer a small Finder instance, sort of) -- so this will likely be a non-issue.
As for the OP, currently there's only drag'n'drop to re-order items (i.e. no Sort By… context menu) -- but in your case, I think you could drag the parent folder to TextMate, instead of all the individual files, and TextMate will take care of the sorting (as it will then reflect what's on disk).