Re: Zen Coding

Eric Promislow <[email protected]> Tue, 24 Nov 2009 10:19:56 -0800
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
The interesting thing about this is the Zen* plugins could be
treated as a de-facto standard for snippet abbreviations.  Very
cool.

We'd have to change our abbreviation-recognition algorithm to go
by longest-match, rather than the word-based match we currently
use.  For example, there are two selectors named "div.one.two" and
"div#name.one.two".  If your cursor is to the right of the "two"
and you press Ctrl-T, we only look at the "word-characters" to the
left of the cursor, meaning that we'd look for a snippet named
"two" for the current language, and in "General".

There's a comment in the code stating that this isn't sufficient
for some other families of triggers, so we'd have to go with a
longest match to make this happen.

- Eric

On 11/24/2009 1:10 AM, Lindsay Marshall wrote:
> Has anyone made a Komodo extension for http://code.google.com/p/zen-coding/ ??
>
> L.
> _______________________________________________
> Komodo-discuss mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss