Thanks Roland,
I have not used AppleScript before - but it appears to be an ideal
solution in this case. I started by recording, then a little bit of
editing. I prefer to have the wrap around option turned off in this
case, and used a regular expression for finding whitespace-only lines.
Here's my version for the sake of completeness:
'next blank line' - assigned to control-option-down arrow
tell application BBEdit
find ^[[:space:]]*$ searching in (text 1 of window 1) options
{search mode:grep, starting at top:false, wrap around:false,
backwards:false, case sensitive:false, match words:false, extend
selection:false} with selecting match
end tell
'previous blank line' - assigned to control-option-up arrow
tell application BBEdit
find ^[[:space:]]*$ searching in (text 1 of window 1) options
{search mode:grep, starting at top:false, wrap around:false,
backwards:true, case sensitive:false, match words:false, extend
selection:false} with selecting match
end tell
Will.
On May 11, 6:26 pm, Roland Küffner medienmeis...@googlemail.com
wrote:
Hi, Will
you might consider recording an applescript and doing an appropriate search
to achieve this functionality. You can then assign a shortcut to that script.
Something like:
tell application BBEdit
find \\r\\r\\s* searching in (text 1 of window 1) options {search
mode:grep, starting at top:false, wrap around:true, case sensitive:false,
match words:false, extend selection:false} with selecting match
select insertion point after found object of result
end tell
Maybe you have to tweak the search pattern a little to your liking but it
might be what you are looking for.
Regards,
Roland
Am 11.05.2010 um 01:06 schrieb wallabadah:
Hi all,
Does anyone know of a keyboard shortcut for moving the cursor position
up or down to the next blank (or space/tab only) line? I know it's
possible to move to start/end of a file (command-up/down arrow), by a
page at a time (option up/down arrow) and obviously by a line at a
time.
I think this would be useful for moving around source files where
'blocks' of code are separated by blank lines. Perhaps it's possible
using one of the emacs key bindings?
cheers,
Will.
--
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.
--
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
athttp://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.
--
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.