Comments (4)
Don't know if it helps, but the way the TextMate bundle for Zen Coding is set up, I can have whatever I want as a trailing tab trigger and it's ignored when the line is processed. I'm just using a comma (,) as the trigger now, so I end a zen coding string with a comma and hit tabβ¦
from tea-for-espresso.
Thanks, I'll take a look at the Textmate implementation! Having a comma-tab (or similar) tab completion that then parses the word before the comma is an interesting idea.
from tea-for-espresso.
Checking to see if there's any progress on this functionality? I've been using zen-coding tab-triggers on Textmate for months now but miss the auto-complete. My demo will expire shortly, would love to see this working ASAP. Many thanks!
from tea-for-espresso.
Unfortunately, I'm not going to be able to get this done in the next few days. If you'd like to try the comma-delimited tab trigger, though, here's how to set it up:
-
Enable custom user actions in Actions->TEA->Preferences
-
Create this XML file:
~/Library/Application Support/Espresso/Support/TextActions/Actions.xml
With these contents:
<?xml version="1.0"?>
<action-recipes>
<action id="com.onecrayon.TextActions.ExpandTabTrigger" category="actions.text.HTML/tea.insertion">
<class>TEAforEspresso</class>
<title>Expand Tab Trigger</title>
<text-trigger>,</text-trigger>
<setup>
<action>word_to_snippet</action>
<options>
<dict>
<key>default</key>
<string><$SELECTED_TEXT>$1</$WORD>$0</string>
<key>extra_characters</key>
<string>_-#.>+*:$!@</string>
<key>mode</key>
<string>zen</string>
<key>undo_name</key>
<string>Expand Tab Trigger</string>
</dict>
</options>
</setup>
</action>
</action-recipes>
Relaunch Espresso twice and you'll be able to type any zen coding snippet followed by comma+tab and it'll expand just like if you'd hit control-comma.
I'd still like to get zen-coding's abbreviations as full tab-triggers (no comma needed), so I'll let you know if/when that makes it into the main TEA plugin.
from tea-for-espresso.
Related Issues (20)
- Possibility to add space after colon for ZC CSS HOT 5
- Wrap With Abbreviation doesn't escape snippet variables yet HOT 1
- Exception when selection contains first or last char in document HOT 2
- Find a way to jump-start Itemizers
- Refine the entity actions so they don't convert entities in PHP or Javascript
- Selecting large chunks of text crashes the program when running "decode entities" HOT 1
- Wrap with abbreviaton isn't working HOT 2
- Default dialog contents of wrap with abbreviation to last used abbreviation
- Look into logic for running zen coding CSS expansions in style attributes HOT 1
- Add support for querying user input at arbitrary points during script execution
- Select Word keyboard shortcut conflicts with Wrap Selection In Tag HOT 2
- A little bug in select HOT 1
- A little bug in select HOT 1
- Python auto indentation HOT 1
- TEA 1.2b2 for espresso doesn't work in xml files HOT 1
- TEA fails with custom Python installs HOT 1
- TEA Balance command isn't falling back to generic itemizer balancing in PHP
- Select word HOT 1
- Wrap with Abbreviation eliminates numerical text HOT 1
- Location of EspressoTextActions.h ? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tea-for-espresso.