Migrating from TextMate to BBEdit

272 views
Skip to first unread message

Konstantinos Pachnis

unread,
Jul 16, 2010, 8:47:39 AM7/16/10
to bbe...@googlegroups.com
Hello,

In TextMate there is feature Column Movement / Typing that you can select a column data and then start typing to type on each line. Can this be done in BBEdit?
When I select a string (word, line, etc…) can I enclose it in between parentheses, quotes, square brackets, etc… by just typing the character?
Using a language mapping (ruby, c++, etc…), is it possible when opening a parentheses, square bracket, etc… to insert the corresponding close character?
What about smart indentation?

Thanks,
Konstantinos

hkrems

unread,
Jul 26, 2010, 9:03:50 AM7/26/10
to BBEdit Talk
On 16 Jul., 14:47, Konstantinos Pachnis <konstantinos....@gmail.com>
wrote:
forget it. that's why I use bbedit for search&replace (old style
dialogie) and write most of the code in TextMate.

regards
Harald

Konstantinos Pachnis

unread,
Jul 26, 2010, 5:47:10 PM7/26/10
to bbe...@googlegroups.com
I see :)

Thanks a lot Harald.

BBEdit people, any plans for supporting those features in the next version?
Please, don't make me regret the €100 I paid!

Regards,
Konstantinos 



--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbe...@googlegroups.com
To unsubscribe from this group, send email to
bbedit+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "sup...@barebones.com" rather than posting to the group.

Toadling

unread,
Jul 26, 2010, 9:54:20 PM7/26/10
to bbe...@googlegroups.com
On Jul 16, 2010, at 5:47 AM, Konstantinos Pachnis wrote:

> In TextMate there is feature Column Movement / Typing that you can select a column data and then start typing to type on each line. Can this be done in BBEdit?

I think the closest you'll get to that in BBEdit is the "Text -> Prefix/Suffix Lines..." command. Assign a key combination to it and trigger it to bring up a sheet with options to add or remove prefixes and suffixes for all selected lines.

It's maybe not as fancy as the TextMate feature, but in some ways, I slightly prefer the BBEdit approach. It's a bit more intuitive, I think. I'm more likely to get what I wanted on the first try. ;-)


> When I select a string (word, line, etc…) can I enclose it in between parentheses, quotes, square brackets, etc… by just typing the character?
> Using a language mapping (ruby, c++, etc…), is it possible when opening a parentheses, square bracket, etc… to insert the corresponding close character?

The best way I've found to simulate this behavior is to use BBEdit's clippings feature. I created a bunch of clippings to insert the opening and closing characters with the cursor positioned between them (and any other text I want). I then assigned keyboard shortcuts to them. For example, Control-Command-[ gives me a pair of square brackets with my cursor in between ready for input.

Again, maybe not as fancy as TextMate's auto-matching pairs, but I do find I get fewer accidental, unwanted closing parens and brackets with the clipping method in BBEdit.


> What about smart indentation?

I'm not exactly sure what you mean here. However, the Preferences -> Editor Defaults -> Auto-indent option might help. Preferences -> Editing: General -> Soft wrapped line indention also might be of some use.

-Dennis

Roland Küffner

unread,
Jul 27, 2010, 3:34:54 AM7/27/10
to bbe...@googlegroups.com

Am 27.07.2010 um 03:54 schrieb Toadling:

> On Jul 16, 2010, at 5:47 AM, Konstantinos Pachnis wrote:
>
>> In TextMate there is feature Column Movement / Typing that you can select a column data and then start typing to type on each line. Can this be done in BBEdit?
>
> I think the closest you'll get to that in BBEdit is the "Text -> Prefix/Suffix Lines..." command. Assign a key combination to it and trigger it to bring up a sheet with options to add or remove prefixes and suffixes for all selected lines.

> Additional you can make a rectangular selection in BBEdit (hold Alt while selecting, make sure Soft Wrap is turned off) and paste the content of the clipboard to each line at the selected position. Again, this is not as fancy as in TextMate but does the job.


>> When I select a string (word, line, etc…) can I enclose it in between parentheses, quotes, square brackets, etc… by just typing the character?
>> Using a language mapping (ruby, c++, etc…), is it possible when opening a parentheses, square bracket, etc… to insert the corresponding close character?
>
> The best way I've found to simulate this behavior is to use BBEdit's clippings feature. I created a bunch of clippings to insert the opening and closing characters with the cursor positioned between them (and any other text I want). I then assigned keyboard shortcuts to them. For example, Control-Command-[ gives me a pair of square brackets with my cursor in between ready for input.
>
> Again, maybe not as fancy as TextMate's auto-matching pairs, but I do find I get fewer accidental, unwanted closing parens and brackets with the clipping method in BBEdit.


Be sure to check out the Clipping feature in the manual. It is one of BBEdit's best features. You would miss a lot of functionality that makes BBEdit such a decent editor. For example the syntax for adding parenthesises to a selection is:
#selstart#(#select#)#selend#
With an assigned keyboard shortcut this is pretty nice. You can further tweak BBEdit with little applescripts that make your editing life easier. One of my favorites is "Select Word" (by John Gruber if I remember that right):

tell application "BBEdit"
tell window 1
set sel_offset to characterOffset of selection
set cur_line to startDisplayLine of selection
try
select (last word of display_line cur_line ¬
whose characterOffset ≤ sel_offset)
on error
select display_line cur_line
end try
end tell
end tell


This group is a good ressource for little bits. You'll find a lot of solution to specific problems. Searching the archives is strongly recommended.

Happy editing
Roland

Konstantinos Pachnis

unread,
Jul 28, 2010, 1:29:38 PM7/28/10
to bbe...@googlegroups.com
Thanks a lot guys. I will give all these a try and I believe I will find my way around.

Regards,
Konstantinos 


KG

unread,
Mar 18, 2012, 2:16:39 PM3/18/12
to bbe...@googlegroups.com
In the spirit of sharing again, I've written some macros with Keyboard Maestro that try to emulate Textmate's Auto-pairing / matching. 

Clark Goble

unread,
Mar 18, 2012, 10:13:10 PM3/18/12
to bbe...@googlegroups.com

On Mar 18, 2012, at 12:16 PM, KG wrote:

> In the spirit of sharing again, I've written some macros with Keyboard Maestro that try to emulate Textmate's Auto-pairing / matching.
>
> Details in my blog post : http://journal.kaush.co/453/true-textmate-like-auto-pairing-with-bbedit-using-keyboard-maestro

I'd put up something similar a few months back using Quickeys but I wouldn't advise purchasing Quickeys until the developer situation over there is resolved. (The old developer quit and they are looking for a new one to take over the code but I haven't heard if they've had any luck)

I kind of liked Quickeys because you could have a floating pallet of macros as well as something like textexpander but execute macros as well as expand text. It made for some really cool stuff you could write. Too bad the software is in limbo.

Sumtingwong

unread,
Mar 19, 2012, 12:12:34 AM3/19/12
to BBEdit Talk
One of the best helpers I have found out there is Butler. Many
different options for macros as well as a ton of other stuff. Free,
but well worth the $20 support.

Patrick Woolsey

unread,
Mar 19, 2012, 8:33:12 AM3/19/12
to bbe...@googlegroups.com
Sumtingwong <sumti...@me.com> sez:

>One of the best helpers I have found out there is Butler. Many
>different options for macros as well as a ton of other stuff. Free,
>but well worth the $20 support.
>

I've heard good things about Butler, though (FWIW :-) I'm a LaunchBar and
Keyboard Maestro user myself.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048

Reply all
Reply to author
Forward
0 new messages