Am 5. Apr. 2019, 20:30 +0200 schrieb J Spellings <[email protected]>:
> Is there a keyboard shortcut (other than arrow keys) to smoothly move to the
> outside of an auto-closed delimiter?
>
> For example, I begin typing "(x=3" and BBedit supplies the closing ")"
> automatically. How do I jump the cursor outside the closing ")" without
> either typing the closing ")" (which defeats the purpose of the auto complete
> in the first place) or using the arrow keys?
Well, one could argue that typing „)“ would be the ideal shortcut for this
endeavor - easy to type, easy to remember. It is my experience that I’m not
leaving every bracket to the right, so I would disagree, that the feature has a
„zero-effect“. It is a great help when scaffolding complex statement structures
and get in danger of getting lost in the count of open bracket structures (JSON
I’m looking at you).
That said, BBEdit (of course) offers ways to tweek it to your liking. The
easiest way may be a small Applescript that resembles the search for „closing
characters“. Something like this should work. Save it to your Script Folder and
give it a shortcout in the Preferences:
tell application „BBEdit"
find "\\)|}|\\]|'|\"" searching in (front text window) options {search
mode:grep, starting at top:false, wrap around:false, backwards:false, case
sensitive:false, match words:false, extend selection:false} with selecting match
select insertion point after found object of result
end tell
Regards
Roland
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.