Archive for July 2010
Adding sections with folding for CSS in TextMate
In CSS there is no concept of sections or nested blocks. But since CSS files usually become very long, you may want to fold groups of style definitions to get a better overview:
/* start foldme */
p { color: #000 }
/* end foldme */
Since this is not possible with the CSS bundle shiped with Textmate, I added this on myself:
I first added a snipped called section to the CSS bundle:
/* start ${1:section} */ $0 /* end $1 */It gets activated by the tab trigger sec. The scope selector is source.css.
I then modified the language definition and added |/\* start \w+ \*/ to the foldingStartMarker and |/\* end \w+ \*/ to the foldingStopMarker. They should look like this now:
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|/\* start \w+ \*/'; foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|/\* end \w+ \*/';
That’s all you need to do.
Tea Timer 1.7.1-RC1
Sorry for that buggy 1.7 release. Thanks to you, who helped me fixing them by giving good error descriptions. Also thanks you, who trolled and thus showed me how much you need this little widget. ;-)
To be sure, I really fixed everything, I’ve decided let you test the new release, before I make it final. Please download the curren tip from the repository at bitbucket.org. If you find anything, please create an issue or just write a comment here. Thanks!
PS: I’ve decided to leave the update message the way it is. Normally, you only have to see it once or twice a year and it takes just one click to get rid of it. :)
Tea Timer 1.7
I just released Tea Timer 1.7 which implements a few wishes from you:
- There’s now a rewind button for resetting an ongoing countdown to its initial value.
- The timer will be reset to the initial value, not the last pause value, after the alarm.
- The current widget’s settings will also be saved as default settings for new widgets.
Unfortunately it was not possible (neither with Python nor with Apple Script) to implement a backlink from Growl to Tea Timer to stop the alarm when you click on the Growl notification.
Anyway, Download Tea Timer 1.7 and enjoy!