Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 20:00, Dj mailto:futurevint...@gmail.com>> wrote:
> Hello, my father is hard of hearing and I'd like to send him some closed 
> caption files so he can read the content like you would a book. Is there an 
> easy way to strip data out of the below example so it's only text, and not 
> timestamps and tags?


Hey Dj,

BBEdit already has a command to convert HTML to Text, so part of that's easy.

You can do it from BBEdit > MenuBar > MarkUp > Utilities > Translate HTML to 
Text

Or more conveniently for automating you can do it with AppleScript.

Then let's add in a little find/replace, and Poof!  Job done.

When trying to do this sort of thing often best to have a look around Google 
first.

Google Search:

regex how to remove html tags

The second hit is pretty good:

https://www.regextester.com/93515 

I'm not using that, since I'm letting BBEdit do the work for me in this case – 
but I have used that pattern in other cases.

--
Take Care,
Chris


# Auth: Christopher Stone
# dCre: 2019/01/18 23:14
# dMod: 2019/01/18 23:14 
# Appl: BBEdit
# Task: Convert HTML to Text and Use RegEx to Remove SubTitle Stamps.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Convert, @HTML, @Text, @RegEx, 
@Remove, @SubTitle, @Stamps


tell application "BBEdit"
tell front text window

translate html to text entity conversion true ¬
tag removal true ¬
paragraph conversion true ¬
create new document true ¬
without selection only

tell its text
replace "^(\\d{4}|\\d{2}:\\d{2}:.+)\\R?" using "" options {search 
mode:grep, case sensitive:false, starting at top:true}
end tell

end tell
end tell



-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 20:02, Cecily Walker mailto:cecily.wal...@gmail.com>> wrote:
> When I tried this, I got an error that read: "This pattern cannot be used, 
> because PCRE reported an error: quantifier does not follow a repeatable item 
> (109)"


Hey Cecily,

That's odd.  How are you accessing the post on BBEdit-Talk?

Via email client or via the web (and which browser)?

I'm wondering if your medium added some nasty invisible characters to the 
pattern.

Paste into BBEdit and show invisibles to look.

Use the Zap Gremlins feature to replace oddball characters with a bullet 
character, so you can visualize them.

> This is the one that finally worked!

Das ist gut.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Cecily Walker

Hi Christopher, 

On Friday, January 18, 2019 at 4:22:29 PM UTC-8, Christopher Stone wrote

>
> I tend to write patterns like that this way:
>
> ^ {3}
>
> OR
>
> ^[ ]{3}
>

When I tried this, I got an error that read: "This pattern cannot be used, 
because PCRE reported an error: quantifier does not follow a repeatable 
item (109)" 

>
> Surrounding the space with a class helps make it pop out when you read it.
>
> {3} is an enumerator that means 3 of the character or group before it.
>
> I have the text of a recipe file that was formerly a numbered list (HTML). 
> When I copied the text, it retained the spaces. I'd like to remove the 
> spaces at the beginning of every line. What is the correct pattern to make 
> this happen? 
>
>
> What I'd probably start with is something more generic:
>
> ^\h+|\h+$
>

This is the one that finally worked! Thanks so much, Christopher. 

Cheers,
Cecily

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Bruce Van Allen

Here's a place to start, using our friend BBEdit's powers.

I copied the sample you provided below into a new BBEdit doc, 
and then chose the Menu Command Markup -> Utilities -> Translate 
HTML to Text, with Remove Tags and Convert Paragraphs checked 
and Convert HTML Entities un-checked. That yielded:


1092
00:40:25,710 --> 00:40:29,220
the kid has no idea what you mean

1093
00:40:27,119 --> 00:40:31,019
because you don't know what you mean but

1094
00:40:29,219 --> 00:40:33,149
you mean something like well don't be a

... etc

Now your job is much easier to handle with pattern-matching in 
the Find/Replace dialog, especially if the numbers and times 
above each dialog line are as consistent as in your sample - 
maybe just delete any line starting with a digit.


HTH




On 1/18/19 at 6:00 PM, futurevint...@gmail.com (Dj) wrote:
Original text is like below and I'm trying to fetch* only the 
the spoken/text elements so they sit next to each other without 
gaps*. Is this a multi-part operation, or is it possible with 
one expression? Thanks!


1092
00:40:25,710 --> 00:40:29,220
the kid has no idea what you mean

--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Cecily Walker

Hi Joe,

That was the first thing I tried, but it didn't work. Thanks for the 
suggestion!


On Friday, January 18, 2019 at 1:41:45 PM UTC-8, Joe Richardson wrote:
>
> Try ^(space)(space)(space) for grep search, where (space) is a space not 
> the words, and empty replace.
>
> Cheers,
> Joe
>
> On Fri, Jan 18, 2019 at 4:02 PM Cecily Walker  > wrote:
>
>> Hi everyone, 
>>
>> I'm really struggling with Grep and trying to write a pattern that 
>> deletes 3 spaces at the beginning of each line. I have the text of a recipe 
>> file that was formerly a numbered list (HTML). When I copied the text, it 
>> retained the spaces. I'd like to remove the spaces at the beginning of 
>> every line. What is the correct pattern to make this happen? 
>>
>> Thanks for the help!
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or need technical support, please email
>> "sup...@barebones.com " rather than posting to the group.
>> Follow @bbedit on Twitter: 
>> --- 
>> 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 bbedit+un...@googlegroups.com .
>> To post to this group, send email to bbe...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/bbedit.
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Jean-Christophe Helary
I would use 2 expressions, one for the 2 first lines that seem to have a 
standard format, and one for the tags since their number seems to be arbitrary.

The first expression would be something like this:
search for :
\d+\r\d\d:\d\d:\d\d,\d\d\d --> \d\d:\d\d:\d\d,\d\d\d\r

replace with nothing

That way you get rid of the ID and time codes:

the kid has no idea what you mean

because you don't know what you mean but

you mean something like well don't be a

pain in the neck don't be a 
diva don't

be a don't be narcissistic and something

like that but 
you actually mean

something really important what you mean

And the second one would be:
search for
<[^>]+>

replace with nothing

And the result is:

the kid has no idea what you mean

because you don't know what you mean but

you mean something like well don't be a

pain in the neck don't be a diva don't

be a don't be narcissistic and something

like that but you actually mean

something really important what you mean


Jean-Christophe 
> On Jan 19, 2019, at 11:00, Dj  wrote:
> 
> Hello, my father is hard of hearing and I'd like to send him some closed 
> caption files so he can read the content like you would a book. Is there an 
> easy way to strip data out of the below example so it's only text, and not 
> timestamps and tags?  I've been failing trying to come up with an expression 
> the last few hours 
> 
> Original text is like below and I'm trying to fetch only the the spoken/text 
> elements so they sit next to each other without gaps. Is this a multi-part 
> operation, or is it possible with one expression? Thanks!
> 
> 1092
> 00:40:25,710 --> 00:40:29,220
> the kid has no idea what you mean
> 
> 1093
> 00:40:27,119 --> 00:40:31,019
> because you don't know what you mean color="#CC"> but
> 
> 1094
> 00:40:29,219 --> 00:40:33,149
> you mean something like well don't be a
> 
> 1095
> 00:40:31,019 --> 00:40:35,369
> pain in the neck don't be 
> a diva don't
> 
> 1096
> 00:40:33,150 --> 00:40:36,930
> be a don't be narcissistic and something
> 
> 1097
> 00:40:35,369 --> 00:40:39,059
> like that but 
> you actually mean
> 
> 1098
> 00:40:36,929 --> 00:40:42,089
> something really important what you mean
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter:  >
> --- 
> 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 bbedit+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to bbedit@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Dj
Hello, my father is hard of hearing and I'd like to send him some closed 
caption files so he can read the content like you would a book. Is there an 
easy way to strip data out of the below example so it's only text, and not 
timestamps and tags?  I've been failing trying to come up with an 
expression the last few hours 

Original text is like below and I'm trying to fetch* only the the 
spoken/text elements so they sit next to each other without gaps*. Is this 
a multi-part operation, or is it possible with one expression? Thanks!

1092
00:40:25,710 --> 00:40:29,220
the kid has no idea what you mean

1093
00:40:27,119 --> 00:40:31,019
because you don't know what you mean but

1094
00:40:29,219 --> 00:40:33,149
you mean something like well don't be a

1095
00:40:31,019 --> 00:40:35,369
pain in the neck don't 
be a diva don't

1096
00:40:33,150 --> 00:40:36,930
be a don't be narcissistic and something

1097
00:40:35,369 --> 00:40:39,059
like that but 
you actually mean

1098
00:40:36,929 --> 00:40:42,089
something really important what you mean

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Another Applescript problem

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 16:57, Dante Majorana mailto:the.d@gmail.com>> wrote:
> My goal is to delete the same PARAGRAPHS in a series of TXT files
> 
> The paragraphs I need to delete are always the same
> 
> Beginning from par at line 9, then . line 7 then line 3


Hey Dante,

You can do that like this:


tell application "BBEdit"
tell front text window
delete line 9
delete line 7
delete line 3
end tell
end tell


Or like this:


tell application "BBEdit"
tell front text window
delete line 3
delete line (7 - 1)
delete line (9 - 2)
end tell
end tell


Or you can use a text filter like this:

#!/usr/bin/env bash

sed '
3d
7d
9d
'

The text filter is a bit more efficient, because it does everything at once – 
and therefore undo is only 1 step instead of 3.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 14:45, Cecily Walker mailto:cecily.wal...@gmail.com>> wrote:
> I'm really struggling with Grep and trying to write a pattern that deletes 3 
> spaces at the beginning of each line.


Hey Cecily,

I tend to write patterns like that this way:

^ {3}

OR

^[ ]{3}

Surrounding the space with a class helps make it pop out when you read it.

{3} is an enumerator that means 3 of the character or group before it.

> I have the text of a recipe file that was formerly a numbered list (HTML). 
> When I copied the text, it retained the spaces. I'd like to remove the spaces 
> at the beginning of every line. What is the correct pattern to make this 
> happen? 


What I'd probably start with is something more generic:

^\h+|\h+$

^  ==  Start of line
\h ==  Horizontal whitespace
+  ==  One or more
|  ==  OR
\h ==  Horizontal whitespace
+  ==  One or more
$  ==  End of line

This will strip leading and trailing whitespace from each line.

Only when I have cases where there's other spacing I need to keep will I get 
specific like the first couple of patterns.

I have BBEdit Text Filters written that do many of these jobs, and a couple of 
keystrokes gets me to them.

I also have many saved regular expressions in Typinator, so I have quick access 
to them.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: How to Create Finder Folders from BBEdit Text List

2019-01-18 Thread Christopher Stone
On 01/16/2019, at 19:03, Dave mailto:dave.live...@gmail.com>> wrote:
> Thanks, Chris. I've always used that literal newline inside single quotes in 
> scripts and the command-line, but people think there's something wrong when 
> they see that continuation prompt. 


Hey Dave,

The specific point is that the script does everything.  The user only has to 
provide the text file with the directory list.

On the other hand I do prefer to use a token for a newline character, because 
it reads more clearly for me.

oldIFS=$IFS; IFS=$'\n'; mkdir `cat ~/Downloads/test.txt`; IFS=$oldIFS

In this case Bash 4.4.23 on macOS Sierra 10.12.6 won't convert a double-quoted 
string into a newline for the IFS parameter, so I had to resort to using a C 
string.

--
Take Care,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Another Applescript problem

2019-01-18 Thread Dante Majorana
My goal is to delete the saME PARAGRAPHS in a series of TXT files

the paragraphs I need to delete are always the same

beginig from par at line 9, then . line 7 then line 3

I use this script:

*tell* *application* "BBEdit"

*set* theLineNumber *to* *line* 9 *of* *text window* 1

*set* theLineReference *to* (*line* theLineNumber *of* *text document* 1)

*delete* *every* *character* *of* theLineReference

*set* theLineNumber *to* *line* 7 *of* *text window* 1

*set* theLineReference *to* (*line* theLineNumber *of* *text document* 1)

*delete* *every* *character* *of* theLineReference


*set* theLineNumber *to* *line* 3 *of* *text window* 1

*set* theLineReference *to* (*line* theLineNumber *of* *text document* 1)

*delete* *every* *character* *of* theLineReference

*end* *tell*



However I always get this error


*error* "BBEdit got an error: macOS error code: -1702" number -1702



I choose to delete from the last line (Line 9) of my document hoping to get 
the others to continue deleting


However I don't understand the error


Is there a way to fix this?


ThaNKS A LOT


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Joe Richardson
Try ^(space)(space)(space) for grep search, where (space) is a space not
the words, and empty replace.

Cheers,
Joe

On Fri, Jan 18, 2019 at 4:02 PM Cecily Walker 
wrote:

> Hi everyone,
>
> I'm really struggling with Grep and trying to write a pattern that deletes
> 3 spaces at the beginning of each line. I have the text of a recipe file
> that was formerly a numbered list (HTML). When I copied the text, it
> retained the spaces. I'd like to remove the spaces at the beginning of
> every line. What is the correct pattern to make this happen?
>
> Thanks for the help!
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> ---
> 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 bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Delete space at the beginning of line

2019-01-18 Thread Mark McLeod
If it’s exactly three, Have you tried a carat (^) followed by three spaces as 
your regex:

‘^ '

 to find, and an empty box for the replace? If it’s an arbitrary number of 
spaces, try the carat, a space, and a + to indicate any number of the same 
character?

‘^ +’

Note that you don’t include the ‘ characters. I added those so that you can SEE 
the spaces. ;)



> On Jan 18, 2019, at 3:45 PM, Cecily Walker  wrote:
> 
> Hi everyone, 
> 
> I'm really struggling with Grep and trying to write a pattern that deletes 3 
> spaces at the beginning of each line. I have the text of a recipe file that 
> was formerly a numbered list (HTML). When I copied the text, it retained the 
> spaces. I'd like to remove the spaces at the beginning of every line. What is 
> the correct pattern to make this happen? 
> 
> Thanks for the help!
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter:  >
> --- 
> 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 bbedit+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to bbedit@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Delete space at the beginning of line

2019-01-18 Thread Cecily Walker
Hi everyone, 

I'm really struggling with Grep and trying to write a pattern that deletes 
3 spaces at the beginning of each line. I have the text of a recipe file 
that was formerly a numbered list (HTML). When I copied the text, it 
retained the spaces. I'd like to remove the spaces at the beginning of 
every line. What is the correct pattern to make this happen? 

Thanks for the help!

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Command-K and Command-R as keyboard equivalents for "Check Syntax" and "Run"

2019-01-18 Thread Jeff Shepherd
Thank you. I went into the preferences and typed ‘run’ and ’shortcut’ and 
others into the search box and wasn’t getting any hits. Even with your 
instructions, it took some experimentation to figure out to double-click on the 
’none’ to assign a shortcut. All works, now. Thanks!

 - Jeff -

> On Jan 16, 2019, at 7:30 AM, Bruce Van Allen  wrote:
> 
> On 1/16/19 at 6:27 AM, asheps...@gmail.com (Jeff Shepherd) wrote:
> 
>> Older versions of BBEdit had Command-K and Command-R as keyboard equivalents 
>> for "Check Syntax" and "Run", respectively. That functionality seems to have 
>> disappeared in BBEdit 12. How do I get those keyboard shortcuts back?
> 
> Those are still the keyboards equivalents over here.
> 
> First thing to do would be to check your BBEdit settings and then maybe also 
> System settings.
> 
> In BBEdit settings, look in the Menus & Shortcuts pane. Click the #! line, 
> and you'll see the menu commands for Check Syntax, Run, etc., listed with 
> their menu keys, if any, on the right. Double-click the key combination for 
> one you want to change - it will then be editable, and you simply type the 
> combination you want, such as Command-K for Check Syntax. You might be warned 
> that that key-comb is already in use for something else, and you can decide 
> whether to override that with your new setting.
> 
> If that doesn't work, go into macOS System Settings, open the Keyboard pane, 
> pick the Shortcuts tab, and then choose App Shortcuts. Press the '+' sign and 
> navigate to BBEdit in the pop-up and follow directions for setting the 
> shortcut (shortcut = key combination). The one trick here is that you will 
> have to type in the exact Menu command including any punctuation, so it helps 
> to look at the menu while still in BBEdit and memorize or write down the menu 
> command. Again, you might get a warning about the shortcut already being used 
> for something else.
> 
> All this assumes you have recent BBEdit and system versions, although these 
> operations haven't changed much in a while...
> 
> HTH,
> -- 
> 
>  - Bruce
> 
> _bruce__van_allen__santa_cruz__ca_

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.