Am 19.01.2011 um 00:09 schrieb Watts Martin:

> I'm working on a little AppleScript that replicates a trivial but
> cherished feature of another editor -- being able to press Ctrl-Return
> (or whatever) and having it start the new line with an appropriate
> indent.
> 
> My script does the right thing now as long as there's nothing on the
> line below where it's executed, but what I'd really like to have
> happen is the equivalent of the Open Line, i.e., when you invoke the
> script at the end of a line that's followed by another one, the second
> line is moved down:
> 
> text here
>    |
> text here

I'm not quite sure if I understood the wished behavior right, but how about 
doing this with a simple clipping (which can easily get it's own keyboard 
shortcut)?

Just create a file with a line break and two placeholders in it:
--- start of file ---

#INDENT##INSERTION#
--- end of file ---

If you didn't want the indentation, simply delete the #INDENT# placeholder.

regards, Roland

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