auto-pairing brackets?

1,282 views
Skip to first unread message

Vlad Ghitulescu

unread,
Oct 30, 2014, 6:39:01 PM10/30/14
to bbe...@googlegroups.com
Hello!


Is there a way / setting / script (!) that allows me to have auto-pairing brackets in BBEdit 10.5? 

I would like to open a bracket and - via this still not discovered setting - to have the closing bracket and the cursor waiting for me between the two.


Thanks,
Vlad

Ron Fleckner

unread,
Oct 30, 2014, 7:33:56 PM10/30/14
to bbe...@googlegroups.com
Try out AutoPairs, a System Preferences prefPane. Very good and still works on 10.10.10
<http://www.jwwalker.com/pages/autopairs.html>

Ron
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "sup...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
> ---
> You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
> To post to this group, send email to bbe...@googlegroups.com.

Maarten Sneep

unread,
Oct 30, 2014, 7:35:59 PM10/30/14
to bbe...@googlegroups.com

> On 31 Oct 2014, at 24:29, Ron Fleckner <ronfl...@ozemail.com.au> wrote:
>
> Try out AutoPairs, a System Preferences prefPane. Very good and still works on 10.10.10
> <http://www.jwwalker.com/pages/autopairs.html>

Are we already at version XXX?

Maarten

Ted Burger

unread,
Oct 30, 2014, 10:15:54 PM10/30/14
to bbe...@googlegroups.com
I second Auto Pairs. I use it every where for as long as I can remember.
Ted

Sent from my iPad

Ron Fleckner

unread,
Oct 30, 2014, 10:56:30 PM10/30/14
to bbe...@googlegroups.com
> —

That would be 30. Or three big kisses!


Vlad Ghitulescu

unread,
Oct 31, 2014, 1:29:56 AM10/31/14
to bbe...@googlegroups.com
Thanks! At least I haven't missed any setting in the preferences ;-)

I've downloaded AutoPairs and - from the description - it seem to enable everything I want, but… I couldn't activate the Universal Access for it! It looks like a bug that affects 10.10 (two big kisses ;-), Witch and Keyboard Maestro have also the problem, although I was able to activate them by dragging them onto the Universal Access pane. Unfortunately I couldn't find AutoPairs in ~/Library/PreferencePanes 

Any idea?


Thanks again!
Vlad

Vlad Ghitulescu

unread,
Oct 31, 2014, 1:56:11 AM10/31/14
to bbe...@googlegroups.com
(it looks like my answer have disappeared, so I post it again - sorry if it comes twice)

Thanks for AutoPairs. I wasn't be able to install it though due to the current bug with the Universal Access in Yosemite (Witch and Keyboard Maestro has this too :-((()

Do you have a workaround for this?

Thanks again!
Vlad

Am Freitag, 31. Oktober 2014 03:56:30 UTC+1 schrieb Ron Fleckner:

Ron Fleckner

unread,
Oct 31, 2014, 9:12:38 PM10/31/14
to bbe...@googlegroups.com
Sorry I can’t really help you. I’ve had AutoPairs for some years and it’s always just worked with new computers and system software updates and new versions of OS X.

I’ve just looked at Privacy>Accessibility in sys prefs and AutoPairs isn’t even there.

Does AutoPairs actually ask to have special privileges like Keyboard Maestro?

Ron

Vlad Ghitulescu

unread,
Nov 1, 2014, 6:41:13 PM11/1/14
to bbe...@googlegroups.com
Yes, it does, every single time, even after explicitly allowing it! :-(
The workaround I've found is using TextExpannder-Snippets only for BBEdit ( expands to () and puts the cursor in the middle etc.). It has a little lag but it works…
Why doesn't BBEdit has this after all this years? :-)

Dan Ross

unread,
Nov 3, 2014, 6:28:50 PM11/3/14
to bbe...@googlegroups.com
I'm a bit curious why auto-closing isn't at least a preference as well.

Luca

unread,
Nov 4, 2014, 2:12:21 AM11/4/14
to bbe...@googlegroups.com

I do something like that that with clippings within BBEdit:

{#select##insertion#}
[#select##insertion#]
(#select##insertion#)
"#select##insertion#"

I then assign a keyboard shortcut to my favourite clippings.

Gianluca

William Reveal

unread,
Nov 4, 2014, 9:30:17 AM11/4/14
to bbe...@googlegroups.com
I guess I would like to chime in here as a counter-balance. I get very frustrated with auto-closing parens, brackets, etc. Although they are very handy at times, using a tool such as TextExpander or BBE clippings allow me to have complete control over when they auto complete. Otherwise I find myself constantly deleting the closing bracket etc. when using other apps. It is one of the pluses of using BBEdit for me. And yes, my finger memory is such that when I type a { the } and ← is almost automatically typed as well except when I have reason not to have the closing whatever. I can understand having a preference but quite frankly, this is Bare Bones Software, not Every Bells and Whistles Software <grin>.

Christopher Stone

unread,
Nov 4, 2014, 9:47:49 AM11/4/14
to BBEdit-Talk
On Nov 03, 2014, at 17:28, Dan Ross <d...@rosspixelworks.com> wrote:
I'm a bit curious why auto-closing isn't at least a preference as well.
______________________________________________________________________

Hey Dan,

<shrug>

Send a feature suggestion to the support address.  The more official interest they get the more likely they are to add a feature.

Script Debugger has does auto-pairing, and one of the things I like about it is that it will enclose the-selection with brackets, braces, or parentheses in addition to doing a simple pairing.

Luca's suggestion will do the same, although you have to remember your keyboard shortcuts.

Another possibility is AppleScript with which you can get quite fancy if you're so inclined.

--
Best Regards,
Chris

Dan Ross

unread,
Nov 4, 2014, 10:31:30 AM11/4/14
to bbe...@googlegroups.com
Good call, Chris. I'll submit a feature request.

And I agree that it should be an opt-in preference, William. There are times that I'm very glad that auto-closing isn't there. But I think it's a worthwhile option to have.

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

---
You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/JTOhsTXQREs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages