I figured out how to all-purpose-ify the image drag command. Now
with one command, it can handle multiple situations. If you drag it:
Outside a selector/property (source.css): nothing happens
After a property (meta.property-value.css): inserts url('path/
image.jpg')
Inside of empty parentheses in a property value: inserts 'path/
image.jpg'
Inside of single quotes in a property value: inserts path/image.jpg
Inside a property list, outside a value: inserts a full background:
shortcut tag.
Suggestions welcome.
Brett

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
perlop(3):
The "=>" operator is a synonym for the comma, but forces any word (con-
sisting entirely of word characters) to its left to be interpreted as a
string (as of 5.001). This includes words that might otherwise be con-
sidered a constant or function call.
For example:
{
format => 'html',
server => 'localhost',
}
Currently, 'format' has a scope of support.function.perl, while 'server' is source.perl.
\b\w+\s*=> would match, but would should the scope be? string.quoted.other? And how to give it higher precedence than support.function.perl?
I have the TextMate blog on an RSS subscription but there's a lot
more going on out there. Any chance someone could set up an aggregate
feed?
Cheers,
JC.
BBEdit has a nice feature called Hard Wrap that prompts for a column
width, then hard wraps the selected text to that width. I would like
to do the same thing in TextMate, but it doesn't seem possible. The
Text > Reformat Paragraph command wraps to the window, not a
specified length. Is there another way? Thanks,
Trevor
Hi,
I just tried out the new version of markdown_to_help.rb. It works
perfectly. Many thanks! (Also with images via
echo "<base href='tm-file://${TM_BUNDLE_SUPPORT// /%20}/
help.markdown'>")
Now I have a tiny suggestion for an improvement:
I added a href back to TOC to each jump address. That means if you
click lets say at the TOC entry 3.1.7, it jumps to 3.1.7 BlaBla and
if you click at 3.1.7 it will jump back to TOC. That would increase a
bit the navigation behaviour for large help files for instance. I've
chosen the id=sect_0 as address for TOC.
I attach the modified markdown_to_help.rb to this mail as an example.
Maybe the only thing which should be written better is the style
attribute 'text-decoration:none' (I added it because it looks
better ?). Maybe place this style to the css?
Best,
Hans
Hi all,
Every now and then a new bundle or item comes along that messes up
one of the triggers perfectly committed to muscle memory...
It would be great if there were an easy way to select an item in the
bundle editor based on trigger. For example when the 'shared trigger'
menu shows up, if an entry is selected and alt+Enter is pressed, it
would show in the bundle editor. Or similar when using the new 'key
equivalent' search in the Select Bundle Item window.
Gerd
I have expanded on Jonathan LaCour's TurboGears bundle, mainly adding
in lots of snippets that have (for me) vastly speeded up creating
models and forms in TurboGears. There's not much in there of interest
to anyone not using TG, except for a couple of generic Python snippets
I put in cause I got bored of typing *args, **kwargs.
For TGers, an example of using the form snippets is to type form→ to
create a new form, then field→ to choose and insert a field into it,
then once you get to the validator tab stop type valid→ to choose and
insert a validator. After that you have to manually move to the end
of the field snippet to insert another field, but then you can just
rinse and repeat as necessary.
If, like me, you are often sent a list of fields to be put on a form,
if you copy them one by one in reverse order you will have them in
your paste history and can paste them into the filed names as you go
through using cmd+v for the first and command+shift+v for the others
(does anyone know a command to copy a list into your paste history?).
Anyway, it allows me to knock out a thousand lines of forms in a
couple of hours (admittedly the layout is very javascript-y, so it
could be fitted into a lot less lines). Similar things can be
achieved with models.
Any comments, corrections and additions will be very gratefully received.
Ed
Hello all,
What is the best way to suppress decorators from the Symbol list when
doing Python development?
I'm doing some TurboGears development, which uses Python's decorator
syntax heavily in spots.
In essence, the code looks like this:
@expose()
def foo(self):
pass
@expose()
def bar(self):
pass
@expose()
def baz(self):
pass
The problem is that when I either "Go to Symbol", or click the Symbol
menu, the symbol list is littered with the @expose decorators.
Currently, the Symbol menu looks like this:
@expose
foo(self)
@expose
bar(self)
@expose
baz(self)
I'd prefer for it to look like this instead:
foo(self)
bar(self)
baz(self)
I thought that it would be a matter of subtracting
"meta.function.decorator.python" from the Symbol List scope selector,
but I tried that to no avail. Any advice you can provide is
appreciated
Thanks,
Mike
Hi there.
I've checked in some changes to the ActionScript bundle:
* All "build" commands have been assigned "TextMate Standard"
keystrokes (⌘+R, ⌘+B)
* A "New Function" command with the standard keystroke (⇧+↩) creates a
function with the current word (selected or previous)
Expect a lot of activity in the bundle in the coming days.
Thanks to Allan for the svn account :)
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Thanks for all the recent improvements!
Some remarks on Build & Run:
- log output from the running program is still messed up (spaces and
tabs are not displayed as intended)
- the progress indicator is somewhat annoying during run
Thanks
Gerd