Re: BBEdit 10.0.2 (3077) pre-release

2011-08-23 Thread Raul Acuña
What's the recommended flow for those who purchased BBEdit from the
Mac App Store? Should we replace the BBEdit installation, or use it
side-by-side?
Regards,
Raul.

On Aug 22, 6:06 pm, Rich Siegel sie...@barebones.com wrote:
 Good { morning, afternoon, evening },

 The announcement of a pre-release version on the list may come
 as a surprise to some of you. :-) When preparing maintenance
 updates (which primarily consist of bug fixes, with few to no
 new features), we're going to post notification of the new
 versions to this list, so that anyone who's interested can take
 the new build for a spin.

 Note that these are _pre-release_ versions. 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
 last public release. 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.

 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 supp...@barebones.com and we will deal
 with it there. This will help us keep the list discussion on
 topic and productive for all list members.

 === =

 version 10.0.2 (3077)   (8/22/2011)

 Additions
 -

 o   (none in this build)

 Changes
 ---

 o   (none in this build)

 Fixes
 -

 *   [213323, 216590] Fixed crash which would occur because the Edit
      Filter button in the text factory options dialog was not disabled
      when it should have been, allowing an inappropriate operation.

 *   [212755] In addition to the beep when starting with Shift or Option
      held down, BBEdit will now notify with Growl.

 -   [213895] Fixed a bug in which `\end` commands which close off
      math-related blocks in TeX documents were not being syntax colored
      as commands (keywords).

 -   [216672] Fixed a bug in the Ruby Language Module where it
 was being
      a little too aggressively lazy in looking for weird
 operators. So
      `=`` is now seen as an assignment followed by the opening
 delim of a
      type of string token, rather than some Frankendelimiter.
 (As if Ruby
      would allow you to have weird delimiters...)

 *   [214387] Fixed bug in which documents would open but fail to show
      the insertion point (or would show the insertion point but not
      accept typing) in situations where
 `Editor_AlwaysOpenQuickFind` was
      turned on.

 *   Fixed bug in which hiding the file view while it had
 keyboard focus
      would leave the focus in the Quick Find box if it was visible,
      rather than in the edit view.

 *   [216287] Differences lists no longer have a horizontal scrollbar.

 *   Fixed bug in which expanding a folder in a project window's file
      list didn't put close widgets in the items corresponding to open
      documents.

 *   [216736, 216745] Fixed bug in which conflicts were not detected
      when assigning a keyboard equivalent for a
 script/filter/etc in the
      Menus  Shortcuts preferences.

 *   [216721, 216744] [NFR] Fixed regression in which Save a Copy
      reported an error instead of functioning as intended.

 =end=

 The package can be downloaded from our web server:

      http://pine.barebones.com/seeding/bbedit-1002_3077.dmg

 Enjoy,

 R.
 --
 Rich Siegel                                 Bare Bones Software, Inc.
 sie...@barebones.com                      http://www.barebones.com/

 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
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 sie...@barebones.com 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
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


Editing ePUB

2011-08-23 Thread pageboy
The ability to edit ePUB files is a great feature and the reason I
have gone back to BBedit from Textmate But...
There are some strange things going on.

An ePUB edited with BBEDIT will not open in Adobe Digital Editions,
but yet it can be validated.

I have tried to do some comparisons between old and new, but there
seems little change other than in the zipped file around the mimetype.

An ePUB edited with BBEDIT can be opened with OxygenXML - saved again
and then works fine.

Can you help with 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
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 Rich Siegel

On Monday, August 22, 2011, Raul Acuña reac...@gmail.com wrote:


What's the recommended flow for those who purchased BBEdit from the
Mac App Store? Should we replace the BBEdit installation, or use it
side-by-side?


If you decide to use the pre-releases, you'll have to use them 
as demos (which isn't a problem in itself), but when the final 
release is available, you won't be able to install it unless you 
delete the BBEdit application (just the application, you can 
leave preferences and application support alone) and then use 
the App Store app to Install the BBEdit from the app store again.


R.
--
Rich Siegel Bare Bones Software, Inc.
sie...@barebones.com  http://www.barebones.com/

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
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 both start and closing HTML tags at once?

2011-08-23 Thread Tudor
On 23 aug., 03:49, Kerri Hicks kerri.hi...@gmail.com wrote:
 I would do it by...(all keystrokes are mine, and are probably not
 defaults)

 Highlighting the line (cmd-L)
 Remove Markup (under Markup Utilities) (cmd-shift-X)
 Use the Clipping for div_class (cmd-shift-D)

 --Kerri

Yes, I tried this, but it's still far from optimal.

I still think the Edit Markup command would be the perfect tool for
editing tags the way I described earlier, and if someone from BBEdit
reads this thread, please consider this as a feature request. It would
be a killer feature which AFAIK has no equivalent in another Mac text
editor, excepting Dreamweaver (which has a feature called Quick Tag
Editor allowing full editing of tags).

Thanks,
Tudor

-- 
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 both start and closing HTML tags at once?

2011-08-23 Thread Christopher Stone
On Aug 22, 2011, at 14:03, Tudor wrote:
 Search and replace is OK if I want to modify many tags at once, but
 for editing a single tag is overkill.

__

That depends.  :)

--
Best Regards,
Chris


tell application BBEdit
  try
tell selection of front text window
  replace \\w[^]* using div class=\foo\ options {search 
mode:grep, case sensitive:false}
  replace /\\w[^]* using /div options {search mode:grep, case 
sensitive:false}
end tell
  on error errMsg number errNum
set sep to ==
set e to sep  return  Error:   errMsg  return  sep  return ¬
   Error Number:   errNum  return  sep
beep
display dialog e
  end try
end tell


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


ePub and Multi-file search

2011-08-23 Thread LuKreme
I tried to open an epub which contains dozens (perhaps a hundred or more) 
instances of ‘shed’ or ‘Shed’ instead of she’d or She’d and do a multi-file 
search, but the files for the epub do not show up in the multi-file search 
dialog.

Am I missing something obvious? It seems the epub is really a disk browser view 
instead of a project view, which seems odd.

In fact, there is no ability to find at all. Even if I select a single file and 
try to find, the “Next” and “Previous” buttons are unavailable.

(BBE 10.0.1)

-- 
The person on the other side was a young woman. Very obviously a young
woman. There was no possible way that she could have been mistaken for a
young man in any language, especially Braille.

-- 
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: Scripting search/replace

2011-08-23 Thread Christopher Stone
On Aug 22, 2011, at 17:20, verdonv wrote:
 After looking through the BBEdit script library, I realize the problem is 
 that the 'replace' actually returns an integer that represents the number of 
 instances of the pattern changed, and not the changed string.

Right.  I explained that already.  Perhaps my explanation wasn't clear?

 I know it seems silly, but given this, and the way that Clippings work, I 
 think I'll have to fudge this so that the applescript does the replace on the 
 selection, then copies the modified selection and returns it to the clipping, 
 so the clipping can insert it... 

I also explained that the major problem remaining is that clippings EAT 
trailing whitespace even if they themselves CONTAIN whitespace.  That takes a 
little working around; the script appended does so.

 Anyways, this is an applescript question and not a BBEdit question, so I'll 
 take the discussion to a more appropriate forum.

Any questions about scripting BBEdit are appropriate to this forum.

--
Best Regards,
Chris


tell application BBEdit
  try
tell front text window
  tell text of selection
replace (\\w+) using ¬
  [\\1] options {search mode:grep, case sensitive:false}
set selText to its contents
set chrOfst to its characterOffset
set selLen to its length
set selLen2 to selLen
  end tell
  repeat while selText ends with return
set selText to text 1 thru -2 of selText
set selLen to selLen - 1
  end repeat
  if selLen2 ≠ selLen then
select (characters chrOfst thru (chrOfst + selLen - 1))
  end if
  set sel to contents of text of selection
  return sel
end tell
  on error errMsg number errNum
set sep to ==
set e to sep  return  Error:   errMsg  return  sep  return ¬
   Error Number:   errNum  return  sep
beep
display dialog e
  end try
end tell


-- 
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: Scripting search/replace

2011-08-23 Thread verdonv
 Right.  I explained that already.  Perhaps my explanation wasn't clear?
No it was fine. It just took a bit to sink in ;-)

 I also explained that the major problem remaining is that clippings EAT 
 trailing whitespace even if they themselves CONTAIN whitespace.  That takes a 
 little working around; the script appended does so.
I ran into something that must have been that in one of my attempts.

I REALLY appreciate your appended script. I'm reading through it now
to see if I can sort out what it's doing. The language constructs are
foreign to me, but I should be able to puzzle through the logic.

Thanks again,
v

On Aug 23, 9:34 am, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 22, 2011, at 17:20, verdonv wrote:

  After looking through the BBEdit script library, I realize the problem is 
  that the 'replace' actually returns an integer that represents the number 
  of instances of the pattern changed, and not the changed string.

 Right.  I explained that already.  Perhaps my explanation wasn't clear?

  I know it seems silly, but given this, and the way that Clippings work, I 
  think I'll have to fudge this so that the applescript does the replace on 
  the selection, then copies the modified selection and returns it to the 
  clipping, so the clipping can insert it...

 I also explained that the major problem remaining is that clippings EAT 
 trailing whitespace even if they themselves CONTAIN whitespace.  That takes a 
 little working around; the script appended does so.

  Anyways, this is an applescript question and not a BBEdit question, so I'll 
  take the discussion to a more appropriate forum.

 Any questions about scripting BBEdit are appropriate to this forum.

 --
 Best Regards,
 Chris

 
 tell application BBEdit
   try
     tell front text window
       tell text of selection
         replace (\\w+) using ¬
           [\\1] options {search mode:grep, case sensitive:false}
         set selText to its contents
         set chrOfst to its characterOffset
         set selLen to its length
         set selLen2 to selLen
       end tell
       repeat while selText ends with return
         set selText to text 1 thru -2 of selText
         set selLen to selLen - 1
       end repeat
       if selLen2 ≠ selLen then
         select (characters chrOfst thru (chrOfst + selLen - 1))
       end if
       set sel to contents of text of selection
       return sel
     end tell
   on error errMsg number errNum
     set sep to ==
     set e to sep  return  Error:   errMsg  return  sep  return ¬
        Error Number:   errNum  return  sep
     beep
     display dialog e
   end try
 end tell
 

-- 
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 both start and closing HTML tags at once?

2011-08-23 Thread Watts Martin

Tudor wrote:


I still think the Edit Markup command would be the perfect tool for
editing tags the way I described earlier, and if someone from BBEdit
reads this thread, please consider this as a feature request.


You should strongly considering submitting this as, you know, a feature 
request. :)


I'm not sure how often this need actually comes up, which might make it 
somewhat low priority, but who knows. I do suspect one could replicate 
this functionality in an AppleScript, though -- find the tag containing 
the insertion point, perhaps by searching backward for the  and then 
forward for the , then replacing both it and the matching closing tag 
with whatever the user inputs in a dialog box. (This could be 
fascinatingly catastrophic if you used it on an HTML tag that didn't 
have a matching close tag, of course, unless it had a list of 
self-closing tags to keep it from doing that.)


--
Watts Martin lay...@gmail.com

--
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: Scripting search/replace

2011-08-23 Thread John Delacour

At 13:54 -0700 20/08/2011, verdonv wrote:



Hi Chris,

Thanks for the feedback and the example. I like the simpler pattern
too :-)

As to why I am activating it from a clipping, well because it is part
of a bigger set of clippings.


So far as I can see you can use shell scripts in clippings just as 
well, and to do this:



My string might look like this...
C EM   Am7F

The result looks like this...
[C] [EM]   [Am7][F]



All you need is:

#! /usr/bin/perl
while () {s~(\w+)~[$1]~g; print}

JD

--
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 both start and closing HTML tags at once?

2011-08-23 Thread Watts Martin

Bucky Junior wrote:


And nested tags would be a challenge too.


Actually, you can call Balance Tags from AppleScript, can't you? Maybe 
that would be the start of working this. Hmm.


--
Watts Martin lay...@gmail.com

--
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: Scripting search/replace

2011-08-23 Thread John Delacour

At 09:03 -0400 20/08/2011, Verdon Vaillancourt wrote:

I am writing a tiny applescript, that I invoke with a clipping, to 
do a search/replace on a string and return the string. I'm mostly 
there.


My string might look like this...
C EM   Am7F

The result looks like this...
[C] [EM]   [Am7][F]



With your string selected, insert this clipping:

#script /posix/path/to/a.scpt#


which calls the AppleScript script:

-- a.scpt
tell application BBEdit to set _sele to get selection
do shell script perl -e '$_ = qq~  _sele  ~;
s~(\\w+)~[$1]~g;  print;'

This will work on multiple line selections as well.

JD

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


How to get Balance Tags to include the tags

2011-08-23 Thread DaveHein
I have a lot of HTML files that have do-nothing span 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 spansome normal text here/span and did a Cmd-
B, the some normal text here would be selected, but the opening
span and closing /span 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 span 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


Re: How to get Balance Tags to include the tags

2011-08-23 Thread Prachi Gauriar
On Aug 23, 7:25 pm, DaveHein dhein.li...@freshthought.com wrote:
 I have a lot of HTML files that have do-nothing span 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.

Why not do a Grep search/replace?

Search: span.*?(.*?)/span
Replace: \1

-Prachi

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