Re: Replacing all spaces in a line, but not the first

2023-06-08 Thread Dave Simpson
Hi Rick

Many thanks for the explanation, I can see what you mean now.

Regards

Dave

On Thursday, June 8, 2023 at 5:53:09 AM UTC+1 Rick Gordon wrote:

> It can be adapted for 2-10 words; it's just along expression.
>
> As you can see, what I provided…
>
> ===
> FIND:
> (?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?: \d+)
> \K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))
>
> CHANGE TO: \1,\2,\3,\4
> ===
>
> …has one instance of *(\w+)* followed by 2 instances of *(\h\w+)* 
> followed by *(?=\h\w+$))* in the segment before the first vertical bar, 
> while the segment after the first vertical bar is the same, but contains 
> 3 instances of *(\h\w+)*.
>
> So what needs to be done is to add more segments, each separated by a 
> vertical bar except for the last one (since the vertical bar means "OR").
>
> To clarify, the *(?:^2 PLAC(?: \d+) \K* processes and ignores the the 
> start of the line…
>
> *2 PLAC*, followed by an optional set of digits preceded by a space, 
> followed by a space.
>
> So it's just a question of stacking more instances, one with only one 
> *(\h\w+)*, for the shortest possibility, and the rest with yet an 
> additional instance of *(\h\w+)* , separating each with a vertical bar.
>
> Rick Gordon
>
> 
>
> On June 7, 2023 at 9:37:27 PM [-0700], Dave Simpson wrote in an email 
> entitled "Re: Replacing all spaces in a line, but not the first":
> > Hi Rick
> >
> > Many thanks for that, it works a treat (within limits)!
> >
> > When I say that, it works fine for lines where the address is 4 
> > elements long.
> >
> > e.g. /2 PLAC 49 Spinney Close Northfield Birmingham/
> > converts to /2 PLAC 49 Spinney, Close, Northfield, Birmingham/
> > /
> > /
> > However if there are fewer or more elements it ignores the line.
> > A PLAC entry can be in the range 1 to 10 elements
> >
> > e.g. / 2 PLAC 46 Norton Crescent Alum Rock Birmingham /has 5 elements 
> > and is ignored
> > as is /2 PLAC Kalamzoo Birmingham /which is 3 elements
> > /
> > /
> > I'm beginning to think that I'm asking too much, as a PLAC entry can 
> > be in the range 1 to 10 elements
> >
> > _Having just written that, a solution came to mind:_
> > If I change the Replace statement to/ \1,\2,\3,\4,\5,\6,\7,\8,\9,\10 
> > /that will put superfluous commas in place
> > e.g. /2 PLAC 33 Barker, Street, Shrewsbury,,, Shropshire/
> > However, it is a simple matter to remove the extra commas.
> >
> > I can fix the things like Street, Road etc afterwards, it was the 
> > initial adding of the commas that was giving me a problem.
> >
> > Very many thanks for your efforts
> >
> > Dave
> >
> > On Wednesday, June 7, 2023 at 9:24:02 PM UTC+1 Rick Gordon wrote:
> >
> > Try this:
> >
> > ===
> > FIND:
> > (?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?:
> > \d+)
> > \K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))
> >
> > CHANGE TO: \1,\2,\3,\4
> > ===
> >
> > That should ignore the first number and handle groups of either 3
> > or 4
> > words afterwards. It could be further modified if longer groups are
> > possible.
> >
> > It doesn't handle street names in the most intelligent way, as it
> > will
> > put a comma after the street name. And if any words had
> > punctuation in
> > them (like "St.", or a hyphen), that would require further
> > modification.
> >
> > Rick Gordon
> >
> > --
> >
> > On June 7, 2023 at 1:18:08 PM [-0700], Dave Simpson wrote in an email
> > entitled "Re: Replacing all spaces in a line, but not the first":
> > > Hi Kaveh
> > >
> > > I'm not sure that that would solve it.
> > >
> > > It first needs to find the lines beginning with "2 PLAC " and act
> > only
> > > on those lines.
> > > Replacing "2 PLAC " with something else would give the same
> > issue, it
> > > would have to find only those lines beginning with our substitute
> > label.
> > >
> > > Many thanks for your help.
> > > Think I'll put it on the back burner for now.
> > >
> > > Regards
> > > Dave
> > > On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote:
> > >
> > > Ah, I thought all lines had that.
> > >
> > > Then you could replace "2 PLAC " (with space) with a unique
> > > string, e.g. ●, and at t

Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Dave Simpson
Every had a day when you realise that you've been a total Muppett?

If I process all the lines beginning "2 PLAC " and add the commas in front 
of every space, it will convert "2 PLAC " to "2, PLAC, "
So then I just need to do a pass to convert "2, PLAC, " back to "2 PLAC "

The only bugbear with that is that it puts a comma after the house number, 
whereas Rick's method doesn't,but I can fix that.

Many thanks
On Wednesday, June 7, 2023 at 10:34:25 PM UTC+1 Dave Simpson wrote:

> Hi Rick
>
> Many thanks for that, it works a treat (within limits)!
>
> When I say that, it works fine for lines where the address is 4 elements 
> long.
>
> e.g.   *2 PLAC 49 Spinney Close Northfield Birmingham*
> converts to *2 PLAC 49 Spinney, Close, Northfield, Birmingham*
>
> However if there are fewer or more elements it ignores the line.
> A PLAC entry can be in the range 1 to 10 elements
>
> e.g.   * 2 PLAC 46 Norton Crescent Alum Rock Birmingham *has 5 
> elements and is ignored
> as is  *2 PLAC Kalamzoo Birmingham *which is 3 elements
>
> I'm beginning to think that I'm asking too much, as a PLAC entry can be in 
> the range 1 to 10 elements
>
> *Having just written that, a solution came to mind:*
> If I change the Replace statement to* \1,\2,\3,\4,\5,\6,\7,\8,\9,\10 *that 
> will put superfluous commas in place
> e.g.*2 PLAC 33 Barker, Street, Shrewsbury,,, Shropshire*
> However, it is a simple matter to remove the extra commas.
>
> I can fix the things like Street, Road etc afterwards, it was the initial 
> adding of the commas that was giving me a problem.
>
> Very many thanks for your efforts
>
> Dave
>
> On Wednesday, June 7, 2023 at 9:24:02 PM UTC+1 Rick Gordon wrote:
>
>> Try this: 
>>
>> === 
>> FIND: 
>> (?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?: \d+) 
>> \K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$)) 
>>
>> CHANGE TO: \1,\2,\3,\4 
>> === 
>>
>> That should ignore the first number and handle groups of either 3 or 4 
>> words afterwards. It could be further modified if longer groups are 
>> possible. 
>>
>> It doesn't handle street names in the most intelligent way, as it will 
>> put a comma after the street name. And if any words had punctuation in 
>> them (like "St.", or a hyphen), that would require further modification. 
>>
>> Rick Gordon 
>>
>> -- 
>>
>> On June 7, 2023 at 1:18:08 PM [-0700], Dave Simpson wrote in an email 
>> entitled "Re: Replacing all spaces in a line, but not the first": 
>> > Hi Kaveh 
>> > 
>> > I'm not sure that that would solve it. 
>> > 
>> > It first needs to find the lines beginning with "2 PLAC " and act only 
>> > on those lines. 
>> > Replacing "2 PLAC " with something else would give the same issue, it 
>> > would have to find only those lines beginning with our substitute 
>> label. 
>> > 
>> > Many thanks for your help. 
>> > Think I'll put it on the back burner for now. 
>> > 
>> > Regards 
>> > Dave 
>> > On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote: 
>> > 
>> > Ah, I thought all lines had that. 
>> > 
>> > Then you could replace "2 PLAC " (with space) with a unique 
>> > string, e.g. ●, and at the end replace ● by "2 PLAC " 
>> > 
>> > Not sure that would solve it. 
>> > 
>> > On Tue, 6 Jun 2023 at 19:02, Dave Simpson  wrote: 
>> > 
>> > Hi Kaveh 
>> > Sorry about the delay in replying, had to go out. 
>> > I’m a bit confused as to how the 2 PLAC can be put back to 
>> > correct line 
>> > 
>> > Not every line in the file begins with 2 PLAC 
>> > 
>> > Dave 
>> > 
>> > On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote: 
>> > 
>> > BTW to replace 
>> > 
>> > 2 PLAC 
>> > 
>> > at start of lines when replacements have been done, replace: 
>> > 
>> > "^" -- start of line 
>> > with 
>> > 
>> > "2 PLAC " 
>> > 
>> > On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan 
>> >  wrote: 
>> > 
>> > Simplest might be first to remove all "2 PLAC " 
>> > 
>> > Then replace 
>> > "(?> > with 
>> > ", " 
>> > 
>> > So replace any space not

Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Dave Simpson
Hi Rick

Many thanks for that, it works a treat (within limits)!

When I say that, it works fine for lines where the address is 4 elements 
long.

e.g.   *2 PLAC 49 Spinney Close Northfield Birmingham*
converts to *2 PLAC 49 Spinney, Close, Northfield, Birmingham*

However if there are fewer or more elements it ignores the line.
A PLAC entry can be in the range 1 to 10 elements

e.g.   * 2 PLAC 46 Norton Crescent Alum Rock Birmingham *has 5 
elements and is ignored
as is  *2 PLAC Kalamzoo Birmingham *which is 3 elements

I'm beginning to think that I'm asking too much, as a PLAC entry can be in 
the range 1 to 10 elements

*Having just written that, a solution came to mind:*
If I change the Replace statement to* \1,\2,\3,\4,\5,\6,\7,\8,\9,\10 *that 
will put superfluous commas in place
e.g.*2 PLAC 33 Barker, Street, Shrewsbury,,, Shropshire*
However, it is a simple matter to remove the extra commas.

I can fix the things like Street, Road etc afterwards, it was the initial 
adding of the commas that was giving me a problem.

Very many thanks for your efforts

Dave

On Wednesday, June 7, 2023 at 9:24:02 PM UTC+1 Rick Gordon wrote:

> Try this:
>
> ===
> FIND:
> (?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?: \d+) 
> \K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))
>
> CHANGE TO: \1,\2,\3,\4
> ===
>
> That should ignore the first number and handle groups of either 3 or 4 
> words afterwards. It could be further modified if longer groups are 
> possible.
>
> It doesn't handle street names in the most intelligent way, as it will 
> put a comma after the street name. And if any words had punctuation in 
> them (like "St.", or a hyphen), that would require further modification.
>
> Rick Gordon
>
> --
>
> On June 7, 2023 at 1:18:08 PM [-0700], Dave Simpson wrote in an email 
> entitled "Re: Replacing all spaces in a line, but not the first":
> > Hi Kaveh
> >
> > I'm not sure that that would solve it.
> >
> > It first needs to find the lines beginning with "2 PLAC " and act only 
> > on those lines.
> > Replacing "2 PLAC " with something else would give the same issue, it 
> > would have to find only those lines beginning with our substitute label.
> >
> > Many thanks for your help.
> > Think I'll put it on the back burner for now.
> >
> > Regards
> > Dave
> > On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote:
> >
> > Ah, I thought all lines had that.
> >
> > Then you could replace "2 PLAC " (with space) with a unique
> > string, e.g. ●, and at the end replace ● by "2 PLAC "
> >
> > Not sure that would solve it.
> >
> > On Tue, 6 Jun 2023 at 19:02, Dave Simpson  wrote:
> >
> > Hi Kaveh
> > Sorry about the delay in replying, had to go out.
> > I’m a bit confused as to how the 2 PLAC can be put back to
> > correct line
> >
> > Not every line in the file begins with 2 PLAC
> >
> > Dave
> >
> > On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote:
> >
> > BTW to replace
> >
> > 2 PLAC
> >
> > at start of lines when replacements have been done, replace:
> >
> > "^" -- start of line
> > with
> >
> > "2 PLAC "
> >
> > On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan
> >  wrote:
> >
> > Simplest might be first to remove all "2 PLAC "
> >
> > Then replace
> > "(? > with
> > ", "
> >
> > So replace any space not preceded by a digit to a
> > comma space.
> >
> > Would that work?
> >
> > On Tue, 6 Jun 2023 at 15:19, Dave Simpson
> >  wrote:
> >
> > Hi Kaveh
> >
> > No problem, 3 examples of before and after
> >
> > 2 PLAC 129 Haymarket London England
> > 2 PLAC 129 Haymarket, London, England /[Ideal
> > answer because space between '129' and 'Haymarket'
> > is skipped, but not essential]/
> >
> > 2 PLAC 24 Long Street Chester Cheshire
> > 2 PLAC 24, Long, Street, Chester, Cheshire
> >
> > 2 PLAC Meadows, Lowestoft, England
> > 2 PLAC Meadows Lowestoft England
> >
> > Thanks
> > On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1 Kaveh
> > Bazargan wrote:
> >
> > Hi Dave
> >
> > Could you give several examples of before,
> > then the same ones after?
> >
> > Regards
> > Kaveh
> >
> > On Tue, 6 Jun 2023 at 14:45, Dave Simpson
> >  wrote:
> >
> > Hi, I'm a novice at thi

Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Dave Simpson
Hi Kaveh

I'm not sure that that would solve it.

It first needs to find the lines beginning with "2 PLAC " and act only on 
those lines.
Replacing "2 PLAC " with something else would give the same issue, it would 
have to find only those lines beginning with our substitute label.

Many thanks for your help.
Think I'll put it on the back burner for now.

Regards 
Dave
On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote:

> Ah, I thought all lines had that. 
>
> Then you could replace "2 PLAC " (with space) with a unique string, 
> e.g. ●, and at the end replace ● by "2 PLAC "
>
> Not sure that would solve it.
>
> On Tue, 6 Jun 2023 at 19:02, Dave Simpson  wrote:
>
>> Hi Kaveh
>> Sorry about the delay in replying, had to go out.
>> I’m a bit confused as to how the 2 PLAC can be put back to correct line
>>
>> Not every line in the file begins with 2 PLAC
>>
>> Dave
>>
>> On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote:
>>
>>> BTW to replace 
>>>
>>> 2 PLAC 
>>>
>>> at start of lines when replacements have been done, replace:
>>>
>>> "^" -- start of line
>>> with 
>>>
>>> "2 PLAC "
>>>
>>> On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan  
>>> wrote:
>>>
>>>> Simplest might be first to remove all "2 PLAC "
>>>>
>>>> Then replace
>>>> "(?>>> with
>>>> ", "
>>>>
>>>> So replace any space not preceded by a digit to a comma space. 
>>>>
>>>> Would that work?
>>>>
>>>> On Tue, 6 Jun 2023 at 15:19, Dave Simpson  wrote:
>>>>
>>>>> Hi Kaveh
>>>>>
>>>>> No problem, 3 examples of before and after
>>>>>
>>>>> 2 PLAC 129 Haymarket London England
>>>>> 2 PLAC 129 Haymarket, London, England*[Ideal answer because space 
>>>>> between '129' and 'Haymarket' is skipped, but not essential]*
>>>>>
>>>>> 2 PLAC 24 Long Street Chester Cheshire
>>>>> 2 PLAC 24, Long, Street, Chester, Cheshire
>>>>>
>>>>> 2 PLAC Meadows, Lowestoft, England
>>>>> 2 PLAC Meadows Lowestoft England
>>>>>
>>>>> Thanks
>>>>> On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1 Kaveh Bazargan wrote:
>>>>>
>>>>>> Hi Dave
>>>>>>
>>>>>> Could you give several examples of before, then the same ones after? 
>>>>>>
>>>>>> Regards
>>>>>> Kaveh
>>>>>>
>>>>>> On Tue, 6 Jun 2023 at 14:45, Dave Simpson  wrote:
>>>>>>
>>>>>>> Hi, I'm a novice at this sort of thing.
>>>>>>>
>>>>>>> I have a line of text:-
>>>>>>> *2 PLAC 11 Haymarket Willenhall Staffordshire*
>>>>>>>
>>>>>>> I want to replace the spaces with ,  [comma space] after the first 
>>>>>>> part of the line [2 PLAC ]
>>>>>>>
>>>>>>> ^(2 PLAC ) finds me the start
>>>>>>> Now I want to replace the spaces with  comma space:-
>>>>>>>
>>>>>>> *2 PLAC 11, Haymarket, Willenhall, Staffordshire*
>>>>>>> [It would be brilliant if it were possible to skip the first space 
>>>>>>> between 11 and Haymarket]
>>>>>>>
>>>>>>> Many thanks for your 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 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 bbedit+un...@googlegroups.com.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-

Re: Replacing all spaces in a line, but not the first

2023-06-06 Thread Dave Simpson
Hi Kaveh
Sorry about the delay in replying, had to go out.
I’m a bit confused as to how the 2 PLAC can be put back to correct line

Not every line in the file begins with 2 PLAC

Dave

On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote:

> BTW to replace 
>
> 2 PLAC 
>
> at start of lines when replacements have been done, replace:
>
> "^" -- start of line
> with 
>
> "2 PLAC "
>
> On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan  wrote:
>
>> Simplest might be first to remove all "2 PLAC "
>>
>> Then replace
>> "(?> with
>> ", "
>>
>> So replace any space not preceded by a digit to a comma space. 
>>
>> Would that work?
>>
>> On Tue, 6 Jun 2023 at 15:19, Dave Simpson  wrote:
>>
>>> Hi Kaveh
>>>
>>> No problem, 3 examples of before and after
>>>
>>> 2 PLAC 129 Haymarket London England
>>> 2 PLAC 129 Haymarket, London, England*[Ideal answer because space 
>>> between '129' and 'Haymarket' is skipped, but not essential]*
>>>
>>> 2 PLAC 24 Long Street Chester Cheshire
>>> 2 PLAC 24, Long, Street, Chester, Cheshire
>>>
>>> 2 PLAC Meadows, Lowestoft, England
>>> 2 PLAC Meadows Lowestoft England
>>>
>>> Thanks
>>> On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1 Kaveh Bazargan wrote:
>>>
>>>> Hi Dave
>>>>
>>>> Could you give several examples of before, then the same ones after? 
>>>>
>>>> Regards
>>>> Kaveh
>>>>
>>>> On Tue, 6 Jun 2023 at 14:45, Dave Simpson  wrote:
>>>>
>>>>> Hi, I'm a novice at this sort of thing.
>>>>>
>>>>> I have a line of text:-
>>>>> *2 PLAC 11 Haymarket Willenhall Staffordshire*
>>>>>
>>>>> I want to replace the spaces with ,  [comma space] after the first 
>>>>> part of the line [2 PLAC ]
>>>>>
>>>>> ^(2 PLAC ) finds me the start
>>>>> Now I want to replace the spaces with  comma space:-
>>>>>
>>>>> *2 PLAC 11, Haymarket, Willenhall, Staffordshire*
>>>>> [It would be brilliant if it were possible to skip the first space 
>>>>> between 11 and Haymarket]
>>>>>
>>>>> Many thanks for your 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 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 bbedit+un...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Kaveh Bazargan PhD
>>>> Director
>>>> River Valley Technologies <http://rivervalley.io> ● Twitter 
>>>> <https://twitter.com/rivervalley1000> ● LinkedIn 
>>>> <https://www.linkedin.com/in/bazargankaveh/> ● ORCID 
>>>> <https://orcid.org/-0002-1414-9098> ● @kave...@mastodon.social 
>>>> <https://mastodon.social/@kaveh1000>
>>>> *Accelerating the Communication of Research*
>>>>
>>>> * 
>>>> <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop>
>>>>   [image: 
>>>> https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
>>>>  
>>>> <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>*
>>>>
>>> -- 
>>> This is the BBEdit Talk public discussion group

Re: Replacing all spaces in a line, but not the first

2023-06-06 Thread Dave Simpson
Hi Kaveh

No problem, 3 examples of before and after

2 PLAC 129 Haymarket London England
2 PLAC 129 Haymarket, London, England*[Ideal answer because space 
between '129' and 'Haymarket' is skipped, but not essential]*

2 PLAC 24 Long Street Chester Cheshire
2 PLAC 24, Long, Street, Chester, Cheshire

2 PLAC Meadows, Lowestoft, England
2 PLAC Meadows Lowestoft England

Thanks
On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1 Kaveh Bazargan wrote:

> Hi Dave
>
> Could you give several examples of before, then the same ones after? 
>
> Regards
> Kaveh
>
> On Tue, 6 Jun 2023 at 14:45, Dave Simpson  wrote:
>
>> Hi, I'm a novice at this sort of thing.
>>
>> I have a line of text:-
>> *2 PLAC 11 Haymarket Willenhall Staffordshire*
>>
>> I want to replace the spaces with ,  [comma space] after the first part 
>> of the line [2 PLAC ]
>>
>> ^(2 PLAC ) finds me the start
>> Now I want to replace the spaces with  comma space:-
>>
>> *2 PLAC 11, Haymarket, Willenhall, Staffordshire*
>> [It would be brilliant if it were possible to skip the first space 
>> between 11 and Haymarket]
>>
>> Many thanks for your 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 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 bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Kaveh Bazargan PhD
> Director
> River Valley Technologies <http://rivervalley.io> ● Twitter 
> <https://twitter.com/rivervalley1000> ● LinkedIn 
> <https://www.linkedin.com/in/bazargankaveh/> ● ORCID 
> <https://orcid.org/-0002-1414-9098> ● @kave...@mastodon.social 
> <https://mastodon.social/@kaveh1000>
> *Accelerating the Communication of Research*
>
> * 
> <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop>
>   [image: 
> https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
>  
> <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>*
>

-- 
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 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/34efcbe2-6182-4ce7-a737-900da7c534can%40googlegroups.com.


Replacing all spaces in a line, but not the first

2023-06-06 Thread Dave Simpson
Hi, I'm a novice at this sort of thing.

I have a line of text:-
*2 PLAC 11 Haymarket Willenhall Staffordshire*

I want to replace the spaces with ,  [comma space] after the first part of 
the line [2 PLAC ]

^(2 PLAC ) finds me the start
Now I want to replace the spaces with  comma space:-

*2 PLAC 11, Haymarket, Willenhall, Staffordshire*
[It would be brilliant if it were possible to skip the first space between 
11 and Haymarket]

Many thanks for your 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 here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com.


Re: Appending to a line

2022-05-11 Thread Dave Simpson
Thanks Bucky

That helps me a lot.
Dave

On Monday, May 9, 2022 at 4:14:01 AM UTC+1 buckyjunior wrote:

> I was fortunate to learn some bits of regex/grep from helpful people on 
> this list who not only showed an answer to a question but explained what 
> was happening. While this search/replace using grep is quite simple, it’s 
> not always obvious to everyone.
>
>
> > On May 8, 2022, at 1:36 PM, Dave Simpson  wrote:
> > 
> > You want to do a GREP search, with search string like this:
> > 
> > ^(2 PLAC)(.*)$
> > 
> > And you want to replace with this:
> > 
> > \1\2 England
> > 
> > That’s it. Try it.
> > 
>
> In the search pattern:
> ^ means start at the beginning of a line
> (2 PLAC) parentheses bracket the search text and “remembers" it. In this 
> case, it is known characters. Grep lets you search for unknown/partially 
> known characters too.
> (.*) second parentheses uses “.” As any character except newline or 
> carriage return. The asterisk expands that to zero or more characters.
> $ means the end of the line.
>
> The replacement is
> \1 first parentheses “remembered” pattern
> \2 follow that with the second
> England end the replacement with a space and then the literal text 
> “England”
>
> That’s mostly this grep/replace. You know the BBEdit Manual has lots more.
> Bucky

-- 
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 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/49c92d66-cca0-41a0-8b5f-8e091541e5a2n%40googlegroups.com.


Re: Appending to a line

2022-05-08 Thread Dave Simpson
Many thanks Christian, it much appreciated.

On Sunday, May 8, 2022 at 6:18:13 PM UTC+1 ChristianBoyce wrote:

> This GREP stuff is really worth learning. 
>
> However, I can help you with this particular problem, because it’s easy.
>
> You want to do a GREP search, with search string like this:
>
> ^(2 PLAC)(.*)$
>
> And you want to replace with this:
>
> \1\2 England
>
> That’s it. Try it.
>
> On May 8, 2022, at 8:53 AM, Dave Simpson  wrote:
>
> I've looked at Creating Subpatterns in then manual but I'm sorry but a lot 
> of the syntax is going over my head :-(
>
> I'm not a power user and generally just need to do straightforward 
> search/replace.
>
> I want to search a text file.
> Every time a line begins 2 PLAC
> I want to append the word England to the end of the line.
>
> Hope someone can 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 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 bbedit+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/39d3f39e-7a63-4952-8593-a9240f0da066n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/39d3f39e-7a63-4952-8593-a9240f0da066n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> —
>
>
> • How to use Widgets in iOS 15 
> <https://christianboyce.com/widgets-tutorial-ios14/>
>
> ‌
>
>

-- 
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 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/cb5df7ea-44f9-4b5e-a471-3b0f81475637n%40googlegroups.com.


Appending to a line

2022-05-08 Thread Dave Simpson
I've looked at Creating Subpatterns in then manual but I'm sorry but a lot 
of the syntax is going over my head :-(

I'm not a power user and generally just need to do straightforward 
search/replace.

I want to search a text file.
Every time a line begins 2 PLAC
I want to append the word England to the end of the line.

Hope someone can 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 here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/39d3f39e-7a63-4952-8593-a9240f0da066n%40googlegroups.com.


Re: RegEx in JS question

2021-02-24 Thread Dave

Lookahead, yes. Lookbehind, no.
On Wednesday, February 24, 2021 at 3:22:06 AM UTC-5 tedmas...@gmail.com 
wrote:

> All excellent pointers. Thank you all. I have to assume I can use 
> lookahead and lookbehind assertions in JavaScript, either natively or via a 
> node library, but wasn't sure how to phrase the question to begin with.
>
> Kind regards,
>
> Ted
>
> On Wed, Feb 24, 2021 at 7:57 AM jj  wrote:
>
>> Hi Ted,
>>
>> BBEdit regular expressions are based on PCRE2 (see credits in 'BBEdit 
>> about').
>>
>> For quick reference the BBEdit Help is excellent:  'Help menu' > BBEdit 
>> Help > Quick Reference > Grep Reference.
>> For the definitive documentation on PCRE: 
>> https://www.pcre.org/current/doc/html/pcre2syntax.html
>> And for JavaScript: 
>> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet
>>
>> You can also test and compare your regular expressions in this excellent 
>> playground : https://regex101.com
>>
>> Best regards,
>>
>> Jean Jourdain
>>
>>
>> On Wednesday, February 24, 2021 at 6:37:09 AM UTC+1 Harvey Pikelberger 
>> wrote:
>>
>>> Re non-capturing parentheses, this might help: 
>>> https://stackoverflow.com/questions/3512471/what-is-a-non-capturing-group-in-regular-expressions
>>>
>>> For the most part RegEx in JS & BBEdit are much the same.  The big 
>>> difference is that in JS vs BBEdit is the syntax for the backreference.
>>> (\ (backslash) in BBEdit vs $ in JS)
>>>
>>> So for example say your Find is "AE" plus a 3rd uppercase character 
>>> [A-Z], followed by a number [0-9], where you want to inserted new text 
>>> between the letters and numbers...
>>>
>>> In BBEdit that would be Find: *(AE[A-Z])([0-9])*  Replace: 
>>> *\1InsertedNewText\2*  
>>> In JS the same thing is: SomeText.replace(/(AE[A-Z])([0-9])/g, 
>>> $1InsertedNewText$2);
>>>
>>>
>>>
>>>
>>>
>>> On Feb 23, 2021, at 1:43 PM, Ted Stresen-Reuter  
>>> wrote:
>>>
>>> I'm trying to do some advanced parsing of source code using RegEx. I'm 
>>> using non-capturing parentheses "(?…)" and friends for look aheads and look 
>>> behinds and such. I'm wondering if anyone can tell me:
>>>
>>> 1. What type of RegEx extension are these types of patterns (look 
>>> aheads, look behinds)?
>>> 2. Is there an equivalent that could be used in JavaScript, say, in a 
>>> node application?
>>>
>>>
>>> -- 
>> 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 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 bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/f5e5f412-27c5-405d-ba8c-5067319e0221n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/16520b24-ea8f-45fe-b346-a5b878ded054n%40googlegroups.com.


Re: grep search - insert character before search result

2019-05-01 Thread Dave
Bruce,

Guilty. I'm a bit of a regex geek, but I also tend to use advanced 
expressions (like positional assertions), even when simpler ones would do 
the job, just to stay in practice. You'll find these things become second 
nature if you use them all the time, even if they look like gibberish at 
first glance.

Also, while the documentation that comes with the PCRE library (which you 
can download and install for free) is very extensive and useful, I probably 
learned most of what I know about regular expressions just from using 
BBEdit and reading the User Manual. The "Searching with Grep" chapter is a 
clear and succinct guide to the most useful patterns and concepts, and the 
Find/Replace dialog provides a great environment to practice using them 
painlessly.

On Monday, April 29, 2019 at 8:49:29 PM UTC-4, Bruce Linde wrote:
>
> now you’re just showing off... guess i’m going to have to stare at the 
> docs a bit to make sure i grok that  8-)
>

-- 
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: grep search - insert character before search result

2019-04-29 Thread Dave
Or find: (?=\d{4})
replace: \t
This finds the position before four consecutive digits and inserts a tab.

-- 
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-16 Thread Dave
Thanks, Chris. I've always used that literal newline inside sigle quotes in 
scripts and the command-line, but people think there's something wrong when 
they see that continuation prompt. 

On Wednesday, January 16, 2019 at 2:33:22 PM UTC-5, Christopher Stone wrote:
>
> Hey Dave,
>
> Something like this will work:
>
> oldIFS=$IFS; IFS=$'\n'; mkdir `cat ~/Downloads/test.txt`; IFS=$oldIFS
>
> --
> 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: <https://www.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 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-16 Thread Dave
I have a correction to make. I don't think there's actually any way to 
escape the spaces or quote the folder names in list like this, so if you 
need to use folder names with spaces (something I avoid, btw) what you need 
to do is to remove the space charater from the $IFS environment variable, 
e.g.
IFS='
'

Then run the mkdir `cat foldernames.txt` command.
You can either reset $IFS to its default value () or 
close your session as further operations that depend on $IFS may yield 
unexpected results.

On Tuesday, January 15, 2019 at 11:10:49 PM UTC-5, Dave wrote:
>
> If you have a space in a folder name, you’ll get two folders unless you 
> quote it. Not what I’d call “blowing up.” 
>
> I only tried it with 330 names. I’m sure there’s a limit, but I don’t know 
> what it is. If you need more folders, make more lists. Or use a loop if it 
> makes you happy. 

-- 
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: <https://www.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 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-15 Thread Dave
If you have a space in a folder name, you’ll get two folders unless you quote 
it. Not what I’d call “blowing up.”

I only tried it with 330 names. I’m sure there’s a limit, but I don’t know what 
it is. If you need more folders, make more lists. Or use a loop if it makes you 
happy. 

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


How to Create Finder Folders from BBEdit Text List

2019-01-15 Thread Dave
mkdir accepts multiple arguments, so assuming you have a list of names called 
“foldernames.txt,” you can just enter:
mkdir `cat foldernames.txt`
instead of using a loop. 

-- 
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: Error 12182 with grep search on large file

2018-09-03 Thread Dave
Gnu grep is wicked fast. I don't know what you're using, but I routinely 
download and buid grep with PCRE support. (I also build PCRE. They're both 
very easy to build & install. I don't use MacPorts or Homebrew because I 
like to choose my own options.)

Incidentally, you can make grep slow if you don't know what you're doing. 
Some patterns that are easy to write cause lots of backtracking. You can 
even write a relatively simple search pattern that, given the right input 
text, will never finish. That's why you actually want grep to call it quits 
when it realizes it's not getting anywhere. 

On Monday, September 3, 2018 at 3:09:35 PM UTC-4, Christopher Stone wrote:
>
>
> Grep is slow.
>
>

-- 
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: Error 12182 with grep search on large file

2018-09-01 Thread Dave
What's wrong with plain ol' grep?

grep [-P] 'your pattern here' humungous.log > results.txt

I can't recall grepping any 3GB files, but I've probably done at least that 
much in smaller files.

On Wednesday, August 29, 2018 at 11:39:51 PM UTC-4, Christopher Stone wrote:
>
> In lieu of other solutions I'd *try* a Perl script.
>

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


Mac Numeric Enter key does nothing

2018-08-23 Thread Dave Cloud
The numbers work but not the Enter key, on a Mac long keyboard. 

If I hit Option+Clear, it disabled the numbers as well in every app. 

I just want the numeric Enter key to work like the normal Enter key. I'm 
seeing no option in Preferences for this.

I'm using BBEdit * version 12.1.5 (410102, 64-bit)*

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


How to adjust page guide?

2018-08-17 Thread Dave Cloud
Not seeing it settings or web search.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Feature request

2018-08-03 Thread Dave
No, not a BBEdit feature request. I want to see a BBEdit feature in other 
places: hierarchical window menus!

I get spoiled by how easy it is to find an open document in BBEdit that it 
makes using othe programs unbearable, especially Safari and the Finder.

It's been a while since Apple added tabbed windows to those apps, and every 
time there's a software update, I keep hoping in vain they've finally made 
the window menus hierarchical. It's just such a no-brainer that, when it's 
possible to open multiple things (i.e. documents, locations, etc.) in the 
same window, and you can have more than one window, you need a hierarchical 
window menu to locate the thing you're looking for without having to rotate 
through all the windows and visually inspect each tab, hoping you'll 
recognize the title, which is usually truncated and often difficult to 
recognize without some context. I have to assume that Apple's developers 
just don't know how to make menus hierarchical. So please, Rich, tell them 
how it's done!

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Multiple Cursors

2018-05-01 Thread Dave
It reminds me of the Firesign Theater's second album.

On Monday, April 30, 2018 at 4:38:42 AM UTC-4, Christopher Stone wrote:
>
> I *do* think it foreshadows things to come though.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: [Markdown[HTML[Markdown]]]

2018-04-26 Thread Dave
Markdown is such a time-saver.

I've run into similar problems with tables. There's no way, even with 
github extensions, to control things like column spans or row spans. It's 
just too limiting to be of any use to me, and I've spent more time trying 
to figure out how to work around the limitations than it would take to just 
write the HTML.

On Tuesday, April 24, 2018 at 9:26:42 PM UTC-4, Seamus de Mora wrote:
>
>
>
> I should have known better... 
>
 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Regular expression with negative look-behind assertion

2018-04-16 Thread Dave
How about 
^#define
or, if some might be indented,
^\h*#define

Positional assertions are great, but why use them if you don't have to, 
especially look-behinds, which can't have variable string lengths?

On Sunday, April 15, 2018 at 6:35:59 PM UTC-4, Alfredo wrote:
>
> I’m trying to find all “enabled” defines such as this:
>
> #define _some_enabled_define_
>
> while excluding all “disabled” (commented) defines such as this:
>
> // #define _some_disabled_define_
>
>
> This regular expression causes BBEdit to include both of the above kinds 
> of defines (“enabled” defines and “disabled” (commented) defines) in the 
> search results:
>
> (?
> As far as I believe, the forward slash is not a special character, but I 
> tried escaping it anyway:
>
> (?
> Same results.
>
>
> To test whether macOS supports a negative look-behind assertion, I tried 
> an obviously incorrect regular expression and got a reassuring error 
> message which tells me that, at least, the syntax for the negative 
> look-behind assertion is checked correctly:
>
>
>
>
>
> Am I missing something? Any clues?
>
> Thanks.
>
> Alfredo
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Help with a grep question

2018-01-28 Thread Dave
Enter one of these patterns in a Find dialog:
(?<=ID_User=)\.[[:xdigit:]]+(?=&-find)
or
(?<=ID_User=)\.[[:alnum:]]+(?=&-find)
(Which pattern depends on whether the ID is a hexadecimal number or simply 
a sequence of alphanumeric characters.)
Click Extract.
A new document containing the IDs will be created. The (?…) patterns (known 
as positional assertions) are not captured.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Deleting a named div

2017-10-30 Thread Dave
divs = document.querySelectorAll(".day_report");
lastDiv = divs.item(divs.length -1);


On Sunday, October 29, 2017 at 8:34:26 AM UTC-4, jgill wrote:
>
> I have worked out how to count the similar div classes on the page, go 
> back to the top and count down  and then do a search and replace, 
> but this seems clumsy.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Deleting a named div

2017-10-30 Thread Dave
divs = document.querySelectorAll();
lastDiv = divs.item(divs.length -1);

I have worked out how to count the similar div classes on the page, go back 
> to the top and count down  and then do a search and replace, but 
> this seems clumsy.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: BBEdit for Writers

2017-10-18 Thread Dave
Unfortunately, it is becoming a de-facto standard. For example, github 
README files will only be displayed on a project page if they are in 
markdown. It has a totally non-semantic syntax, which makes nearly 
impossible for many, like me, to learn it; since the characters it uses are 
often part of the content, certain content can't be represented without 
complicated escapes, and some can't be represented at all; its HTML 
repertoire is severely limited, for example, some implementations allow 
tables, but not if you need cells to span multiple columns or rows; 
implementations vary widely, which not only adds to the learning curve but 
also limits what you can express where. When a presentation language places 
limits on what you can express, forcing you to dumb down your message, and 
learning it, including its limitations and idiosyncratic implementations, 
takes a huge investment in time for something that was intended to save 
time, those are pretty good reasons for hating it.

On Tuesday, October 17, 2017 at 8:55:22 PM UTC-4, Lewis Butler wrote:
>
> On 11 Oct 2017, at 13:49, Gregory Shenaut > 
> wrote: 
> > I hate Markdown in all its varieties and manifestations 
>
> OK, I’ve resisted commenting on this for nearly a week now, but I find 
> this statement extremely odd. 
>
> I can’t understand why anyone would hate markdown. I mean, I can see not 
> using it, but since all it is is a quick way to write something that will 
> become HTML without littering your text with HTML I don’t understand how it 
> could possibly enrage anyone to the level of hatred. 
>
> A markdown file is perfectly readable to someone who has never heard of 
> markdown, which is a huge advantage over most formats for text files. It’s 
> portable, the interpreter for it is dead-simple, and it’s widely supported. 
>
> And I say all of this as someone who very rarely uses markdown. 
>
> -- 
> Apple broke AppleScripting signatures in Mail.app, so no random 
> signatures. 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Auto-select search selected when text is selected

2017-09-03 Thread Dave
It has always puzzled me that "Text" actions like "Apply Text Filter," 
"Sort Lines...," "Process Lines Containing...," etc. default to the current 
selection, if there is one, or the entire document otherwise, but 
Find/Replace doesn't. While this might be too drastic a change to foist 
upon those who seldom read release notes, adding an expert preference to 
allow users who crave consistency to change it themselves would not be a 
bad idea at all.

On Saturday, September 2, 2017 at 2:46:19 PM UTC-4, Bruce Van Allen wrote:
>
> I see your point. Maybe you could file a request to BBEdit 
> support for an "Expert Preference" setting, along the lines of: 
> [made-up] 
> "useMultiLineSelectionAsSearchArea boolean TRUE/FALSE" 
> [/made-up]. 
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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 Choose Non-Comment Lines Into New File

2017-08-28 Thread Dave
I'd use something like this (in Terminal):
grep -Ev '^[ \t]*(#|$)' /etc/apache2/httpd.conf > newfile.conf

It means, "grep, using an *E*xtended regular expression, returning only 
non-matching lines (in*v*ert), lines with a '#' or the end of the line 
preceded by zero or more spaces or tabs."

This omits blank lines, including lines with only spaces or tabs, and 
commented lines.

On Saturday, August 26, 2017 at 9:36:17 PM UTC-4, BeeRich33 wrote:
>
> Hi folks.  Can I use "Process Lines Containing...", coupled with "Delete 
> Lines" and "Copy To New Document" to make a .conf file with only 
> uncommented lines?
>
> This also needs some empty line removal, but just curious about the 
> previous process.
>
> Cheers
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: XML Pretty Print

2017-06-16 Thread Dave
You should have a program called xmllint in your /usr/bin/ directory that 
can parse and reformat an xml file, stream or URL. Since it can process 
standard input and output to standard out, it can be used in a text filter. 
See the user manual 
and http://bbeditextras.org/wiki/index.php?title=Text_Filters for more 
information on how to create and use text filters. See man xmllint or xmllint 
--help for more about xmllint.

On Thursday, June 15, 2017 at 10:01:51 AM UTC-4, Mike Margerum wrote:
>
> I used to be able to reformat / prettyify XML from BBEdit, but somewhere 
> along the way this was removed.  It's probably one of the top things I need 
> from the editor as I deal with a lot of XML.
>
> Is it back yet?  If so, how do you access it?  I see a format in the 
> markup menu, but it looks like its only for HTML?
>
> Thanks
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: [] or | ?

2017-05-09 Thread Dave
Dear Jean-Christophe,
While it may be possible to use them to create patterns that are 
functionally equivalent, it is these cases that are marginal, and the 
operators themselves should by no means be considered as equivalent. One 
defines two alternative patterns, while the other defines a character 
class. When we observe, for example, that the expression a|b does the same 
thing as [ab], this is simply because it is no easier to define certain 
small, simple classes than to enumerate their members, but what about 
[a-z], or [^a]? Not only would you be up all night listing all the 
characters that are not lowercase a, but you'd end up with a significantly 
less than optimal expression.
Parsimony aside, since the pipe defines alternative *patterns*, there is no 
way to create patterns like (dog|cat) using character classes. 

On Monday, May 8, 2017 at 10:10:45 PM UTC-4, Jean-Christophe Helary wrote:
>
> I'm wondering if [] and | are equivalent for single characters or if there 
> are marginal cases where they would not be equivalent ? 
>
> Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Can't set invisible character colour

2017-04-22 Thread Dave
The color of tabs and spaces is set with the "Spaces" setting in Text 
Colors. "Other invisibles" refers to other non-printing characters such as 
carriage returns in a document with newline end of line characters, or code 
points that don't belong in in the current character set. They usually 
appear as inverted question marks.

On Friday, April 21, 2017 at 8:25:15 AM UTC-4, Vernon Klukas wrote:
>
> Suddenly, in both TextWrangler & BBEdit, invisible characters are very 
> pale gray and don't show up well. Attempts to set them to any other color 
> fails.
>
> Any ideas?
>
> Yours
> Vern
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Shell Scripting Folding

2017-04-21 Thread Dave
All of them or just the bash and perl scripts? Are there indications that 
BBEdit recognizes the language? Is syntax-coloring working?  Is the name of 
the language displayed in the status bar?
BBEdit generally gets the language from the shebang if the file has no 
extension or the extension is language-neutral (e.g. .cgi), but it doesn't 
infer JavaScript from `#!/usr/local/bin/node`, for example.

On Thursday, April 20, 2017 at 8:30:12 PM UTC-4, BeeRich33 wrote:
>
> Good day.
>
> For some reason my shell scripts aren't showing any folding.  How can I 
> make this happen?  What am I missing?
>
> Cheers
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Help With Grep Pattern

2017-03-05 Thread Dave
If you install the PCRE libraries you get tons of documentation in HTML and 
manpage format. It also includes some useful demos and utilities. Of course 
you can also link to them when you build gnu grep, sed and other programs 
with PCRE dependencies.
http://www.pcre.org

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Use BBEdit to update several hundred rows in a 3 column table?

2016-12-20 Thread Dave
Peter:
Based on your "longer sample," I've written the following
*Find:*
(?<=class=xl\d{2} style='height:\d{2}\.0pt'>)([^<]+)((]+>[^<]+)?\s+[^<]+(]+>[^<]+)?\s+)[^<]+(?=)
*Replace:*
\1\2$

This accounts for everything except the instance that includes this element:
 

I could update the search pattern to accomodate it, but it would make it 
even more complicated, and I can't anticipate any other arbitrary garbage 
Excel decides to insert anyway, so I suggest you run a find/replace to 
remove them or else figure out why Excel is inserting them. In this case, 
the "mso-spacerun" element might result from extraneous white-space in your 
database that you probably don't want there anyway.

There are also some problems with your HTML.

   1. All attribute values should be enclosed in double-quotes, e.g. 
   
   Apart from not being valid HTML, PHP might have a problem with it too. I 
   don't know much about PHP, but I think it makes a big distiction between 
   double and single quotes.
   2. There is no reason (unless you're trying to support prehistoric 
   browsers that can't interpret CSS--good luck with that!) for including 
   height attributes if you also include a style attribute--especially when 
   they contradict each other. In fact, as long as you have a class attribute, 
   you can (and should) apply styles to the elements with a separate style 
   sheet.
   

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Red "Evaluation Ended" text

2016-12-16 Thread Dave
Just wanted to share an example of how far ahead of the curve BBEdit is in 
usability. Ever since Safari and Finder got tabbed windows, I have hoped in 
vain that the next upgrade will bring a hierarchical Window menu. BBEdit 
has had this feature for as long as I can remember (which isn't saying all 
that much these days, but it's been a long time), and it just seems crazy 
to only be able to see whatever is open in the current tab in each window 
on the Window menu. I just amazes me that Apple hasn't seen the need for 
them yet.

Before anyone asks why I haven't requested this feature,
1. How do you know I haven't (i.e. what difference would it make)?
2. Have you even tried to figure out how to send a feature request--or even 
a bug report--to Apple lately?
Barebones hasn't implemented every feature I've ever suggested, but they've 
always responded--yes, no or maybe--in a day or two, and usually discussed 
them with me.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Best tool to open & search large log files (5GB+)

2016-11-19 Thread Dave
At work I mostly use Splunk, but then, I don't have to pay for it. At home, 
and sometimes at work if I have the raw logs available, I use grep to chop 
up the files into manageable chunks based on what I'm looking for. I don't 
mean the weak, out-of-date BSD grep Apple ships with Xcode. I get the 
latest version of gnu grep and build it with the latest PCRE, and not just 
because I find PCRE indispensible for this kind of work, but also because 
gnu grep is wicked fast.

Usually I can exctract what I want in one pass and redirect it to a file, 
but occasionally I pipe it back to grep or run it through sed (also the 
latest gnu version) and then to disk. This way you get smaller, more 
manageable files you can open in BBEdit or whatever and and analyze 
further. You can even get basic statistics like browser share by grepping 
specific patterns in User-Agent strings into separate files and counting 
the lines with wc -l. (If you don't need to keep the files you can just 
pipe grep to wc.)

awk is another tool people find useful, but I'm not that proficient with 
it. I don't know if I'm less proficient because I've found it less useful 
or the other way around, but the thing I love about Unix is that it has 
this amazing programming environment filled with useful, interoperable 
tools that let you accomplish tasks in all sorts of different ways. Most 
people probably never learn more than a few of them, and which ones they 
latch onto is either a historical happenstance or because different people 
just think differently and approach problems idiosyncratically.

On Thursday, November 17, 2016 at 12:06:53 PM UTC-5, Jonathan Duke wrote:
>
> I love BBEdit (since the classic days), but when I'm trying to open and 
> search some immense log files from our server it just isn't doing the job.
>
> I know it isn't the best tool for something like this, but when all you 
> have is a hammer…
>
> What would people suggest for files of this size (I'm downloading a log 
> file right now that is already 14 GB of an unknown total).
>
> Thanks.
>
> Cheers,
> Jon
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: Autodetect indentation mode

2016-10-13 Thread Dave
I work on different projects with their own conventions, so I face similar 
challeneges. One thing that has helped has been convincing people to use 
EditorConfig, which BBEdit and most IDEs and editors support. It allows you 
to configure indentation formats for different languages, so they can use 
two-space indenting for YAML and 4 spaces for JavaScript. So you can leave 
your global defaults set to your own preferences and still comply with the 
arbitrary and often hare-brained demands of the people you sometimes have 
to work with.

Another solution I've toyed with but never actually implemented is using 
git hooks to change the formatting of files when they're checked in and 
checked out. If it could be done right, we'd be able to use any style we 
prefer locally and still have the files formatted appropriately for the 
project when we check them in.

On Wednesday, October 12, 2016 at 11:33:56 AM UTC-4, Johan Sölve wrote:
>
> Since I work in the middle of an ongoing indentation war (you know, tabs 
> vs. spaces) I have a need for auto-detecting the indentation mode when 
> opening a file that BBEdit haven't saved an "auto-expand tabs" setting for. 
> Has anyone created such a script? 
>
> I'm not even sure if it's possible to hook a script into opening files, no 
> matter how a file was opened. I'm only familiar with menu scripts. It 
> wasn't back in 2009 according to this thread 
> https://groups.google.com/forum/#!topic/bbedit/67q66_8HaJ4
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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: ctags with a new language

2016-03-22 Thread Dave
If you moved your include files to /usr/local/include, you need to tell gcc 
where to find them, e.g. 

$ export CPPFLAGS=-I/usr/local/include

On Monday, March 21, 2016 at 7:04:32 PM UTC-4, David Roland-Holst wrote:
>
> All,
>
> I want to implement justly celebrated ctags with a new language and went 
> to the original website for instructions (http://ctags.sourceforge.net/). 
> A fine explanation with examples, but the code won't run on an up-to-date 
> (ElCap/Darwin) Mac OS machine ... e.g. "Undefined symbols for architecture 
> x86_64:"
>
> Can someone please tell me how to create my dedicated definitions file for 
> a new language and get on with 
> BBEdit --maketags 
> ?
>
> Cheers,
> David
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Quality of life

2015-12-04 Thread Dave
Correction: I've been using BBEdit for 22 years. How the time flies.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Quality of life

2015-12-04 Thread Dave
I hadn't even noticed they'd pulled out of the app store. How 'bout that.

I've only been using BBEdit for about 12 years, and I've only had to 
contact them for support maybe a half dozen times, and half of those were 
probably feature requests, but knowing that they're there, and that they 
will respond in a timely, professional and effective manner, has 
contributed significantly to my quality of life.

On Friday, December 4, 2015 at 10:00:05 AM UTC-5, Jean-Christophe Helary 
wrote:
>
> Thank you again, and I'm hoping that year outside the appstore has brought 
> you back all the things you expected. 
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Save As Stationery?

2015-10-04 Thread Dave
Thanks, Chris. Here's another crucial tidbit I discovered:

If you need to create the Stationery folder, BBEdit will not recognize any 
files you put there until you *quit and re-launch BBEdit!*


I was expecting files I saved there to be recognized immediately, as 
scripts, clippings and text filters are, but apparently that only happens 
because those folders already exist. But the weird thing that kept me from 
recognizing this sooner is that, while BBEdit won't recognize the *files* you 
place in the Stationery folder, *it does recognize the folder!* As soon as 
you create ~/Library/Application Support/BBEdit/Stationery/, the File > New 
with Stationery submenu becomes available, and Open Stationery Folder menu 
option appears, and it works, but no files are displayed until you restart 
BBEdit.

On Sunday, October 4, 2015 at 12:18:33 AM UTC-4, Christopher Stone wrote:
>
>
> Hey Dave, 
>
> That bit in the manual would appear to be obsolete. 
>
> Put your stationary in: 
>
> ~/Library/Application Support/BBEdit/Stationery/ 
>
> DON'T turn on the stationary-bit in the Finder – BBEdit knows items in its 
> stationary folder are stationary. 
>
> Use by selecting from the menu. 
>
> Edit by Option-selecting from the menu OR by opening in the Finder. 
>
> -- 
> Best Regards, 
> Chris 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Save As Stationery?

2015-10-03 Thread Dave
Does anybody see a "Save As Stationery" checkbox in the save dialog when 
you choose "Save As..." from the File menu? I don't.

I'm using version 11.1.3 (3764), but I'm not at all sure what I was using 
the last time I saved a stationery pad. The latest version of the User 
Manual says, "To create a stationery pad, click the Save As Stationery 
checkbox when saving the file from BBEdit," but I don't see it.

Even after I save the file and convert it "into a stationery pad in the 
Finder by clicking the Stationery Pad checkbox in the document’s Get Info 
window," it doesn't show up in the File > New with Stationery submenu. 
Instead I see an "Open Stationery Folder" option that 
opens ~/Library/Application Support/BBEdit/Stationery/ in the Finder, and 
when I open the stationery file, instead of opening a new, untitled text 
document with the contents of the stationery file, it creates a copy of the 
stationery file in the Stationery folder and opens it in BBEdit. There's no 
way to create a keyboard shortcut to the stationery either.

I don't see any Stationery List under the Window menu either.

Is there a naming convention I need to follow? I don't see anything to that 
effect in the User Manual.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: You Will Love This: Balthisar Tidy

2014-11-09 Thread Dave
I don't love their home page.

I may not be the speediest reader on the planet, and it is Sunday morning, 
but I couldn't finish reading a single panel of that carousel before they 
whisked it away. I have to wonder how people who use carousels for content 
decide where to set the timing. Or if they even think about it.

If you're a designer who is picky about usability and accessibility, you 
won't follow their example.

http://shouldiuseacarousel.com

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Tidy Retired

2014-10-28 Thread Dave
In HTML, when you're between elements, you're also inside the element that 
contains them.

On Monday, October 27, 2014 7:07:37 PM UTC-4, Gustave Stresen-Reuter wrote:
>
> On Oct 27, 2014, at 10:37 PM, Rick Gordon  > wrote: 
>
> > Image_1 style="display:inline-block">Image_2 
> > 
> > ... would not. 
>
> I see. What I was referring to, though, was the space between elements 
> (not inside elements) which, IIRC, used to be a problem (but that was oh so 
> many moons ago, hard for a guy to remember). 
>
> Ted

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Tidy Retired

2014-10-28 Thread Dave
White-space between elements is a text node, and text nodes are rendered 
down to a single space by HTML rendering engines. That space will have a 
width and height corresponding to the font styling of the containing 
element, and if the containing element is the body or a descendent of the 
body, it will take up space on the page either horizontally or vertically, 
depending on whether it intervenes between block or inline elements, unless 
it inherits a font-size of zero.

On Monday, October 27, 2014 3:42:45 PM UTC-4, Gustave Stresen-Reuter wrote:
>
> Remember that white space between elements in HTML should not impact the 
> rendered display (contrary to behavior in prior versions of some browsers… 
> methinks my age is showing). 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Hoe to run multi file searches as a script or macro

2014-10-27 Thread Dave
grep -RP "@(due|next(-week| month)).+(?!@done)" path > search_results.txt

Should find all of them, but only if you have gnu grep with PCRE support.

On Monday, October 27, 2014 4:53:57 AM UTC-4, mmb21...@gmail.com wrote:
>
>
> Using grep works but only one search at a time because of my limited 
> knowledge of regexp !
>
> How do I do a regexp search with multiple finds but excluding certain 
> patterns so for example in Perl I can do
>
> print if (/^.*\@thisweek(?!.*\@done).*/);
> print if (/^.*\@nextweek(?!.*\@done).*/); etc
>
> Not great as would rather do it in one pattern, but it does return what I 
> want.
>
> So Ideally I want to find all lines with '@due' OR '@next-week' OR '@next 
> month' but NOT @done
>
> Cant understand why a multi file search using text factory  in BBE won't 
> allow the results to go into a new window.
>
> Thanks.
> ---
> Mark
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Hoe to run multi file searches as a script or macro

2014-10-27 Thread Dave
The -f option didn't change. I think it's a posix standard. The path to the 
pattern file has to immediately follow the -f, and the patterns have to be 
LF-delimited. I've used it in both BSD grep and gnu grep. 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Hoe to run multi file searches as a script or macro

2014-10-27 Thread Dave
I think they made that change in mountain lion, but it could have been lion.

When you get your new machine you might want to download the latest gnu grep. 
Drop me a line if you need help building it with PCRE support. 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: CSS syntax colouring in BBEdit 11

2014-10-24 Thread Dave Fitch
The solution [thanks to supp...@barebones.com] is to save a
'your_name_here.css' file in the "Custom Keywords" subfolder of BBEdit's
app support folder [see p 32 of the manual]. This file shouldn't be a css
file - it should be a *list* of words that you want coloured as keywords.
Then restart BBEdit.

Those of you using javascript [etc.] would save a 'your_name_here.js' file.

PS: nice new icon too.

On 24 October 2014 02:13, Seth Dillingham  wrote:

> On Thu, Oct 23, 2014 at 7:47 PM, LuKreme  wrote:
>
>> twitter drizzle about the kerfuffle in Seattle (I think it was Seattle)
>
>
> While I think it's always drizzling in Seattle, I believe the particular
> drizzle to which you refer precipitated in Quebec.
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/bbedit/OytC5m1zuv4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Hoe to run multi file searches as a script or macro

2014-10-24 Thread Dave
But Mac OS X no longer includes gnu grep, more's the pity. They replaced it 
with the BSD version. There are a number of differences, the most 
significant one being the lack of a -P option.

Apple's grep manpage is available online 
here: 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/grep.1.html

On Thursday, October 23, 2014 5:46:57 PM UTC-4, Charlie Garrison wrote:
>
>
> Or online: 
>https://www.gnu.org/software/grep/manual/grep.html 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


CSS syntax colouring in BBEdit 11

2014-10-23 Thread Dave Fitch
Is there a way to configure syntax coloring in BBEdit 11 to effectively 
modify the CSS settings that are built into BBEdit? I'd like to add 
additional language keywords to the list that is built into BBEdit [i.e. 
add rem units] and change left/right from 'Predefined symbols' to 'language 
keywords' and add block/inline/both etc. as additional language keywords. I 
did RTM [had to d/l from the website as the built-in link kept timing out] 
but am none the wiser if this is possible.
Thanks
Dave

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: A great little feature I would like very much in BBEdit...

2014-10-07 Thread Dave
I'm mildly curious as to how this would work, since lines in display have 
nothing to do with lines in the source code. Even if you're careful to put 
returns between block elements you can never be sure what is or isn't a 
block element without considering stylesheets.

On Monday, October 6, 2014 1:17:21 AM UTC-4, Stefano wrote:
>
> Hi,
>
> In fact the more you get, the more you want, everybody knows. In any case, 
> especially dealing with some (long) html file with a prevalence of text 
> content (I'm thinking epub ...) it would be really useful to scroll the 
> html source coupled to scroll of the Preview.
>
> Sigil with all its shortcomings, has this feature and needless to say a 
> really handy feature.
> If not bi-directional, which is perhaps too much to ask, at least the 
> scroll of the source scrolls in parallel the BBEdit Preview.
>
> So I hope one day...
>
> Best,
> Stefano
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Line Numbers and Text Folding

2014-09-09 Thread Dave
I finally figured out how to correct this: by checking
Preferences > Editing > Use "hard" lines in soft-wrapped views.

The description of this preference doesn't indicate that text folding is 
affected by this setting, and frankly, I don't remember changing it. I 
certainly don't remember changing it on both of my computers.

Another thing that strikes me as odd is that, with the box unchecked, the 
setting in com.barebones.bbedit.plist is:
UseHardLineNumbersInSoftWrappedViews

but when you check the box, instead of changing to , the entire 
entry goes away. I've seen keys that were either true or missing before, 
but never one where absence is equivalent to true.

On Thursday, July 24, 2014 1:40:57 PM UTC-4, Dave wrote:
>
> It used to be that line numbers were hidden for folded lines, but at some 
> point this changed. Now line numbers run sequentially, and folded lines 
> aren't counted.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Modifying Double-Click Behavior

2014-08-09 Thread Dave
It's not just double click behavior. If you search for word characters 
(\w), underscores will be included. And it's not just BBEdit. Any program 
that uses regular expressions defines word-characters as [a-zA-Z0-9_], and 
wc counts words containing underscores as single words. Although there are 
some cases where text selection doesn't strictly follow the standard of 
selecting consecutive word characters, the difference is to include some 
non-word characters. For example, double-clicking an IP address in a 
Terminal window selects the whole address.

You might find camel case keyboard navigation useful. It also works with 
underscores.

On Friday, August 8, 2014 4:13:23 PM UTC-4, Rick Gordon wrote:
>
>  Is there a setting to modify double-click behavior so that an underscore 
> would act as a word delimiter?
>
>  

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Line Numbers and Text Folding

2014-07-24 Thread Dave
I was kind of hoping you'd say something like that, but can you elaborate? 
I'm running version 10.5.11 (3390) and I'm seeing the same behavior on two 
different machines, and it only started happening fairly recently. I can't 
say exactly when, but I think I first noticed it in a pre-release version, 
so I didn't say anything because I figured it would be fixed in the release.

Are you intimating that something somewhere in my ~/Library/Application 
Support/BBEdit/ directory might be responsible? Some of that stuff is 
pretty old, but a lot of it still works.

On Thursday, July 24, 2014 2:14:39 PM UTC-4, Rich Siegel wrote:
>
>
> It sounds like your BBEdit installation may be out of date. 
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Line Numbers and Text Folding

2014-07-24 Thread Dave
It used to be that line numbers were hidden for folded lines, but at some 
point this changed. Now line numbers run sequentially, and folded lines 
aren't counted.

I found the previous behavior useful, because I could tell at a glance how 
many lines were hidden by the fold, but I also think the new behavior is 
incorrect, because, if any lines are folded, the line number displayed on 
the last line won't be the same as the number of lines displayed in the 
status bar, the number you see after executing Go > Line Number ... won't 
be the number you entered, and line numbers won't agree with line numbers 
reported by other programs. The only way to avoid confusion is to remove 
all folds, which kind of defeats the purpose. 

I have searched in vain for a preference setting--expert or otherwise--to 
restore the original behavior. Am I the only one who finds this less than 
useful?

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Disadvantages of object-oriented JS in BBEdit?

2014-04-01 Thread Dave
What you've done is to make your functions anonymous. You don't need to do 
that to make them object methods. All you need to do is make them 
properties of an object. Instead of 

> Replacefunction adjustMainLayout() {  blah blah blah...
> with layout.adjust = function() { blah blah blah...

do this:

function adjustMainLayout() {  blah blah blah..
layout.adjust = adjustMainLayout

or this:

layout.adjust = function adjustMainLayout() {  blah blah blah..


On Monday, March 31, 2014 7:11:43 PM UTC-4, San wrote:
>
> I'm working on a large, complicated, responsive-design JavaScript file for 
> the new illustration section I'm building for my website, and I'm all 
> bogged down. The code has totally gotten away from me -- it's just too 
> complex for me to model it in my mind any more or to troubleshoot. So I'm 
> experimenting with refactoring it in a very object-oriented way, replacing 
> many of the functions with methods and sub-methods, just for 
> organizational/clarity purposes. Conveniently, I already have a master 
> object called "layout" in my main JS file, so in the subordinate 
> illustration JS file I'm doing lots of things like this:
>
> Replacefunction adjustMainLayout() {  blah blah blah...
>
> with layout.adjust = function() { blah blah blah...
>
> ...and so on.
>
> Unfortunately, I'm immediately seeing what appears to be two disadvantages 
> to this approach in BBEdit.
>
> First of all, the useful popdown list of function names is now gone: that 
> menu is almost completely empty now.
>
> Secondly, the auto-fold triangles (for the functions) in the left gutter 
> are all gone, although I can still fold the methods with Command-Shift-B 
> (Balance and Fold).
>
> Are these inherent shortcomings of using BBEdit with object-oriented 
> JavaScript, or is there something here that I really don't understand? 
> Please tell me it's the latter!
>
> I'm using BBEdit 9.6.3, if that matters in this context.
>
> Thanks much,
> Lawrence
>
>
> Lawrence San
> Business Writing: Santhology.com
> Cartoon Stories for Thoughtful People: Sanstudio.com
>
>  

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: [ANN] BBEdit 10.5.9

2014-03-04 Thread Dave Miers
I just downloaded the demo to update...but thought you might want to know there 
may be a server issue...or ?
On Mar 4, 2014, at 1:26 PM, Rich Siegel  wrote:

> We are pleased to announce the release and immediate availability of BBEdit 
> 10.5.9.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: [ANN] BBEdit 10.5.9

2014-03-04 Thread Dave Miers
I have 10.5.8 not the mac store version, but it doesn't seem to see that there 
is a new update available when I click "check for updates"
On Mar 4, 2014, at 1:26 PM, Rich Siegel  wrote:

> Good { morning, afternoon, evening },
> 
> We are pleased to announce the release and immediate availability of BBEdit 
> 10.5.9. This is a free update for anyone using BBEdit 10 (10.0 through 
> 10.5.8), and includes a number of fixes for reported problems, as well as all 
> the new features and refinements previously released as part of the previous 
> 10.x upgrades.
> 
> A complete digest of the changes is available here:
> 
> 
> 
> The update is available immediately from the BBEdit updates page:
> 
> If you're already using BBEdit 10, you can choose "Check for Updates" from 
> the BBEdit menu, or get the update from the BBEdit updates page:
> 
> 
> 
> If you're using an older (pre-10.0) version of BBEdit, you can download the 
> BBEdit 10 demo from here to try it out:
> 
> 
> 
> 10.5.9 is also available now in the Mac App Store.
> 
> Enjoy,
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or would like to report a problem, 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.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: How can I gather data from a set of HTML documents and place it in an Excel spreadsheet?

2014-01-18 Thread Dave Miers
Well I can’t finish it since my experience with regular expressions is nil, but 
2 commands….HTML to text and remove line breaks gives you a starting point I 
think. I took your posted code…put it in the body of an html file and ran HTML 
to text as well as remove line breaks. I would think a regular expression would 
be able to take this to CSV format assuming that items are always in the same 
order and the same number of items. The pasted code below is exactly as bbedit 
spits it out from the 2 commands:

4-Wheel ATV Action Magazine

Cover Price:$59.88


Then I need the product description, a text that always starts with "About" and 
it is found here;


About 4-Wheel ATV Action Magazine




4-Wheel ATV Action is the ultimate high-performance all terrain vehicle 
magazine. Each issue gives you full racing coverage, results and schedules, ATV 
performance tests and shootout competitions, product reviews, and interviews 
with leading ATV personalities. This magazine subscription brings you all the 
best action with full-color photos and in-depth articles.




Dirt Rider

Normal Price: $59.88/year

Our Price: $11.99

You save: $47.89 (79.98%)



 



Motocross Action

Normal Price: $59.88/year

Our Price: $19.99

You save: $39.89 (66.62%)



 



4 Wheel & Off Road

Normal Price: $47.88/year

Our Price: $11.99

You save: $35.89 (74.96%)



 



Dirt Wheels

Normal Price: $66.00/year

Our Price: $19.99

You save: $46.01 (69.71%)



 
On Jan 17, 2014, at 3:50 AM, Johan Niklasson  
wrote:

> I know it must be possible to gather this data from the many HTML files I 
> have (product pages) but I cannot figure out how to script it. I also need 
> all data to be listed in an Excel sheet or CSV file where the structure 
> should be:

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Multifile search settings based on projects

2013-12-10 Thread Dave
There are probably a lot of things that would make sense being configured 
at the project level, like indent with tabs or spaces, default language, 
vcs, search patterns, scripts, clippings, even default window size. I'd 
love to see at least some of this, but then some people would complain 
about having to reconfigure every last project to make a change effective 
globally. I can sort of see both sides.

On Monday, December 9, 2013 8:31:48 AM UTC-5, Arran Cudbard-Bell wrote:
>
> I use projects extensively across multiple different languages.
> ...
>
> Wondering what other people's thoughts are on this?
>
> -Arran
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, 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.


Re: Slowness on startup and with project

2013-05-09 Thread Dave Fitch
I've noticed that for the last several versions - start-up is now v. slow 
[with just a couple of reasonably small projects] [and that's with the 
latest version of BBEdit].
Dave

On Thursday, May 9, 2013 4:40:18 AM UTC+1, Alex Popescu wrote:
>
> Hi,
>
> I was wondering if others have noticed a slow down in BBEdit lately. 
> Basically when I fire it I get beach balling and it takes a good few 
> seconds before it becomes available (this on a rMBR with 8GB of RAM). I'm 
> also using BBEdit with a project that has about 4000+ files. Clicking in 
> the Project view is painful (basically nothing happens for good seconds).
>
> :- alex
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.




Re: Strip away all HTML, leaving just the URLs

2013-03-03 Thread Dave
This might be better done on the command line.

$ grep -Po '(?<=href=")[^"]+' [file name]

This will give you the content of every href attribute in the file, and 
nothing else. Just a list of URLs.

If there are any URLs you want to exclude, such as mailto:, javascript: or 
anchors (e.g. href="#name"), you can be more specific.

$ grep -Po '(?<=href=")(/|http)[^"]+' [file name]

This will match only hrefs that start with "http", "https", or "/" (the 
link is relative to the document root).

If you want to extract the hrefs from every HTML file in a directory and 
put them into a file, just do this:

$ cd [directory containing the HTML files]
$ grep -Po '(?<=href=")[^"]+' *.htm* > my_hrefs.txt

This writes the contents of all the href attributes in all the files ending 
in .html (or ".htm") into a new file called my_hrefs.txt. To append to an 
existing file, use >> instead of >.

On Friday, March 1, 2013 6:38:29 PM UTC-5, Nick wrote:
>
> Hi,
>
> I need to extract the URLs from a large number of HTML files. Basically, 
> take something like this:
>
> 
>
> http://www.youtube.com"; class="youtube">YouTube
> http://www.facebook.com"; class="facebook">Facebook
> http://www.twitter.com"; class="twitter">Twitter
> 
>
> And output this:
> http://www.youtube.com
> http://www.facebook.com
> http://www.twitter.com
>
> Any suggestions on how to best approach this?
>
> thanks!
>

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

If you have a feature request or would like to report a problem, 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: UI feature request: Tabs

2012-12-31 Thread Dave Fitch
Personally, I would love to be able to consolidate 5 or 6 project windows 
into a single tabbed window.
Dave

On Saturday, December 29, 2012 12:02:47 AM UTC, ahmad.a...@gmail.com wrote:
>
> I would like to request showing currently open files in tabs as a UI 
> feature.
>

-- 
-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>





Re: Success and Error are spamming my function navigator

2012-11-20 Thread Dave
How many unique success and error handlers are you using? If you're doing 
the same things, you don't need to keep recreating the same functions every 
time you make an ajax request. Just declare them and re-use them.

function successHandler(data, textStatus, xhr) {

if (status !== 200) {

this.error(xhr, textStatus, "bad HTTP response");

} else if (! data || $.isEmptyObject(data)) {

this.error(xhr, textStatus, "no data returned");

} else {

doSomethingWithThe(data);

}

}
function errorHandler(xhr, textStatus, errorText) {

if (console && console.error) {

console.error(errorText, textStatus, xhr.getAllResponseHeaders());

}
showError(getMessageString(textStatus, errorText));

}
$.ajax({

type: "POST",
url: "somescript.php",
success: successHandler,
error: errorHandler

})

This way you only have to define each unique function once, and each will 
show up only once in the function menu and will have a name associated with 
it.

On Saturday, November 17, 2012 10:55:55 AM UTC-5, dweinberger wrote:
>
> I have a  javacript program that uses lots of (more likely: too many) AJAX 
> calls. I use the jquery syntax:
>
> $.ajax({
> type: "POST",
> url: "somescript.php",
> success: function(){
> alert("Yay!");
> },
> error: function(){
>alert('Boo!');
> }
> })
>
> The dropdown list of functions at the top of the BBedit edit window lists 
> every "success" and every "error." Is there a way to exclude them? (This is 
> a minor annoyance at worst.)
>
> Since I am a sloppy, incompetent, hobbyist programmer, I am open to being 
> told that the problem is with how I'm writing code.
>
> Thanks!
>
>
>

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 





Re: CoffeeScript syntax highlighting

2012-09-15 Thread Dave
I have a few Text Filters that use node, so I don't think finding node is 
the problem, assuming your #! path is correct. None of them will do 
anything from the #! menu, however, because they rely on stdin and stdout 
to receive input from BBEdit and return the result, and they're written in 
JavaScript.

Have you tried something simple in JavaScript to test your installation? If 
you've installed node in the usual location and haven't changed your script 
output in BBEdit from the default setting, this should write "Hello, 
world." to the script output window:

#!/usr/local/bin/node
process.stdout.write("Hello, world.");


On Friday, September 14, 2012 5:37:09 PM UTC-4, John Maxwell wrote:
>
> Syntax highlighting seems to work great, but the shebang "run" menu 
> doesn't work with coffeescript. I put a #! path at the top of my 
> coffeescript to get it to execute, but BBEdit fails when I run the script 
> (env error) because it can't find node (which is in my shell path, but...)
>
> Is this misconfiguration on my part, or am I asking too much of BBEdit? 
> That is, maybe BBEdit can't access the shell variables to make coffeescript 
> work this way?
>
> Anyone with a different experience?
>
> Thx,
>
>  -JMax
>

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 





Re: SVN options no longer show up in BBEdit version 10

2012-08-08 Thread Dave
Nick,

SmartSVN 7 uses SVNKit 1.7.5 for Java. It is a Subversion client written in 
Java. It is not a git client. The reason the local working copy metadata is 
different is due to the difference between how svn 1.6 and 1.7 operate. svn 
1.6 keeps its metadata in flat files in the invisible .svn directories 
you'll find in every working copy directory that contains versioned files. 
svn 1.7 keeps its metadata in a SQLite database. The only .svn directory in 
a svn 1.7 working copy is to be found in the root. This will be true 
whether it was checked out with SmartSVN or the svn command line client 
(which you can obtain from Apache and build with make). A working copy 
checked out with svn 1.7 will be fully compatible with SmartSVN and 
vice-versa. A working copy checked out with an svn 1.6 command-line client 
or SmartSVN 6.x can be opened with a svn 1.7-compatible client, but it will 
have to be upgraded by the client, which will make it incompatible with svn 
1.6.

To se if you have an svn command-line client installed, enter "which svn" 
in the terminal. If it's in the command path, the pathname of the svn 
client will be printed. If it says, "/usr/bin/svn," BBEdit should be able 
to use it, but if it's not svn 1.7, it won't work with the newer 
directories. If that's the case, you should be able to select Open Log File 
from BBEdit's Subversion menu and see a message to that effect. If Open Log 
File is not available, it means you either don't have svn or it is not at 
/usr/local/bin. BBEdit doesn't check any other locations, but if you need 
to install it in another location, you can tell BBEdit where it is by 
entering "defaults write com.barebones.bbedit SubversionToolPathOverride 
/path/to/svn/binary" in the terminal.

Now for the fun part.

Suppose you download svn 1.7, build it, and install it in /usr/bin/ and 
BBEdit recognizes it, and you can even select Show Working Copy Status... 
from BBEdit's Subversion menu, and it recognizes the working copy, you 
still won't be able to use most of the Subversion menu commands. Why? Well, 
apparently BBEdit doesn't use the svn command to determine if a file is 
under source control. Instead, it checks for a .svn directory in the file's 
directory. This worked fine with svn 1.6, but svn 1.7 working copies don't 
have them except in the root.

Until BareBones gets around to fixing this, you can write a script to 
recurse the working copy hierarchy and make .svn directories. This is kind 
of a pain in the neck, because now you'll have all these unversioned 
directories all over your working copy. If you check them in, this will 
cause problems for anyone sharing that repo who is using svn 1.6 locally. 
If you tell your client to ignore them, that will change the properties on 
your root, which is also seen as an uncommitted local update, and the next 
time you update from the repo, you'll get a conflict, but you can't commit 
it because somebody might still be using svn 1.6 and, well, actually, I'm 
not sure what this will do to them, but I don't want to find out.

So for now I'm just ignoring them. I never do directory commits anyway.

By the way, I haven't reported this bug, but I think they're aware of it. 
You can report it if you want. I've already used my quota for a while.

Let me know if you need any help installing svn or if you'd like to see a 
copy of my .svn folder script.

On Wednesday, August 8, 2012 6:41:12 PM UTC-4, Nick wrote:
>
> Thanks everyone, I've learned a LOT already. I'll look into my best option 
> for a command line client. At this point, I'm mostly exploring some 
> different approaches to my workflow for a specific project. I may even 
> evaluate some GUI options to SmartSVN, too.
>
> On Tuesday, August 7, 2012 4:34:06 PM UTC-6, Nick wrote:
>>
>> HI - I'm trying to get started using SVN and BBEdit on my MacBook Pro, 
>> having recently switched from Windows. Here's what I have:
>>
>> OS X Mountain Lion
>> SVN hosted on Beanstalk
>> Smart SVN 7.0.5 installed
>> BBEdit 10.1.2 installed
>>
>>
>> Using SmartSVN, I can connect to my repository and I've updated my local 
>> files from the repo. My main problem is that I can't find any reference to 
>> SVN/Subversion or any other source control option in BBEdit. I've looked in 
>> the settings, project screen, etc... no sign of it. From what I've 
>> researched, I think this could be a problem with the path configuration. I 
>> tried editing the .bash_profile file by adding export 
>> PATH=/opt/subversion/bin/:$PATH but that doesn't seem to help. When I 
>> fire up the terminal and type in any type of svn command, I get a command 
>> not found error. Could that be preventing BBEdit from enabling 
>> SVN/Subversion? Are there some basic troubleshooting steps I should try?
>>
>> thanks!
>>
>

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

Re: BBEdit looks quite bad on Retina MBP

2012-08-01 Thread Dave Fitch
I agree with David - I completely missed the brouhaha as I use MAMP and it 
just kept working just fine - it is free and easy to install.

http://www.mamp.info/en/index.html


On Tuesday, July 31, 2012 10:14:13 PM UTC+1, David Miers wrote:
>
> I don't like doing things the hard way or re-inventing wheels 
> Solution simply 
> MAMP 
>
> On Jul 31, 2012, at 4:12 PM, Tom Robinson  wrote: 
>
> > TidBITS has a good article on starting Apache from the command line, a 
> free 3rd party preference pane, etc: 
> > 
> >  
> > 
> > 
> > On 2012-08-01, at 06:59, Hugin  wrote: 
> > 
> >> Besides the pixelated fuzzy bad text rendering in BBEdit on my new MBP 
> Retina, how about your planned support for other changes in 10.8? I am 
> specifically thinking about that Web Sharing is gone in ML 
>
>

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Write on Mac, preview as iPad?

2012-04-01 Thread Dave Fitch
Are you using MAMP? [www.mamp.info] [free version available]

MAMP will let you view your files through apache/php on a local web
server, and you can connect to that wirelessly over a local wifi
network very easily and preview your files on an iPhone/iPad. One
gotcha I found is to make sure you configure server names correctly
(especially if using WordPress).

I can visit my site  on my MacPro at 3 addresses:

http://localhost:/iso200/wordpress/
http://192.168.0.11:/iso200/wordpress/
and at
http://monkey.local:/iso200/wordpress/

however http://monkey.local:/iso200/wordpress/ is the only one
that can be consistently seen across the network by all devices -
hardwiring the IP address causes all sorts of problems when/if it
changes (especially in WordPress).
Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: bbedit grey space

2012-03-23 Thread Dave
That's the page guide. Open Preferences > Appearance. Halfway down
you'll see "Editing Window." There's a setting for "Page guide at
[   ] characters" and a check box to turn it on or off. You can also
adjust the width in characters or change the contrast so you can
barely see it.

On Mar 22, 9:00 am, fint82  wrote:
> I just downloaded bbedit tial. I'm using Lion. I used to use textedit
> or smultron for editing code but i find textedit lack of support for
> fullscreen annoying and smultron 4 - what is that new document window
> about - i just don't want it.
>
> I haven't tried bbedit before today. From a quick look i'm pretty
> impressed. There is just one big issue that is irritating me. In
> fullscreen more when I open a file, there is this big grey space.
> Pretty much what I think should be the editor space is half white and
> half grey and the code runs into the grey space. A screenshot would
> probably make more sense of this.
>
> Anyone know how to fix this?

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Sort Lines: need checkboxes for Remove Duplicates and Natural Order

2012-02-28 Thread Dave Yost
1. The Process Duplicate Lines feature is not a checkbox in the Sort
Lines panel, nor is a text factory a checkbox. A text factory is just
a fancy and easier-to-use form of scripting and is 100 times harder to
use than a checkbox — not appropriate for this simple, oft-used
feature of sorting.

2. OK, feature 2 is there; I can't read ;-) But it would be better
worded as "Numbers sort by value".

My question stands on point 1.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Sort Lines: need checkboxes for Remove Duplicates and Natural Order

2012-02-27 Thread Dave Yost
Does anyone else agree that these features belong in the Sort UI of a
text editor that doesn't suck? ;-)

1. It is a common occurrence that when sorting, one needs to remove
duplicates. The unix sort command has had a –u option to do this for
at least 35 years.

2. It is a common occurrence that when sorting, one wants numbers
(wherever they appear in the text) to sort in numeric order (a.k.a.
"natural order"). The sort command in Linux has this feature, calling
it "--version-sort". With this feature, and without any special sort
field specifications, sorting produces
  x8a
  x9a
  x10a
instead of
  x10a
  x8a
  x9a
as it does now.

BBEdit does not have these features, and BB refuses to implement them!
They brush off these suggestions saying that if anyone needs these
features when sorting, they should write a script.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Major problem due to recent ftp docs

2011-12-09 Thread Dave
Preferences
Application
Reopen documents that were open at last quit
Include documents on servers (uncheck)

On Dec 8, 7:21 pm, aries  wrote:
> Hello,
>
> Over time I have opened several files directly over FTP. As a result,
> every time I startup BBEdit, it opens every one of the FTP docs in the
> Recent Documents list. Depending on my connection, this can sometimes
> take almost an hour! In the meantime I am unable to do anything in
> BBEdit, I have to wait for it to open the entire list.
>
> Please, is there a way to clear the recent docs list, or prevent ftp
> docs from going into the list, or can BB fix this issue?
>
> Many thanks,
> -Brian

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: BBEdit 10.1

2011-10-08 Thread Dave
Thank you, Thank you, Thank you for the Open File by Name
improvements!

On Oct 5, 11:12 am, Rich Siegel  wrote:
> Good { morning, afternoon, evening },
>
> We are pleased to announce the release and immediate
> availability of BBEdit 10.1. This is a free update for anyone
> using BBEdit 10.0 or 10.0.1, and includes a number of feature
> additions, refinements to existing features, and fixes for
> reported problems, as well as all the new features and
> refinements previously released as part of the 10.0 upgrade.
>
> A complete digest of the changes is available here:
>
>       
>
> If you're already using BBEdit 10, you can get the update from
> the BBEdit updates page:
>
>       
>
> You can also use "Check for Updates" on the BBEdit menu to get
> the update.
>
> If you're using an older (pre-10.0) version of BBEdit, you can
> download the BBEdit 10 demo from here to try it out:
>
>       
>
> BBEdit 10.1 has been submitted to the Mac App Store for review.
> We do not know when the Mac App Store will make it available,
> but it will be a free update there as well.
>
> Enjoy,
>
> R.
> --
> Rich Siegel                                 Bare Bones Software, Inc.
>                       
>
> Someday I'll look back on all this and laugh... until they
> sedate me.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: How to get Balance Tags to include the tags

2011-08-27 Thread Dave Hein
rue then
set z to characterOffset of selection
tell window 1 to select insertion point before 
character (z + 2)
if (balance tags) then
set x to characterOffset of selection
set y to x + (length of selection)
inside tag start range (x - 2) end range (x - 2)
set t to tag of result
if ("span" is equal to name of t) then
set tagLength to (end_offset of t) - 
(start_offset of t)
set xOpen to x - tagLength - 1
set lenOpen to tagLength
set yOpen to xOpen + lenOpen
inside tag start range (y + 1) end 
range (y + 1)
set tagLength to (end_offset of tag of 
result) - (start_offset of tag of result)
set xClose to y
set lenClose to tagLength
set yClose to xClose + lenClose
-- now remove the closing and opening 
element tags
tell window 1 to select (characters 
xClose thru yClose)
tell window 1 to delete selection
tell window 1 to select (characters 
xOpen thru yOpen)
tell window 1 to delete selection
else
tell window 1 to select (insertion 
point before character origInsPt)
end if
end if
end if
end repeat
end tell

That is it!!  I assigned a shortcut key to that script and am ripping through 
the nearly 100 files that need to be cleaned up. Very cool.

Now, there could be more to be done here. I probably need an "on error" handler 
(Chris had one, but I didn't keep it). And I might need to be referencing the 
current document with something other than "window 1" ... or maybe check that 
window 1 is actually a text window. And I might want a "beep" if the script did 
no work.

I'll probably add some of that clean up later (I anticipate need this script 
quite a bit). For now, I'm quite happy -- lots of tedium avoided.

Thanks to everyone who contributed suggestions. All were appreciated.

Awesome response folks!

--
Dave Hein

On 23 Aug, 2011, at 18:25, DaveHein wrote:

> I have a lot of HTML files that have do-nothing  blocks in them.
> I'd like to select all the text -- including the opening and closing
> tags -- and then strip HTML. Actually I'd like to just strip the
> opening and closing span tags, and leave what's inside them alone.
> 
> The problem I'm running into is that Balance Tags will select the
> innner HTML but not the span tags themselves. So if I put the cursor
> somewhere on or in "some normal text here" and did a Cmd-
> B, the "some normal text here" would be selected, but the opening
> "" and closing "" would not be selected.
> 
> I cannot see any way to get the tags that delimit the selected text to
> be selected as well.
> 
> Any ideas?
> 
> 
> NOTE: what I really want to do is just click on the opening  tag
> and have a command that will remove that tag (along with it's closing
> tag) ... leaving the inner text alone.
> 
> -- 
> 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.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: BBEdit 10.0.2 (3077) pre-release

2011-08-23 Thread Dave
If you're not doing anything with that horizontal scrollbar, could you
please add it to the file list? That would be awesome. :)

On Aug 22, 6:06 pm, Rich Siegel  wrote:
> *   [216287] Differences lists no longer have a horizontal scrollbar.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Why BBE pisses me off

2011-08-21 Thread Dave Fitch


On Aug 20, 6:45 pm, Kerri Hicks  wrote:

> > Are you f***ing kidding me? Every time I open a file,
> > that stupid pane jams my edit area to the right, and I have to command
> > + 0 AGAIN. I open 200 to 300 files per day. GET THE PICTURE?
>
> Yup. That's why there's a preference for that. It's documented in the
> Help Book, under Expert Preferences. Under the Windows and UI Tweaking
> section, in case you have trouble finding it.

Actually, I had a number of forced restarts [thank you drobo] and at
some point this behaviour changed for me *without* me changing any of
the expert preferences [Aside from defaults write com.barebones.bbedit
Editor_AlwaysOpenQuickFind YES]. If I right click on an open document
and select 'Open in new window' I get a new window with the edit pane,
if I then select 'Hide editor' menu item I get an option to move the
document to a new editor that does not have a file list, so there is
some inconsistency...]

Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: BBedit 10: Images and Alternative Text

2011-08-17 Thread Dave Fitch
I would have thought useful metadata would be in the caption or
keyword fields rather than the comment field... [which I thought
should be used for comments about the image/image creation process,
rather than a description of the image per se]. The problem with EXIF
is that there are so many places where info can be squirrelled away...

On Aug 17, 2:07 am, Rich Siegel  wrote:
>
> Happening as we speak. :-) The unresolved question is whether
> there's useful metadata elsewhere in the image that might
> usefully be applied. The EXIF comment comes to mind, but I have
> no idea whether that's widely used, or not.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Edit multiple documents in split view?

2011-08-11 Thread Dave Fitch
On Aug 11, 7:13 pm, Watts Martin  wrote:
>
> While I wouldn't mind the ability to show multiple files in panes, I'm
> not sure why opening a related file in a separate window isn't at least
> a workable solution. You can see the content of both files at the same
> time as long as the windows aren't on top of one another, after all, right?

You can, but you have to go through the hassle of resizing a project
window, resizing a document window, and then dragging the document
window to the correct. This is something where 'arrange windows' might
be useful but as you say it's not great. Perhaps the solution is to
attach a script to this menu item, as per another thread... :)
Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: Edit multiple documents in split view?

2011-08-11 Thread Dave Fitch
I would second this request: quite often I'm working on related files
and would like to see them in separate panes of the same window
[admittedly the larger the screen you have the more likely you are to
want this...]. Opening a related file in a separate window isn't
really a great solution - I'd like to be able to see the content of
both files *at the same time*.

On Aug 10, 9:02 pm, jive  wrote:
> Hello, I understand that you can edit the same document in split view,
> but can put different documents in multiple panes? (not unlike notepad+
> + and komodo edit.) Just wondering. This is the only thing holding me
> back from purchasing...

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: BBEdit 10 Head-Scratchers

2011-07-28 Thread Dave Fitch
On Jul 28, 6:04 pm, LuKreme  wrote:

> > Second, when I open a BBEdit document it does not rmember the size and 
> > position that the docuemtn was left with previously.
>
> Setup the window the way you want (and any palettes) then go to the Window 
> menu and chose “Save Default Project Window”

That works for *projects* - not for document windows per se. I have
exactly the same problem Marty has - "Save Default Project Window"
does not seem to affect document windows, but it does work on
projects.
Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: Can "Currently Open Documents" go back to where it was?

2011-07-26 Thread Dave Fitch
On Jul 26, 12:53 am, Rich Siegel  wrote:

> Every other section in a project window can be collapsed -- or
> hidden entirely; that may be worth a try. (See the View menu.)

Oooh... that's much better. Is there a way to change the section size
though? Sometimes I have a long list of open documents and have to
scroll through a tiny section [only displaying 6 documents] when if I
could just make the section bigger I could see many more...

Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: .htaccess vs. language modules - BBEdit 10

2011-07-21 Thread Dave Fitch
While the Language Preferences ask for 'a suffix', they seem to want
'.suffix' which to my little mind is not quite the same thing. Will
send a note to support.

On Jul 20, 12:08 pm, Dave Fitch  wrote:
> On Jul 20, 12:23 am, Rich Siegel  wrote:
>
> > On Tuesday, July 19, 2011, Dave Fitch  wrote:
> > >Can anyone tell me how I can get BBEdit 10 to automatically set
> > >.htaccess files to use theApacheConfigurationFile language setting?
>
> > In the Languages preferences, add a Custom Extension Mapping
> > which maps .htaccess toApacheConfigurationFile, and you
> > should be all set.
>
> I tried that without success... although I didn't restart BBEdit after
> I did it. Will restart BBEdit and see if that does the trick.

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: Extensive Horizontal Scroll?

2011-07-21 Thread Dave Fitch
I use a magic mouse and it's very frustrating when the text on screen
suddenly vanishes sideways...

On Jul 20, 2:42 am, Dan  wrote:
> Is there any reasoning behind the extensive available document horizontal
> scroll even if no text extends beyond the window boundary?  Seems odd to my
> eye.  Since most editors I'm used to don't show the horizontal scroll bar
> unless necessary, it indicates to me (too) long lines of code.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: .htaccess vs. language modules - BBEdit 10

2011-07-20 Thread Dave Fitch

On Jul 20, 12:23 am, Rich Siegel  wrote:
> On Tuesday, July 19, 2011, Dave Fitch  wrote:
> >Can anyone tell me how I can get BBEdit 10 to automatically set
> >.htaccess files to use the Apache Configuration File language setting?
>
> In the Languages preferences, add a Custom Extension Mapping
> which maps .htaccess to Apache Configuration File, and you
> should be all set.

I tried that without success... although I didn't restart BBEdit after
I did it. Will restart BBEdit and see if that does the trick.

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: Preferences window

2011-07-20 Thread Dave Fitch

On Jul 20, 12:55 am, LuKreme  wrote:
> The preferences window is not resizable, and the sidebar is not resizable 
> either. This means that I have to waste space on the left side AND I can't 
> see a full list of the available settings in the Preference pane.
>
> OK, I'm sure someone thought this looked really cool, but the usability on 
> this is hovering around a 0.

+1
Sorry, I really hate this too. I don't find the automagic window
resizing helpful, especially when it truncates the list of preference
panes.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


.htaccess vs. language modules - BBEdit 10

2011-07-19 Thread Dave Fitch
Hi there
Can anyone tell me how I can get BBEdit 10 to automatically set
.htaccess files to use the Apache Configuration File language setting?
Have looked in the manual and am none the wiser.
Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


Re: Need Version Management System Recommendations

2011-07-14 Thread Dave Fitch
Does anyone know where a version control beginner can find a good how-
to for Subversion? I've had a copy for a while and am sort-of using
it, but I feel like I've not really got a clue what I am doing. I've
gone through the online tutorials/help but still don't feel that
confident.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Returning Unix filter output in new window

2011-05-07 Thread Dave
If the contents of the window exist as a file you can read from the
file, write your output to another file, and then open that file with
the bbedit command-line tool, and voila!

On May 6, 12:42 am, Hertze  wrote:
> But then I would need a way to pass the contents of my window (the
> text that will be converted) to the script and then have it output in
> a new window. Is that possible? I've tried it in the past with no
> luck.
>
> Joakim

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: TextMate to BBEdit switchers guide?

2011-05-06 Thread Dave
On May 6, 10:53 am, Steve Kalkwarf  wrote:
> Looking through my own scripts, there's nothing that strikes me as useful to 
> anyone else,

That's your perception of your scripts, but, even if accurate, it says
nothing about scripts in general.

> I've always considered scripts, grep patterns, and text factories to be 
> quick, throw away utilities to complete a specific task.

So you never save and reuse Grep patterns? I have so many that I reuse
that it's reached a point where it has become hard to find them on the
menu, even though I've gone through them periodically and renamed and
sorted them to make them easier to find. (I think it would be great if
they could be organized into hierarchical submenus.) My shell scripts
haven't quite reached that point, but a lot of them are very useful.
JSON messages are a lot easier to read if you can format them, and
it's a big help to be able to run all my JavaScript through jsLint and
jasmine tests before I try to check it in, and I imagine I'm not the
only person who would find those useful, and while they didn't take a
lot of time to write, some people might not even know where to start.
The really great thing is that a lot of these scripts need to be
tweaked before they'll work in a specific environment, and that's
often enough to give someone a feel for how things work and
encouragement to try writing a few scripts of their own. The bottom
line, of course, is that, if you are convinced that your scripts have
no lasting value, even as examples, you're welcome to keep them to
yourself.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: TextMate to BBEdit switchers guide?

2011-05-06 Thread Dave
On May 5, 3:23 pm, Gabriel Roth  wrote:
> I'm not familiar with TextMate bundles, but it seems to me that BBEdit's
> Unix Scripts and Unix Filters menus might be an easier target than
> AppleScript for converting existing bundles—since for one thing they can be
> written in any language available from the shell. But I could be
> misunderstanding the situation in any number of ways.

I'm not familiar with TextMate bundles either, but one of the
advantages of AppleScript is in the area of user interaction. Shell
scripts can't pop open a file dialog, menu or even an OK/Cancel
prompt. (Don't even think about using /usr/bin/osascript to provide UI
from within a shell script you're going to run in BBEdit or any other
app.)

> I'd love to see more organized sharing of BBEdit scripts etc.

Me too. Bare Bones hosts a BBEdit Clippings Library and a Language
Module Library, but there are no user-contributed Unix Scripts, Unix
Filters, AppleScripts, Text Factories or Grep Patterns. Even the
Clippings and Language Modules don't seem to get updated with any
regularity. The great thing about sharing these, apart from saving
hours and hours of wheel-reinventing, is that they'd provide examples
for people who would love to use some of these features but just don't
have a clue how to go about it. (I'd think that might increase user
satisfaction, but what do I know?)

There are many isolated cases of fantastic resources like the BBRails
Toolkit, but there's no one place, as far as I know, to find and share
the broader spectrum of user-contributed BBEdit extensions.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Privileges Error When Using Any Unix Filter

2011-02-10 Thread Dave
I've been using my Unix Filters pretty frequently until yesterday when
I started getting an error dialog:
"You do not have sufficient privileges to perform this operation
(MacOS Error code: -5000)"
After this, all of BBEdit's menu items are greyed out except for those
with submenus (which are themselves greyed out) and the window titles
in the Window menu--however, clicking on them does not bring the
corresponding window forward. I can't even rotate windows with cmd-~.
In other words, the app just becomes totally unusable. I have to quit
by right-clicking the dock icon.

I can't think of anything I've changed recently. I repaired
permissions three days ago, but I'm pretty sure I used a filter
successfully since then, and there is nothing mentioned in the Disk
Utility log that appears to have anything to do with BBEdit.

Any ideas on how to get my filters working again?

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: search: "not beginning-of-line followed by string"

2010-12-15 Thread Dave Ratcliffe
Many thanks to Kendall, Patrick, and Ronald.  I worked at SGI for 15
years and have been away from things like the marvelous world of grep
for the past 9. At present I am slowly getting back into
processing text files and while I've had a copy of bbedit for some
time, I am only recently coming up to speed with some of the power it
affords that I used to (sort of) get by with using vi and a scant bit
of perl and shell scripts.

In answer to Ronald's question of how would I do this in vi, looking
back at some of my previous utility scripts, I cannot find what I
thought was in at least one of them that inserted a carriage return at
a given point on a line that had other text between it and the
beginning-of-line.

And now I also am remembering that I never had a great handle on
appreciating the differences - depending on the flavor of dumb-text
editor (or a powerhouse like bbedit) and different OS's one uses -
between
\r line break (carriage return)
\n Unix line break (line feed)
\f page break (form feed)

I note at the end of the "Searching with Grep" section of the online
help manual that O'Reilly & Associates' "Mastering Regular
Expressions," is recommended. Is there anything that any of you think
is superior to this as a comprehensive reference for grep and regular
expressions?

Thanks again for your time and help!

Dave

-- 
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


search: "not beginning-of-line followed by string"

2010-12-14 Thread Dave Ratcliffe
I'm trying to replace the following sort of strings in a very large
text file (where “some_text” is one or more of any group of printable
characters, and “$” is eol):

some_text

with:

some_text$


And I'm trying, unsuccessfully, to remember how to write the
expression in the Find: text box of the Find window that uses the '^'
character in both forms as “beginning-of-line” and as the “not”
operator.  In English, it would be writing a regular expression for
something like:

For every occurrence of not-the-beginning-of-line, followed by “”,
insert a line feed in front of “”.

I may be mixing up grep that I’m used to using in vi with grep the way
it’s implemented in bbedit.

I would be very grateful to learn some way of inserting a “\n” line
feed in between “some_text” and “”

Running bbedit 9.6.1 on Mac OS 10.5.8.

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Still puzzled by Find Differences: Compare Folders

2010-10-09 Thread Dave
Maybe I'm missing something, but I have never understood the
usefulness of the "Only in new" and "Only in old" lists. When I first
started using this feature I assumed there would be some way to copy
these files into the same relative path in the folder where they
didn't exist, but if there is I still haven't figured it out, and the
documentations doesn't say anything about it. There doesn't even seem
to be any way of getting information about the locations of these
files without opening them, and the only way to copy them into the
other folder is by using "Save As..." or "Save a Copy..." for each
file, which is not only tedious, but it doesn't preserve the creation/
modification dates of the original files. So far about the only use
I've been able to make of these lists is to open the files, click the
"Reveal in Finder" icon on each one, then open another Finder window,
navigate to the other folder, then copy the selected file.

Am I just expecting too much of BBEdit by expecting it to be more
helpful in this process, or is there a feature that I'm overlooking?

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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


BBEdit modelines support?

2010-02-04 Thread Dave Ely

Does BBEdit support vim modelines?

It's not in the 9.2.x manual but it does seem to work, albeit somewhat  
erratically.



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


Re: Question about Include functionality...

2009-12-28 Thread Dave
If I were doing this in jsp, I'd get the path to the file that's
including it (${pageContext.request.requestURI}), and use ifs to print
different lines in different files.

But I'd only do that if I had to include the whole file for some
reason. I'd much rather put each line in a different file. In general,
you should make everything as atomic as possible so you can reuse
resources with a minimum of redundancy.

On Dec 26, 9:22 pm, Brian  wrote:
> Hi,
> I'm fairly new to the HTML features of BBEdit.  One of the reasons I
> started using it is for the relatively straightforward include/
> placeholder/variable functionality.  I have not been able to think of
> a way to manipulate them to accomplish this:
>
> Have a standard inline persistent include in an HTML doc;
> The include file is a simple txt doc with 20 or so lines, each of them
> a date;
> Instead of including the *whole* txt file in the HTML doc, have it
> *only* include some defined portion of the txt file-- i.e. certain
> line numbers, or mark them with identifiers (Date1, Date2, etc.).
>
> Is this possible?  I know it could be done with 20 different include
> files (1 per date), but I was hoping it might be possible with just 1?
>
> I imagine with some Perl or Python chops, maybe?  I have no skills
> there, just basic unix shell scripting.
>
> Many thanks,
> Brian

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


  1   2   >