--
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.
> 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
> 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
> 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.
>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