Re: A little grep help

2019-02-12 Thread Christopher Stone
On 02/12/2019, at 06:38, @lbutlr mailto:krem...@kreme.com>> 
wrote:
> I asked someone how to remove all spaces in an string more efficiently and he 
> responded with
> 
> search: (m?)\s+
> replace: (nul)
> 
> which sure does work.
> 
> But WHY?


On 02/12/2019, at 16:26, @lbutlr mailto:krem...@kreme.com>> 
wrote:
> On 12 Feb 2019, at 06:53, Rich Siegel  > wrote:
>> 'm guessing it was "(?m)\s+"
> 
> That would make SLIGHTLY more sense, but it is definitely (m?)\s+ (I’ve 
> checked it a dozen times)



Hey Lewis,

That has to be a typo on your friend's part.  There's no sense in adding a 
capture for an optional literal 'm' – it adds nothing and can mangle words 
ending in 'm'.

This is test
 Maximum Text
With some spaces

ThisistestMaximuTextWithsomespaces

I've no idea why the person in question might feel the need to turn ON 
multiline.  (I'd guess habit.)

Corrected:

search: (?m)\s+

Turning OFF multiline works just the same:

search: (?-m)\s+

#!/usr/bin/env perl -sw
while (<>) {
s!\s+!!g;
print;
}

All produce your compressed string:

ThisistestTextWithsomespaces

> What I don’t get is that in the sample
> 
> < This is test
>  Text
> With some spaces
> END
> 
> The result is
> 
> ThisistestTextWithsomespaces
> 
> Which is to say that it removes all the white space. All at once. In one 
> action.


Were you were wanting to remove horizontal whitespace only?

Find: \h+
Repl: null

Vertical whitespace can be isolated with “\v”.

--
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread Christopher Stone
On 02/11/2019, at 20:46, 'David J' via BBEdit Talk mailto:bbedit@googlegroups.com>> wrote:
> That's right, multiple text files all in one parent folder on an external 
> drive, but there are many child folders below. I'm new to terminal and grep, 
> could I specify a folder and multiple folders below with the expression you 
> came up with?


Hey David,

Yes – you can.


cd ~/'test_directory/Dictionary Files Split/';  # Change the working directory.
# pwd;  # Print Working Directory (currently commented-out)
egrep -i -R -A1 -B1 '^(beemaster|fimbriodentate|muddlehead|Terpsichorean)$' *;


-R is for Recursive.

The output of my test folder with several large files of dictionary words is:


Sub Folder A/eimer-fin.txt-fimbrillose
Sub Folder A/eimer-fin.txt:fimbriodentate
Sub Folder A/eimer-fin.txt-Fimbristylis
--
--
Sub Folder B/mountainless-oenomel.txt-muddledom
Sub Folder B/mountainless-oenomel.txt:muddlehead
Sub Folder B/mountainless-oenomel.txt-muddleheaded
--
--
Sub Folder C/tenontoplasty-typographical.txt-terpsichoreally
Sub Folder C/tenontoplasty-typographical.txt:Terpsichorean
Sub Folder C/tenontoplasty-typographical.txt:terpsichorean
Sub Folder C/tenontoplasty-typographical.txt-Terraba
--
--
beefer-capitulum.txt-beeman
beefer-capitulum.txt:beemaster
beefer-capitulum.txt-been


An extra word was found in group 3, because I had case-insensitive turned ON.

It looks to me like you've found what you need in BBEdit's GUI Mult-File 
Search, but it's good to have options.

--
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: A little grep help

2019-02-12 Thread ThePorgie
Seems like an odd search string. The (m?) would be to capture a patten for 
an optional m before your space. If you're just wanting to get the spaces I 
don't know why you would include this when the \s would get them all with a 
replacement of null and selecting the replace all option. Including the 
pattern (m?) would also get the m's if followed by a space unless you 
returned the pattern in the replace field by using \1 (\1 is assuming only 
one pattern match in your search string being for the m) 

Of note. The \s also gets returns so you will get one long string if using 
the replace all option. You could try \h+ and have more luck. (\h will 
leave the returns).



On Tuesday, February 12, 2019 at 7:38:17 AM UTC-5, @lbutlr wrote:
>
> I asked someone how to remove all spaces in an string more efficiently and 
> he responded with 
>
> search: (m?)\s+ 
> replace: (nul) 
>
> which sure does work. 
>
> But WHY? 
>
> That is, I know what this does, but I don't understand the syntax 
>
>
> -- 
> Major Strasser has been shot. Round up the usual suspects. 
>
>

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread Sam Hathaway

Sorry, I think my email client might have munged that badly.

It should be:

```
^[^\r]*\r[^\r]*(keyword1|keyword2|keyword3)[^\r]*\r[^\r]*$
```

Cheers!
-sam

On 12 Feb 2019, at 19:51, Sam Hathaway wrote:


Something like this:

^[^\r]*\r[^\r]*(keyword1|keyword2|keyword3)[^\r]*\r[^\r]*$

Hope this helps!
-sam

On 12 Feb 2019, at 19:39, 'David J' via BBEdit Talk wrote:

Hi Sam,  embarrassing, but in your example “^[^\r]*\r[^\r]*keyword 
to match[^\r]*\r[^\r]*$”


I was leaving “to match” in there thinking that was part of the 
expression. Working fine so far replacing all the words in that 
section with one keyword. So, THANK YOU.


If I wanted to do this search with multiple keywords (matching any 
provided, not all), do you know how I would change the expression to 
do that?


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



--
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread Sam Hathaway

Something like this:

^[^\r]*\r[^\r]*(keyword1|keyword2|keyword3)[^\r]*\r[^\r]*$

Hope this helps!
-sam

On 12 Feb 2019, at 19:39, 'David J' via BBEdit Talk wrote:

Hi Sam,  embarrassing, but in your example “^[^\r]*\r[^\r]*keyword 
to match[^\r]*\r[^\r]*$”


I was leaving “to match” in there thinking that was part of the 
expression. Working fine so far replacing all the words in that 
section with one keyword. So, THANK YOU.


If I wanted to do this search with multiple keywords (matching any 
provided, not all), do you know how I would change the expression to 
do that?


--
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread 'David J' via BBEdit Talk
Hi Sam,  embarrassing, but in your example “^[^\r]*\r[^\r]*keyword to 
match[^\r]*\r[^\r]*$”

I was leaving “to match” in there thinking that was part of the expression. 
Working fine so far replacing all the words in that section with one keyword. 
So, THANK YOU.

If I wanted to do this search with multiple keywords (matching any provided, 
not all), do you know how I would change the expression to do that? 

-- 
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: Problems with spellcheck?

2019-02-12 Thread 'Jeffrey Jones' via BBEdit Talk
On 2019 Feb 12, at 17:31, @lbutlr  wrote:
> 
> This is very different behavior from TextEdit or Mail compose windows. Not 
> sure what is going on, but it does look buggy to me.

I was having this problem a year or so ago. I discovered that I could make it 
work like TextEdit by changing the language in the Spelling Panel.

Open the Spelling Panel:  Edit > Spelling > Show Spelling Panel. The Language 
pop-up was set to  Automatic by Language . Changing to U.S. English  fixed the 
problem.

-- 
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: A little grep help

2019-02-12 Thread Sam Hathaway

It's NOT doing the same thing is (?m). Apply your pattern to this sample:

Yum yum I munch this text.

I get:

YuyuImunchthistext.

On February 12, 2019 5:38:05 PM "@lbutlr"  wrote:


On 12 Feb 2019, at 15:29, Sam Hathaway  wrote:
How exactly are you applying this pattern? Is this in BBEdit’s find window? 
I can’t replicate what you’re seeing. (For me it replaces one span of 
spaces at a time, including any m that precedes it.)


Never mind, in BBEdit I am of course, doing a replace all (which is so 
ingrained I didn’t think about it at all).


As far as I can tell, this behaves identically to (?m)\s+ (which I 
understand, I think) and since BBEdit defaults (?m) to on, it is not 
needed, \s+ replace all with (nun) does the same thing.


➕

--
And what rough beast, its hour come round at last,
Slouches towards Bethlehem to be born?

--
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: A little grep help

2019-02-12 Thread @lbutlr
On 12 Feb 2019, at 15:37, @lbutlr  wrote:
> replace all with (nun) 

Thanks for the helpful autocorrect! (nul)

-- 
'What can I do? I'm only human,' he said aloud. Someone said, Not all
of you. —Pyramids

-- 
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: A little grep help

2019-02-12 Thread @lbutlr
On 12 Feb 2019, at 15:29, Sam Hathaway  wrote:
> How exactly are you applying this pattern? Is this in BBEdit’s find window? I 
> can’t replicate what you’re seeing. (For me it replaces one span of spaces at 
> a time, including any m that precedes it.)

Never mind, in BBEdit I am of course, doing a replace all (which is so 
ingrained I didn’t think about it at all).

As far as I can tell, this behaves identically to (?m)\s+ (which I understand, 
I think) and since BBEdit defaults (?m) to on, it is not needed, \s+ replace 
all with (nun) does the same thing.

➕

-- 
And what rough beast, its hour come round at last,
Slouches towards Bethlehem to be born?

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


[ANN] BBEdit 12.6 (412027) pre-release

2019-02-12 Thread Rich Siegel

Good morning folks,

We're currently working on a feature update to BBEdit 12, which 
includes a number of new features, as well as fixes for 
previously reported issues.


Testing is currently underway, and we have a stable pre-release 
version ready for use.


Note that this is a _pre-release_ version. The intent is to fix 
bugs and address areas of improvement based on what our 
customers have reported. However, since the software is at this 
point not fully tested, there _may_ be bugs and regressions.


If this prospect makes you nervous, then sticking with the 
public release versions is your best course of action. Nobody 
will be offended if you choose to do so; you're under no 
obligation to install and use anything but a public release. :-)


Complete change notes to date for all the pre-release builds in 
this cycle are available here:


  

The change notes are organized into additions, changes, and 
fixes, and are annotated where appropriate with case numbers. So 
if you recognize a number corresponding to a support case that 
was opened for you, you can now verify that it's been fixed 
correctly. Please take the time to review the changes before 
using the new build -- it'll be worth your time.




version 12.6 (412027)   (2019-02-12)

*   This version of BBEdit requires macOS 10.12.6 or later. It will
not run on previous versions of macOS or Mac OS X.

Additions
-

o   (none in this build)

Changes
---

*   [DOC] The "Text Options" sheet gets a setting for the tab width,
and an indicator when the file's settings are managed by
EditorConfig.

*   [DOC] BBEdit-specific print settings are now available in the
Print panel when printing a text document. As a result, we have
removed the "Printing" section from the "Text Options" 
panel, and

restored the latter to its former simplicity.

*   The displayed path for files opened from within Zip archives or
tarballs is now abbreviated using a tilde, if it is within the
current user's home directory.

Fixes
-

*   [367127] Updated the man page for `bbedit` to reflect that
`-u`/`--create-unix` are deprecated (but still allowed as
synonyms for `-c`/`--create`). The output of `bbedit -h` no
longer mentions `-u`/`--create-unix`.

*   [328867] Fixed bug in which changing text display settings via
the Text Options command; the options popover in the navigation
bar; or one of the commands on the View => Text Display submenu,
did not mark the document's state dirty.

*   [367249] Fixed bug in which search results text generated for
items inside of Zip archives or tarballs did not actually include
the archive-relative path to the file.

*   [367237] Made a change so that `bbedit --maketags` ignores the
`ctags` present in the freestanding Xcode command-line tools
installation, in case those are installed.

*fin*

One final note: If you run into a bug in a pre-release version, 
PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking 
about whether others have seen the same problem. Instead, please 
send a bug report to  and we will deal 
with it there. This will help us keep the list discussion on 
topic and productive for all list members.


The package can be downloaded from our web server:



Enjoy,

R.

--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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: Problems with spellcheck?

2019-02-12 Thread @lbutlr
On 12 Feb 2019, at 14:37, Barbara Snyder  wrote:
> andd  dand  specfic 

If I paste them into BBEdit from your message, only andd is underlined.

If I back space to the end of specfic and then hit the space bar, it is 
highlighted, if I add a space after dand it is also highlighted.

This is very different behavior from TextEdit or Mail compose windows. Not sure 
what is going on, but it does look buggy to me.

-- 
"Two years from now, spam will be solved," -- Bill Gates, January, 2004


-- 
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: A little grep help

2019-02-12 Thread Sam Hathaway
How exactly are you applying this pattern? Is this in BBEdit’s find 
window? I can’t replicate what you’re seeing. (For me it replaces 
one span of spaces at a time, including any `m` that precedes it.)

-sam

On 12 Feb 2019, at 17:26, @lbutlr wrote:


On 12 Feb 2019, at 06:53, Rich Siegel  wrote:

'm guessing it was "(?m)\s+"


Tha would make SLIGHTLY more sense, but it is definitely (m?)\s+ 
(I’ve checked it a dozen times)


what I don’t get is that in the sample


---
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: A little grep help

2019-02-12 Thread @lbutlr
On 12 Feb 2019, at 06:53, Rich Siegel  wrote:
> 'm guessing it was "(?m)\s+"

Tha would make SLIGHTLY more sense, but it is definitely (m?)\s+ (I’ve checked 
it a dozen times)

what I don’t get is that in the sample


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


Problems with spellcheck?

2019-02-12 Thread Barbara Snyder
Before I consider filing a bug, are there any known issues with 
highlighting spelling errors? I am finding it to be randomly useful lately, 
often ignoring something in front of a comma or LF, for example, or just 
ignoring stuff in general. This chunk of text isn't showing any errors in  
BBEdit:

 andd  dand  specfic 

Although sometimes if I leave and come back, the red underlines do show up.

Thanks -- Barbara

-- 
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: A little grep help

2019-02-12 Thread Néstor E. Aguilera
Notice that \s includes line feeds/carriage returns/form feeds, so perhaps it 
is not what you want.

For just spaces and tabs you may try [^ \t]+ (user manual, p. 187).

Nestor

===

> On 12 Feb 2019, at 10:42, Sam Hathaway  wrote:
> 
> This would seem to remove any m character that is followed by one or more 
> spaces, so I don’t think it quite does what you asked for. Not sure why it 
> would be faster either.
> -sam
> 
> On 12 Feb 2019, at 7:38, @lbutlr wrote:
> 
> I asked someone how to remove all spaces in an string more efficiently and he 
> responded with
> 
> search: (m?)\s+
> replace: (nul)
> 
> which sure does work.
> 
> But WHY?
> 
> That is, I know what this does, but I don't understand the syntax
> 
> 
> -- 
> Major Strasser has been shot. Round up the usual suspects.
> 
> -- 
> 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.

-- 
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: Image won't appear

2019-02-12 Thread John Wills Lloyd
A while ago, Patricia Scott asked about an image not appearing

On Friday, February 8, 2019 at 8:59:22 AM UTC-5, Patricia Scott wrote:
>
> Has anyone ever had a problem with an image that just refuses to display? 
> I have been tearing my hair out about one of those.
>
>
> I manage a website for subtropical fruit aficionados;  one of our members 
> has a very impressive garden and he wrote an article about it for the 
> website. 
>
>
> All the images except one display properly, and I can't figure out why 
> this one is 
>
> different.
>
>
> Folks offered some valuable suggestions and apparently creating and saving 
a new version of the image "worked."

I wanted to add that sometimes I had similar issues and discovered that the 
underlying permissions for the to-be-inserted file (e.g., image) were not 
set correctly. For browsers to show a file such as an image, the file must 
be "world-readable" (i..e., "-rw-r--r--" in unix; not sure what the 
designation would be on a Windoze box). With command-line access, one can 
use a command like "chmod" (change mode?) to correct such problems; I think 
there are ways to do so with some tools in FTP applications, etc., too.

When I've had issues with images or other files in situations such as this, 
I sometimes find it valuable to control- or right-click on the image and 
select "open image in a new window." Then I can examine the path for 
problems (does it point to the right directory? is there an inconsistency 
with the case?). Also, I've found that it's sometimes helpful to test the 
page in another browser to eliminate problems associated with how one 
browser is rendering the page; of course, one should generally conduct such 
tests, anyway, even when no problems are apparent in one's default browser.

Grins, 

JohnL 

-- 
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: A little grep help

2019-02-12 Thread Rich Siegel

On 2/12/19 at 7:38 AM, krem...@kreme.com (@lbutlr) wrote:


search: (m?)\s+


I'm guessing it was "(?m)\s+", and attached is a screenshot from 
the user manual.


R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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: A little grep help

2019-02-12 Thread Sam Hathaway
This would seem to remove any `m` character that is followed by one or 
more spaces, so I don’t think it _quite_ does what you asked for. Not 
sure why it would be faster either.

-sam

On 12 Feb 2019, at 7:38, @lbutlr wrote:

I asked someone how to remove all spaces in an string more efficiently 
and he responded with


search: (m?)\s+
replace: (nul)

which sure does work.

But WHY?

That is, I know what this does, but I don't understand the syntax


--
Major Strasser has been shot. Round up the usual suspects.

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


A little grep help

2019-02-12 Thread @lbutlr
I asked someone how to remove all spaces in an string more efficiently and he 
responded with

search: (m?)\s+
replace: (nul)

which sure does work.

But WHY?

That is, I know what this does, but I don't understand the syntax


-- 
Major Strasser has been shot. Round up the usual suspects.

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread Sam Hathaway

Maybe you could give some example text from one of the files.

In the multi-file search dialog, make sure that there's no filter selected 
if you want to search all the files in the folder you've selected. And, of 
course, make sure the folder you want to search is selected.

-sam

On February 11, 2019 9:33:54 PM "'David J' via BBEdit Talk" 
 wrote:


Hi Sam, thanks for giving that a shot. I’ve tried search - multi file 
search and searching the keyword got zero occurrences in search results. 
There should be hundreds of results with that keyword 樂


--
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: Image won't appear

2019-02-12 Thread @lbutlr
On 11 Feb 2019, at 17:45, Charlie Garrison  
wrote:
> I presume all mainstream apps are tested on both case-(insensitive) 
> filesystems these days.

I doubt this is true.

I know, second hand. that Adobe software has and many issues with 
case-sensitive HFS+ volumes, though I do not know for sure they are still 
problems today. Certainly within the last ten years, however.

Here, I found this form last April:



which references this:



which states:

Solution: Install the product onto an HFS+ or HFSJ non-case-sensitive drive.

No mention of APFS, and it handles case/unicode very differently, so maybe? But 
I bet Adobe products still don't work.



-- 
Experience is something you don't get until just after you need it.

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