Every repository with this icon (
Every repository with this icon (
| Description: | An Espresso Sugar containing Textmate-style Text Editor Actions, written in Python edit |
-
0 comments Created 3 months ago by onecrayon1.1xConvert core classes to Objective-CimprovementxApparently the Python interpreter is screwing with launch speeds; need to convert the core classes to Objective-C.
Will I still be able to pass arbitrary lists of keyword arguments? Need to check to see if this is going to be a problem, since it's a core portion of TEA's functionality.
Comments
-
0 comments Created 2 months ago by onecrayonAdd "direction" and "wrap around" options for gotoimprovementxIt would be really sweet to be able to specify searching forward or background and wrap around for goto; for instance, would allow jumping to the next CSS property, HTML tag, etc. via regex alone.
Need to think how best to work this, though, particularly if I'm going to support looking backwards.
Comments
-
1 comment Created 3 months ago by onecrayonbugxFigure out why environmental variables are persistent, even after being deletedpotentialxIf you run a shell script, then delete a custom environmental variable in TEA preferences, then run the script again, the environmental variable will still be around. This isn't as it should be, particularly considering that the environmental variables are only supposed to stick around for one iteration of the script.
Comments
-
1 comment Created 2 months ago by onecrayonbugxTEA must be built on 10.5 to be compatible with both 10.5 and 10.6potentialx -
0 comments Created about 1 month ago by onecrayonimprovementxTrim actually isn't as intelligent as the docs claimpotentialxCurrently docs claim that mixed indentation and other whitespace will be handled intelligently, but it isn't. Need to figure out how to strip out spaces when using tabs, for instance, but leave the tabs.
Comments
-
4 comments Created 2 months ago by onecrayonimprovementxFind a way to access zen abbreviations using tab completionspotentialxWill likely need a script to parse the zen dictionary and output action XML for each abbreviation to be run as part of setup.py.
Need to look into whether I can access previous word as part of a tab trigger.
Original discussion thread: http://wiki.macrabbit.com/forums/viewreply/2901/
Comments
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…
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.
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!
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.
- Enable custom user actions in Actions->TEA->Preferences
-
0 comments Created 2 months ago by onecrayonimprovementxAdd a way for shell scripts to change the selected rangepotentialxI'm not sure how this would work or look, but it would be really helpful if shell scripts could change the selected range without modifying the document text.
See for instance http://wiki.macrabbit.com/forums/viewthread/482/
Comments
-
0 comments Created 5 months ago by onecrayonimprovementxAdd support for environment variables for TEA snippetspotentialxFor example, $E_FILENAME could be useful in snippets as well as shell scripts.
Comments
-
0 comments Created 6 months ago by onecrayonimprovementxAdd detection for XHTMLpotentialxCurrently, whatever is the default in the preferences is what is always used. I need to figure out a way to detect XHTML vs. HTML as often as possible, and only default to what's in preferences if nothing is detected.
Comments
-
1 comment Created 6 months ago by onecrayonimprovementxAdd language-customization for zen-coding snippetspotentialxFor instance, right now
html:xtgives you a document with a language of Russian instead; should be customizable.Comments
For 1.0, I've switched to using English (since it's more convenient for me personally, ethnocentric as it may be). However, something needs to change in Zen's internal architecture and logic to allow this to be easily set to arbitrary values based on the user's preferences.
This may involve forking zen and taking it down my own path; not sure how willing the zen folks will be to implement this kind of thing.
-
1 comment Created 7 months ago by onecrayonimprovementxAdd auto-indentation for multi-line text within snippetspotentialxCurrently only the first line of the text is indented the proper amount for a multi-line snippet.
Comments
I'm bumping this back to "potential" instead of a 1.0 feature because it's going to be somewhat tricky to implement. Covering scenarios such as mixed indentation, how to parse based on indentation of snippet vs. indentation of text, etc. are all going to make this more complicated than I originally thought.
-
1 comment Created 7 months ago by onecrayonfeaturexAdd ability to change menu titlepotentialxThe TEA->Toggle Actions menu item is confusing at best. At bare minimum I need to be able to flip between titles based on a boolean in the preferences.
Considering figuring out a way to make this useful for regular actions, too; maybe vary it based on the current syntax context?
Note to self: return None in order to leave title as default.
It is currently impossible from Python to default to the
<title>. Need to report to Jan that returning None does not cause the default to trigger.Comments
Now that I'm converting to Objective-C for the core classes, this is probably a possibility. Things I'd like to do:
- Vary title based on syntax-context
- Vary title based on selection-context
Question is how to do it in XML that isn't so verbose as to be useless?
-
0 comments Created 7 months ago by onecrayonfeaturexAdd Hard Wrap... commandpotentialxRequires a custom sheet.
Options:
- choose a character width (stored in preferences)
- prefix lines with character? (would be useful for custom Markdown commands)
- indent options? (flush, first line, lines other than first)
- should I replicate BBEdit's "paragraph fill" option?
Allowing the action to bypass the sheet would also be potentially useful, too.
Comments
-
0 comments Created 7 months ago by onecrayonfeaturexPaste and match indentationpotentialxNeed to check with Jan to see if this kind of thing is likely to show up in Espresso core, but if not a stop-gap "paste and match indentation" action would be a beautiful thing.
Comments
-
0 comments Created 6 months ago by onecrayonfeaturexIntegrate CocoaDialog to allow command-line scripts access to GUIpotentialxNeed to look into this a bit more, but CocoaDialog looks like a potentially excellent way to allow command-line scripts access to arbitrary GUI elements.
Comments
-
1 comment Created 6 months ago by onecrayonfeaturexAdd the ability for users to define custom FileActionspotentialx -
0 comments Created about 1 month ago by onecrayonfeaturexAdd Edit All Selections optionpotentialxTake the range from the first selection to the last selection, and replace the selected text with mirrored tab stops, then throw the whole thing back in the file as a snippet.
Comments











