On Aug 08, 2011, at 02:04, oliver wrote:
> I'd love to have this work with any level of indentation, even none. Is that 
> even possible?
> Something like: ^[ \t]*(.+)$
______________________________________________________________________

Hey Oliver,

Done.  :)

The non-greedy operator is not strictly necessary, but it picks the speed up 
just a trifle.

-ccs


tell application "BBEdit"
  try
    tell text of front text window
      set lineOfInsertionPoint to line (startLine of selection)
      set findReco to find "\\S+.+?$" searching in lineOfInsertionPoint ¬
        options {search mode:grep} with selecting match
    end tell
  on error errMsg number errNum
    set sep to "=============================="
    set e to sep & return & "Error: " & errMsg & return & sep & return ¬
      & "Error Number: " & errNum & return & sep
    beep
    display dialog e
  end try
end tell

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to