On Sep 16, 2014, at 13:37, Nick Matzke <[email protected]> wrote:
> However, most other programmers write their variables like this:
> 
> get.human.DNA
> sampled.DNA
> 
> when I double-click on these, I only get a selection up to the period.  E.g., 
> just "sampled" or just "DNA". Is there a way to change this behavior, and get 
> the whole word, including the period?
______________________________________________________________________

Hey Nick,

I looked in the expert settings and don't find a means to change the 
double-click behavior, but if you're willing to use a keyboard shortcut then 
AppleScript can come to your rescue.

Put the cursor in or next-to a word and hit your keyboard shortcut.

--
Best Regards,
Chris

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone <[email protected]>
# Task: Select Word
# dMod: 2014/09/16 16:59
-------------------------------------------------------------------------------------------
tell application "BBEdit"
  tell front text window's text
    set startSel to characterOffset of found object of (find "\\s|^" options 
{search mode:grep, backwards:true})
    set endSel to characterOffset of found object of (find "\\s|$" options 
{search mode:grep, backwards:false})
    # select character startSel
    if (get contents of character startSel) is in {" ", " ", "  ", return} then
      set startSel to startSel + 1
    end if
    select (characters startSel thru (endSel - 1))
  end tell
end tell
-------------------------------------------------------------------------------------------

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

Reply via email to