Hey Chris,

Wonderful on all counts.

¡Mil gracias!

Alfredo

> On Sep 9, 2018, at 12:57 PM, Christopher Stone <[email protected]> 
> wrote:
> 
> On 09/08/2018, at 12:34, F. Alfredo Rego <[email protected] 
> <mailto:[email protected]>> wrote:
>> I’ll study John Gruber’s notes and I’ll implement variatio(n) on his 
>> theme(s).
> 
> 
> Hey Alfredo,
> 
> You can also use BBEdit find function via AppleScript to get very 
> sophisticated.
> 
> --------------------------------------------
> 
> tell application "BBEdit"
>     tell front text window's text
>         set findRec to find "public\\S+" options ¬
>             {search mode:grep ¬
>                 , starting at top:false ¬
>                 , case sensitive:false ¬
>                 , backwards:false ¬
>                 , returning results:true ¬
>                 } ¬
>                 with selecting match
>     end tell
> end tell
> 
> --------------------------------------------
> 
> I've used AppleScript's continuation character (¬) to make the option list 
> vertical for easier reading, although because of the way the silly 
> AppleScript compiler works it's not exactly pretty.
> 
> You can find forward and backward from the current cursor location and then 
> make a selection based on your findings.
> 
> Gruber's script is elegantly simple for what it does, but you can go way 
> beyond that if desired.
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> 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 
> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

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

Reply via email to