On Aug 21, 2012, at 14:10, Pierre Igot <[email protected]> wrote:
> I should add: I use Keyboard Maestro for this because BBEdit does not allow
> me to assign the option-shift-Up and option-shift-Down shortcuts to scripts.
______________________________________________________________________
Hey Pierre,
Okay. I'm glad you mentioned this, since it's very germane to the problem.
This slightly modified script should fix the find-backwards problem.
I assume you have the Keyboard Maestro shortcut set to 'Key Pressed' - yes?
------------------------------------------------------------------------------------------------
tell application "BBEdit"
tell text of front text window
if (characterOffset of selection) > 1 then
set endMarker to (characterOffset of selection) + (length of selection) -
1
set fRec to find "[^\\r]+" options {search mode:grep, starting at
top:false, wrap around:false, backwards:true, case sensitive:false, match
words:false} with extend selection
set startmarker to characterOffset of fRec's found object
select (characters startmarker thru endMarker)
end if
end tell
end tell
------------------------------------------------------------------------------------------------
--
Best Regards,
Chris
--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>