Thanks! The AppleScript did exactly what I wanted.
On Tuesday, February 20, 2024 at 2:54:20 AM UTC-6 jj wrote:
> You could do this with a bit of AppleScript:
>
> *try*
>
> *tell* *application* "BBEdit"
>
> *tell* *first* *window*
>
> *set* vLine *to* startLine *of* selection
>
> *tell* *first* *document*
>
> *set* vResult *to* *find* "^\\h*" searching in *its* *line*
> vLine options {search mode:*grep*, wrap around:*false*, starting at top:
> *true*}
>
> *if* vResult's found *then*
>
> *if* vResult's found text *is* "" *then*
>
> *select* *insertion point* *before* *its* *line*
> vLine
>
> *else*
>
> *select* *insertion point* *after* *last*
> *character* *of* vResult's found object
>
> *end* *if*
>
> *end* *if*
>
> *end* *tell*
>
> *end* *tell*
>
> *end* *tell*
>
> *on* *error* aMessage
>
> *display alert* aMessage
>
> *end* *try*
>
> HTH
>
> Jean Jourdain
> On Monday, February 19, 2024 at 11:32:01 PM UTC+1 Marshall Clow wrote:
>
>> On Feb 19, 2024, at 1:30 PM, KevinC <[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > Is there a shortcut for moving to the start of an indented line (to
>> just before the first non-blank character)?
>> >
>> > In most other text editors that I've used, Cmd+Left Arrow does this.
>> >
>>
>> > However, in BBEdit, it seems to always move it to the start of the
>> actual line. Is there a setting that I'm missing somewhere?
>>
>> Control-left arrow followed by option-right arrow is what I use.
>> I don’t know if there’s a single-keystroke version.
>>
>> — Marshall
>>
>>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/8bd1a7f0-8add-48a4-980a-5189347f5c34n%40googlegroups.com.