How do people feel about having TextMate set the creator code for saved files?
1) should it do it only for files w/o extension? 2) for specific (user setable) extensions? 3) have a global on/off switch? 4) be setable in the save panel?
The "problem" with creator codes is that they take precedence over file extension, so if for example you save a .html file with TextMate, that file will open in TextMate (if double clicked) even if you've instructed Finder to use OmniWeb to open HTML files (but you can change it pr. file though).
So creator codes does IMHO break the "change all" feature of Finder.
Personally I'd probably like #1 from above, maybe #2, though I generally do prefer my files to have a blank creator code.
Allan,
I'd prefer not having creator codes ... it's a nasty surprise when a file doesn't open with the expected app.
-Jason
Allan,
I am so glad you're considering this. I come from a NeXT/OpenStep background and personally, I wish OSX didn't have creator codes at all, but it does, so best to make the most of it. I know the whole creator code scheme flies in the face of Apple (or rather the ex-NeXT folk at Apple) trying to convince us all not to use them and use extensions instead, however, so many other apps including new ones like SubEthaEdit use them already, and TextMate not using them won't really help the situation. Until Apple removes the ability to use creator codes, I believe that TextMate should at least provide the option to use them.
I speak as someone who used BBEdit for a while (and didn't really like it), moved to SubEthaEdit and had to manually change all the creator codes on loads of files to the SubEthaEdit ones. I then had to add .txt extensions to all these files so that they would play nice with TextMate.
I personally favour a combination of (3) and (4). That is, have a global default of either on or off and then in the save panel be able to override that default if need be. For those that don't like creator codes, maybe the save panel should also provide the option to strip existing ones on the file you are saving.
If you think that they should be user-configurable based on extension then I guess that's another pane to add to your preferences. Personally I don't have the need for it but others may.
Regards,
Stuart
On 18 Nov 2004, at 22:30, Allan Odgaard wrote:
How do people feel about having TextMate set the creator code for saved files?
- should it do it only for files w/o extension?
- for specific (user setable) extensions?
- have a global on/off switch?
- be setable in the save panel?
The "problem" with creator codes is that they take precedence over file extension, so if for example you save a .html file with TextMate, that file will open in TextMate (if double clicked) even if you've instructed Finder to use OmniWeb to open HTML files (but you can change it pr. file though).
So creator codes does IMHO break the "change all" feature of Finder.
Personally I'd probably like #1 from above, maybe #2, though I generally do prefer my files to have a blank creator code.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On Nov 18, 2004, at 6:19 PM, Stuart Wheeler wrote:
I personally favour a combination of (3) and (4). That is, have a global default of either on or off and then in the save panel be able to override that default if need be. For those that don't like creator codes, maybe the save panel should also provide the option to strip existing ones on the file you are saving.
If you think that they should be user-configurable based on extension then I guess that's another pane to add to your preferences. Personally I don't have the need for it but others may.
I agree with Stuart.
Completely ignoring creator codes might turn potential TextMate users away who are used to the feature in other applications.
Automatically assigning creator codes to certain files will definitely upset the anti-creator code users.
Adding a preference panel for the user to customize this option by allowing them to customize TM's creator code settings might be considered by some as "feature bloat". Creator code support is not necessarily a very powerful feature (worthy of preference-panel real-estate). I currently enjoy TM's power-to-feature ratio.
I say a simply checkbox in the save panel and / or in a "file information" panel would suffice just fine.
If all else fails, I'm sure there's a way to set those things with a CL command, which can be added to the user's TM Command list.
-Brian
On 19 Nov 2004, at 9:30 am, Allan Odgaard wrote:
How do people feel about having TextMate set the creator code for saved files?
- should it do it only for files w/o extension?
- for specific (user setable) extensions?
- have a global on/off switch?
- be setable in the save panel?
Where 2 is concerned, it isn't really necessary to have TextMate 'hijack' certain extensions because you can use the Finder's info window to make changes to which app opens which files.
I would, however, like TextMate to set its creator code when I open a file that was created in another app, make a change, and save it. Maybe #4 is the best fit there.