[ANN] BBEdit 11.1.3 (3749) pre-release

2015-08-24 Thread Rich Siegel

Good { morning, afternoon, evening },

We're working on an update to BBEdit 11 which will add some new 
features and address a few recently reported issues.


Note that this is a _pre-release_ version. The intent is to fix 
bugs and address areas of improvement based on what our 
customers have reported. However, since the software is at this 
point not fully tested, there _may_ be bugs and regressions. If 
this prospect makes you nervous, then sticking with the public 
release versions is your best course of action. Nobody will be 
offended if you choose to do so; you're under no obligation to 
install and use anything but a public release. :-)


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


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




version 11.1.3 (3749)   (2015-08-24)

Additions
-

o   (none in this build)

Changes
---

o   (none in this build)

Fixes
-

*   Progress dialogs now remember their positions after having been
moved.

*   Fixed a cosmetic bug in Text Factory windows in which 
buttons in

items would be drawn outside of the bounds of the scrolling list
of actions (in cases where the list itself was long enough to
require scrolling).

*   Fixed bug in which Text Factory list item actions would draw
incorrectly when there were enough items in the factory to
require scrolling.

=end=

The package can be downloaded from our web server:



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.


Re: Regex Question

2015-08-24 Thread Christopher Stone
On Aug 24, 2015, at 05:28, 'Holger B' via BBEdit Talk  
wrote:
> And in that case, text factories FTW ;)
__

Hey Holger,

Scripts tend to be faster than text factories.

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

--- 
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: Regex Question

2015-08-24 Thread 'Holger B' via BBEdit Talk

On 24/08/2015 at 17:39:08 HKT listmeis...@suddenlink.net wrote:


Essentially you're wanting to find a variable string, massage that string a
fair amount into its final form, and replace it.

The less regular the string is the more difficult it is to manage with a
single-pass regex find/replace.

It becomes much easier to find the string, do all necessary adjustments,
replace it, and repeat.


Hi Chris,

yes, this sounds like what I was trying to do. I will give the 
Script a shot and see what it does.


Basically I was curious if it was possible in one pass and if 
there's something I don't know about that would solve this, but 
it looks like this will always be easier in multiple passes as 
you have pointed out. And in that case, text factories FTW ;)


Thanks everyone for the suggestions & help and have a good day,
Holger

--
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: Regex Question

2015-08-24 Thread Christopher Stone
On Aug 23, 2015, at 22:00, 'Holger B' via BBEdit Talk  
wrote:
> See a portion of the file below. The amount of categories as well as tags are 
> the ones that can vary and getting it in one pass could replace both of them. 
> I suppose it's not possible in one pass though, but am curious if I'm missing 
> something.
__

Hey Holger,

Essentially you're wanting to find a variable string, massage that string a 
fair amount into its final form, and replace it.

The less regular the string is the more difficult it is to manage with a 
single-pass regex find/replace.

It becomes much easier to find the string, do all necessary adjustments, 
replace it, and repeat.

Try this AppleScript and see if it does what you're wanting to accomplish.

---
tell application "BBEdit"
  set bbeditApp to a reference to it
  set foundRec to {found:true}
  
  tell front text window's text
select insertion point before it

repeat while found of foundRec is true
  
  set foundRec to find "^categories:(\\s+^[[:blank:]]+- \\b[\\w ]+\\b)+" 
options ¬
{search mode:grep, case sensitive:false} with selecting match
  
  if found of foundRec is true then
tell bbeditApp
  set newText to replace "\\s+-[[:blank:]]+(\\b[\\w ]+\\b)" using "\\1, 
" searchingString (get contents of text of found object of foundRec) options 
{search mode:grep, case sensitive:false}
  set newText to replace "(categories:)(.+?), $" using "\\1 \\2" 
searchingString newText options {search mode:grep, case sensitive:false}
end tell
set (contents of found object of foundRec) to newText
  end if
  
end repeat

  end tell
end tell
---

If I was doing this job frequently on fairly hefty files I'd probably write a 
Perl text filter to speed things up.

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

--- 
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: Regex Question

2015-08-24 Thread 'Holger B' via BBEdit Talk
Thanks Oliver, this is a great tool, like it a lot. Less 
comprehensive but also nice is .


Cheers,
Holger

On 24/08/2015 at 15:32:18 HKT m...@olivertaylor.net wrote:


Holger,

When I need to figure out a regex pattern I have a rough idea 
of, but want to refine, tools like the one linked below are vital.

https://regex101.com/




On Aug 23, 2015, at 8:10 PM, 'Holger B' via BBEdit Talk

 wrote:


Hi Alex,

this is actually quite a good approach. It doesn't solve it in one pass, but
thinking to start at the end of the line (\r) seems to be a 
good idea which I somehow didn't think of before.


I tried this: \n\s+-\s?(.+)$

and replace with: \1,

which results in "categories:A, B, C,"

Seems to be as close as I can get in one pass and in the end much simpler than

my initial approach ;)


Thanks,
Holger


On 23/08/2015 at 15:05:42 HKT gr...@goldweb.com.au wrote:
  Would it be sufficient to replace s/\n\s+-/,/ — This 
would make

  categories:
- A
- B
- C
  Turn into:
  categories:, A, B, C
  Then a second pass to remove the first comma s/:,/:/
  categories: A, B, C
  Alex


On 23 Aug 2015, at 03:56, 'Holger B' via BBEdit Talk



wrote:
  Hi,
  I know there's some very talented regex people on this 
list, so after

unsuccessfully trying to solve this, I'm giving it a shot here.
  I'm trying to achieve the following search/replace and am 
not sure if it's

even possible in one pass. I believe the solution would be to find an unknown

number of a repeating pattern and capturing each one at the same time.
  The text I'm searching looks like this, with the 
categories ranging from one

to n:

  categories:
- cat 1
- cat 2
- …
- cat n
  The result I would like to achieve should be:
  categories: cat 1, cat 2, …, cat n
  The way I solved it for now is by modifying the pattern 
for different

numbers

of categories, but obviously this is not very efficient…

  Search, e.g. 5 categories:



categories:\r\s+-\s?((.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\

s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)

  Replace:
  categories: \1, \4, \6, \8, \10, \12\r
  Would appreciate any help or pointers on this.
  Thanks and a good weekend,
Holger
  --
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.




--
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: Regex Question

2015-08-24 Thread Oliver Taylor
Holger,

When I need to figure out a regex pattern I have a rough idea of, but want to 
refine, tools like the one linked below are vital. 

https://regex101.com/



> On Aug 23, 2015, at 8:10 PM, 'Holger B' via BBEdit Talk 
>  wrote:
> 
> Hi Alex,
> 
> this is actually quite a good approach. It doesn't solve it in one pass, but 
> thinking to start at the end of the line (\r) seems to be a good idea which I 
> somehow didn't think of before.
> 
> I tried this: \n\s+-\s?(.+)$
> 
> and replace with: \1,
> 
> which results in "categories:A, B, C,"
> 
> Seems to be as close as I can get in one pass and in the end much simpler 
> than my initial approach ;)
> 
> Thanks,
> Holger
> 
>> On 23/08/2015 at 15:05:42 HKT gr...@goldweb.com.au wrote:
>> 
>> Would it be sufficient to replace s/\n\s+-/,/ — This would make
>> 
>> categories:
>> - A
>> - B
>> - C
>> 
>> Turn into:
>> 
>> categories:, A, B, C
>> 
>> Then a second pass to remove the first comma s/:,/:/
>> 
>> categories: A, B, C
>> 
>> Alex
>> 
 On 23 Aug 2015, at 03:56, 'Holger B' via BBEdit Talk 
 
>>> wrote:
>>> 
>>> Hi,
>>> 
>>> I know there's some very talented regex people on this list, so after
>> unsuccessfully trying to solve this, I'm giving it a shot here.
>>> 
>>> I'm trying to achieve the following search/replace and am not sure if it's
>> even possible in one pass. I believe the solution would be to find an 
>> unknown number of a repeating pattern and capturing each one at the same 
>> time.
>>> 
>>> The text I'm searching looks like this, with the categories ranging from one
>> to n:
>>> 
>>> categories:
>>> - cat 1
>>> - cat 2
>>> - …
>>> - cat n
>>> 
>>> The result I would like to achieve should be:
>>> 
>>> categories: cat 1, cat 2, …, cat n
>>> 
>>> The way I solved it for now is by modifying the pattern for different 
>>> numbers
>> of categories, but obviously this is not very efficient…
>>> 
>>> Search, e.g. 5 categories:
>> categories:\r\s+-\s?((.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\
>> s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)
>>> 
>>> Replace:
>>> 
>>> categories: \1, \4, \6, \8, \10, \12\r
>>> 
>>> Would appreciate any help or pointers on this.
>>> 
>>> Thanks and a good weekend,
>>> Holger
>>> 
>>> --
>>> 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.

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