A few days ago, I came across this:

http://olivertaylor.net/bbedit_movement/

Then I wrote this:

http://www.betalogue.com/2012/08/14/bbedit-paragraphs/

I was able to adapt a couple of the scripts to extend the selection 
paragraph by paragraph. But while the script to extend downwards works 
fine, the script to extend upwards deselects each paragraph as it selects 
the next one. I can't figure out why, and I don't know/understand enough 
about the kind of grep used in the scripts to determine if the problem can 
be fixed.

It would be great if I could finally use option-shift-Up/Down to extend the 
selection paragraph by paragraph. 

I have other, simpler scripts that sort of work for this, but the 
grep-based approach is obviously the most effective. If only I could make 
it work...

The script is as follows:

tell application "BBEdit"
        find "(?< =\\r^\\r)(?=[^\\r])" searching in text of front text window 
options {search mode:grep, starting at top:false, wrap around:false, 
backwards:true, case sensitive:false, match words:false, extend selection:true} 
with selecting match
end tell

Like I said, each action extends the selection upwards, but also deselects 
the current selection, which is NOT the desired behaviour.

Any suggestions?

TIA

Pierre

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



Reply via email to