I personally think that exposing it in the UI is a good idea. I can think of times I would like the option to hear the sound and other's I wouldn't. And having to make changes to th prefs file just to do that seems like a bit much. I think of prefs file changes for changes of functionality you want a "pro" user to be able to manipulate but don't think will change much if at all over the life of the user using the program. Like the `NSDragAndDropTextDelay` option in TextMate this controls how long you need to hold down on selected text before it becomes dragable. This is not a setting that needs to be exposed in the UI and really only needs to be set once. If you don't like the default you'll reset it to something you prefer, but I really can't imagine every changing it again.
Just my thoughts on the matter.
Also my own question to the community at large on behalf of Todd. Will he need to rewrite a lot of his plug-ins when TM2.0 comes out? Or will he's current plug-ins potentially port over easily. Just I know I'd be frustrated if I did a bunch of work and then found out I would have to do it all over again a few months latter :-P
-Brian
On 12/27/06, Soryu Soryu@serenity.de wrote:
On 27.12.2006, at 15:54, Todd Ditchendorf wrote:
Soryu:
Now I'd just like an option to turn off the sound.
good idea... the biggest question is how to show this option in the ui... in a normal app, I'd just put it in the prefs window, but in a plugin, i'm not sure where to put it....
The defaults System.
defaults read com.macromates.textmate
This is already uses by e.g. the CodeBrowser Plugin:
"CodeBrowser.function.17994EC8-6B1D-11D9-AC3A-000D93589AF6" = 1; "CodeBrowser.variable.17994EC8-6B1D-11D9-AC3A-000D93589AF6" = 0;
I think we do not really need to expose it in the GUI, but just put it in the Documentation somewhere, as people will set it only once.
Soryu. ______________________________________________________________________ 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