1 of 2
1
text.sugar adds some of TextMates functionality to Espresso
Posted: 18 February 2010 06:06 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15

Hi everybody. With the help of Ian Becks TEA and Spice I have put together a sugar that adds some of TextMates text bundle functionality to Espresso (Join Lines, Duplicate Selection, Delete Line, Move Lines up/down). I have also added snippets to get autopairing of brackets and quotes. Unfortunately it is not possible to get the full functionality of autopairing like in TextMate but I am sure, this will be added to Espresso in a future update anyway.

I thought it might come in handy for some of you, so I have put it up on github:

http://github.com/minimalweb/text.sugar-for-Espresso

For the text actions to work, you also need to install Ians Spice sugar:

http://onecrayon.com/spice/

The text.sugar will add a new “Text”-submenu in the actions menu, where you can also lookup the shortcuts.

Profile
 
 
Posted: 18 February 2010 10:07 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  26
Joined  2009-04-08

Thanks for your work Maurice.
I’ll start playing with it today.

Profile
 
 
Posted: 19 February 2010 12:39 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  4
Joined  2009-04-24

This is great and was much needed for me.  Thank you!

Profile
 
 
Posted: 08 September 2010 01:00 PM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15

I have just checked in some changes on github that provide better autopairing of quotes and brackets. Enjoy!

Profile
 
 
Posted: 15 September 2010 05:53 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  3
Joined  2010-09-12

Nice, love this.

Profile
 
 
Posted: 21 September 2010 01:35 PM   [ Ignore ]   [ # 5 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-19

I like this but I noticed that it hurt the responsiveness of Espresso to keyboard actions (typing, moving insertion point around, etc) quite a bit. Removing the sugar fixed the problem. I don’t know why this would be.

Profile
 
 
Posted: 30 November 2010 06:45 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  1
Joined  2010-11-30

Hi all, can you tell me how to install this please?

EDIT:

Don’t worries, I’ve found the sugar file in here,

http://fileability.net/coffee/sugar/Text

=)

Profile
 
 
Posted: 30 November 2010 07:26 AM   [ Ignore ]   [ # 7 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15

There you go. If you have any further questions, suggestions or comments, please let me know.

Profile
 
 
Posted: 30 November 2010 07:32 AM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15
donut - 21 September 2010 01:35 PM
I like this but I noticed that it hurt the responsiveness of Espresso to keyboard actions (typing, moving insertion point around, etc) quite a bit. Removing the sugar fixed the problem. I don’t know why this would be.

I know what you’re talking about. I am having the same issues from time to time. But I experience this a little bit different: If you start Espresso, everything works fine, but leaving it open for a while or after working for some hours it tends to become sluggish. Restarting resolves this usually. I think it’s a general problem and is not related specifically to the text.sugar, although i think it gets worse the more sugars you have installed. Anyway, thanks for the feedback!

Profile
 
 
Posted: 01 December 2010 04:58 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  23
Joined  2010-01-01

Are some of your functions not already bundled with espresso (move lines up down) ?

 Signature 

INI.sugar

Profile
 
 
Posted: 03 December 2010 04:19 PM   [ Ignore ]   [ # 10 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15

Not that I know of. Especially those two were the main reason I built the sugar.

Profile
 
 
Posted: 03 December 2010 04:24 PM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  23
Joined  2010-01-01

Well click “Actions” menu and you will find “Move Line Down” and “Move Line Up” (without third party sugars installed)...

 Signature 

INI.sugar

Profile
 
 
Posted: 03 December 2010 04:47 PM   [ Ignore ]   [ # 12 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15

Not for me. Did you restart Espresso after removing the sugars?

Profile
 
 
Posted: 04 December 2010 06:17 AM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  23
Joined  2010-01-01

You’re right, it was Spice Sugar by Ian Beck. I did not see it added these functions.

My apologies :)

 Signature 

INI.sugar

Profile
 
 
Posted: 26 March 2011 05:23 AM   [ Ignore ]   [ # 14 ]
Newbie
Rank
Total Posts:  3
Joined  2010-04-07

I just cannot get this to work! I have installed the latest version spice.sugar and the latest version of text.sugar, but nothing seems to work. Are there any other conflickting sugars?

Profile
 
 
Posted: 28 March 2011 03:12 AM   [ Ignore ]   [ # 15 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2010-02-15
Simon Banyard - 26 March 2011 05:23 AM
I just cannot get this to work! I have installed the latest version spice.sugar and the latest version of text.sugar, but nothing seems to work. Are there any other conflickting sugars?

Not that I know of. How did you install the sugars? When you open the “Actions” menu from the menu bar, is there a menu item called “Text”?

Profile
 
 
   
1 of 2
1