I’ve fantasised about taking keyboard word selection further, I’d like the
same keyboard shortcut to do a little more if the word was already
>selected<.

Specifically I’d like it to attempt to expand to inside (then around) the
next closest pair of delimiters (<[{“"''"”}]>), a “selection expander” e.g.

before:
"Mary P>o<ppins"

after:
"Mary >Poppins<"

after:
">Mary Poppins<"

after:
>"Mary Poppins"<

and so on…

Some time ago I made a start on attempting this, but sadly didn’t get very
far.


On 1 December 2017 at 07:58, Christopher Stone <[email protected]>
wrote:

> Hey Folks,
>
> I'm trying to write some efficient AppleScript code to select the WORD the
> cursor is IN or next to (right or left).
>
> Examples would be having the cursor anywhere between the “>” & “<” symbols
> in the text below:
>
> ----------------------------------------------------------------
>
> >Now< is the time for all good men to come to the aid of their country
>
> >Supercalifragilisticexpialidocious< is obviously from “Mary Poppins” if
> you're of a certain age...
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
> >tempor<
>
> ----------------------------------------------------------------
>
> I've got some spaghetti code I don't like at the moment and thought I'd
> ask before continuing to reinvent the wheel.
>
> TIA.
>
> --
> Best Regards,
> Chris
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "[email protected]" 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to