As I mentioned in a
previous post, I am now using the dvorak keyboard with hacked in qwerty shortcuts. But recently, my e-texteditor ctrl-z shortcut key doesn't work anymore and instead keeps inserting an error message in my buffer... how annoying is that? I don't see any circumcetance when it's okay to insert an error message directly into your working document, that is just wrong! But, that's not the point. I found out that the ctrl-z combination is somehow triggering the spellchecker command instead of undo...how could this be? I did a little detective work an AH-HA! It turns out that in the text-bundle, the ctrl-; combination triggers the spellcheck, and ; in dvorak is z in qwerty... removed that key combination and everything was fine...phew...
To add a file extension to have a bundle autoloaded for it. You would go to the file:
C:\Program Files\e\Bundles\blah.tmbundle\Syntaxes\blah.plist
And add an entry under:
<dict>
<key>fileTypes</key>
<array>
<string>html</string>
<string>htm</string>
<string>shtml</string>
<string>xhtml</string>
<string>phtml</string>
<string>php</string>
<string>inc</string>
<string>tmpl</string>
<string>tpl</string>
<string>ctp</string>
Restart e and you are done.
Today I was faced with the task of converting my existing stylesheet to
sass. But my stylesheet is so big! I really didn't want to do this by hand. Now, I had heard somewhere, and half suspected you could use search and replace with regex in e-texteditor(the textmate equivalent on windows). Wow! was I blown away and cursed myself for not knowing to use this earlier. So what I ended up doing was a version of this:
- replace ([^ ]+)\: with :$1 to change font-size: to :font-size
- replace [^ ]*{[^ ]*\n with \n to remove all open braces
- replace }[^ ]*\n with \n to remove all closing braces
This feature really made my day.
Now sass and haml, I think they are still a bit buggy: they don't handle bad input very well. But I hope that it improves.