Re: Best way to filter HTML

2013-05-26 Thread Chaz Larson
Another manual method that I use a lot for this sort of thing:

First copy-paste the whole doc into a new window.
Search and replace all the EOL characters so you've got one big line.
Search and replace p itemprop=articleBody with \n000 target: 
Search and replace /p with \n
Select Process Lines Containing, finding lines containing 000 target: ,
copying lines to new document.
In that new document, search and replace the 000 target:  with .
Now your new document should contain just the stuff you want.

When I type it out like this it seems like a lot of work, but it's really
not.

Chaz Larson - c...@jeck.com


On Sun, May 26, 2013 at 11:05 AM, Marshall Clow mtc...@gmail.com wrote:

 On May 25, 2013, at 1:13 PM, Rob Lewis groble...@gmail.com wrote:

  Never tried any of BBEdit's fancier features. What would be the best way
 to take a file of HTML and extract just the code between the following tag
 pairs:
 
  p itemprop=articleBody and /p
 
  There may be multiple blocks like this in the file.

 Obviously, you want an automated way to do this - but here's a manual one.

 Search for p itemprop=articleBody.
 Make sure it's at the start of a line (insert a NL before it if necessary).
 Click on the disclosure triangle in the gutter, folding up that section
 of HTML.
 Select the blob between the start and end tags; the one that looks like a
 grey ….
 Copy. Switch to new window. Paste.

 Voila!

 -- Marshall

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




-- 
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: BBedit is taking up to 16 seconds to save all files

2013-02-05 Thread Chaz Larson
On Tue, Feb 5, 2013 at 5:13 PM, Lori Eldridge i...@loriswebs.com wrote:

 opened it in a browser. then added 1 space,  saved and it took 12 seconds
 before I could view it in the browser.


Does this mean that the file is open in the browser the whole time?
 Shouldn't cause this, but if so, what if you close the file in the browser
while saving?

chazl

Chaz Larson - c...@jeck.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

--- 
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: BBedit is taking up to 16 seconds to save all files

2013-02-04 Thread Chaz Larson
If it were happening to me, here's some chat about how I'd start diagnosing.

If you start BBEdit, then do the following:

1. command-N
2. command-S
3. Enter

Does your machine lock up for some period of time?

If not, at what point does the delay occur?  If you type a bit of text,
then copy and paste over and over, does the delay begin at some point?  Are
you saving to an external drive?  Does saving to a different drive behave
differently?  How about logging in as a different user?  Is there possibly
something unique about the documents which are showing this problem? I
don't know what that might be, I'm just suggesting it as a possible
starting point.


Chaz Larson - c...@jeck.com


On Mon, Feb 4, 2013 at 12:13 PM, Lorel i...@loriswebs.com wrote:


 Hi Bucky,

 I'm just saving the file while still on my computer. I edit the html then
 need to view it in a browser to see the changes. I tried view in BBedit and
 the hangup after saving occurs there also.

 See my post above to Chris re rebooting, and resetting preferences.

 It doesn't matter if I'm working with just one file or many. I've tried
 using the save in menu with same result.

 Any other ideas?

 Lorel



 On Saturday, January 26, 2013 8:58:37 AM UTC-8, buckyjunior wrote:

 I may not have a solution to your problem but here are some things to
 think about.


 The most recent upgrade for BBedit is 10.5.1 (3250).




 1) Are you saving locally to to an ftp server? It would seem that saving
 to a remote server would take longer than locally.

 2) Your subject line suggests saving more than one file at a time. More
 files = more time.

 3) People more knowledgeable than I might ask which build of the latest
 upgrade. I.e., from the file menu BBEdit = About BBEdit. I get version
 10.5.1 (3250) There may be peculiarities with beta builds. If you are
 using a beta, you best source for information is sup...@barebones.com.
 They _really_ are helpful, knowledgeable, real people at the other end.


 4) Instead of using a web browser (Safari, Firefox, iCab, Chrome, Opera,
 etc.) for minor changes, have you tried BBEdit's Preview with BBEdit? My
 Previewing Pages information starts on page 229 of the manual. Using that
 would at least cut down on the number of times you needed to save to
 wherever allowing more time to tweak code.

 Best wishes in solving your problem. It may be just local to your
 setup/configuration/workflow.
 Bucky

 On Jan 25, 2013, at 11:13 AM, Lorel in...@loriswebs.com wrote:

 BBedit 10.5.1 on Mac Lion 10.7.5 started taking up to 16 seconds to save
 files a couple weeks ago. I think it started when I installed the latest
 upgrade.

 I'm a web designer. I write code by hand. I write some code for a web
 page then view it in a browser and it takes up to 16 seconds every time
 before I can do anything else as it prevents me from doing anything else on
 any other software on the whole computer.

  I tried restarting the computer and also just bbedit and nothing changes.

 When I'm setting up a page with 20 images that need to be arranged in a
 specific arrangement on the page it takes forever to get the page done.

 Any solutions for 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 bbe...@googlegroups.com

 To unsubscribe from this group, send email to
 bbedit+un...@**googlegroups.com

 For more options, visit this group at
 http://groups.google.com/**group/bbedit?hl=enhttp://groups.google.com/group/bbedit?hl=en
 
 If you have a feature request or would like to report a problem,
 please email sup...@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

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




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

Re: BBedit is taking up to 16 seconds to save all files

2013-02-04 Thread Chaz Larson
I'll explain my questions a bit more.  If it happens with a new, blank
document, that would point to something endemic to BBEdit itself in your
configuration.  If it does not happen to a new, blank document, that points
to something related to the documents you are saving.

I imagine you are the only user on the computer.  However, if you create a
new user and try the same thing while logged in as that user, the results
can help illuminate whether it is a global problem with BBEdit or the OS,
or perhaps an issue limited to your user account.

I apologize if I've given offense.  BBedit 10.5.x, on my machine, does not
behave this way.  Something is different between your machine and mine.
 I'm just asking questions by way of trying to ascertain what the
differences might be.

Chaz Larson - c...@jeck.com


On Mon, Feb 4, 2013 at 5:17 PM, Lorel i...@loriswebs.com wrote:

 As I said before, it only locks up for about 16 seconds-- every time I
 save a doc in BBedit. No other software affected.

 I type some text, save -- have to wait 16 seconds -- then I can view in a
 browser or load on the server, etc.

 As I also said before -- this does not have anything to do with external
 hard drive, etc. BBedit is locking up the whole computer when using save.

 I'm the only user on this computer.

 Nothing unique about what I'm doing. Been doing the same work, for 13
 years, using the same computer for last few years, using BBedit for several
 years. This all started with the last BBedit upgrade.

 I contacted bbedit support and they suggested I download and install a
 prerelease version of bbedit which I'll try next.

 Lorel



 On Monday, February 4, 2013 1:49:18 PM UTC-8, Chaz Larson wrote:

 If it were happening to me, here's some chat about how I'd start
 diagnosing.

 If you start BBEdit, then do the following:

 1. command-N
 2. command-S
 3. Enter

 Does your machine lock up for some period of time?

 If not, at what point does the delay occur?  If you type a bit of text,
 then copy and paste over and over, does the delay begin at some point?  Are
 you saving to an external drive?  Does saving to a different drive behave
 differently?  How about logging in as a different user?  Is there possibly
 something unique about the documents which are showing this problem? I
 don't know what that might be, I'm just suggesting it as a possible
 starting point.


 Chaz Larson - ch...@jeck.com


 On Mon, Feb 4, 2013 at 12:13 PM, Lorel in...@loriswebs.com wrote:


 Hi Bucky,

 I'm just saving the file while still on my computer. I edit the html
 then need to view it in a browser to see the changes. I tried view in
 BBedit and the hangup after saving occurs there also.

 See my post above to Chris re rebooting, and resetting preferences.

 It doesn't matter if I'm working with just one file or many. I've tried
 using the save in menu with same result.

 Any other ideas?

 Lorel



 On Saturday, January 26, 2013 8:58:37 AM UTC-8, buckyjunior wrote:

 I may not have a solution to your problem but here are some things to
 think about.


 The most recent upgrade for BBedit is 10.5.1 (3250).




 1) Are you saving locally to to an ftp server? It would seem that
 saving to a remote server would take longer than locally.

 2) Your subject line suggests saving more than one file at a time. More
 files = more time.

 3) People more knowledgeable than I might ask which build of the latest
 upgrade. I.e., from the file menu BBEdit = About BBEdit. I get version
 10.5.1 (3250) There may be peculiarities with beta builds. If you are
 using a beta, you best source for information is sup...@barebones.com.
 They _really_ are helpful, knowledgeable, real people at the other end.


 4) Instead of using a web browser (Safari, Firefox, iCab, Chrome,
 Opera, etc.) for minor changes, have you tried BBEdit's Preview with
 BBEdit? My Previewing Pages information starts on page 229 of the manual.
 Using that would at least cut down on the number of times you needed to
 save to wherever allowing more time to tweak code.

 Best wishes in solving your problem. It may be just local to your
 setup/configuration/workflow.
 Bucky

 On Jan 25, 2013, at 11:13 AM, Lorel in...@loriswebs.com wrote:

 BBedit 10.5.1 on Mac Lion 10.7.5 started taking up to 16 seconds to
 save files a couple weeks ago. I think it started when I installed the
 latest upgrade.

 I'm a web designer. I write code by hand. I write some code for a web
 page then view it in a browser and it takes up to 16 seconds every time
 before I can do anything else as it prevents me from doing anything else on
 any other software on the whole computer.

  I tried restarting the computer and also just bbedit and nothing
 changes.

 When I'm setting up a page with 20 images that need to be arranged in a
 specific arrangement on the page it takes forever to get the page done.

 Any solutions for this?

 --
 --
 You received this message because you are subscribed to the
 BBEdit Talk discussion group

Re: Web hosting recommendations

2012-12-06 Thread Chaz Larson
I've got a small VPS in the Netherlands that's costing me $60/yr [it was
$30 before I added some disk space].

https://inceptionhosting.com/

Large collection of available OSes, great support.

They also have a data center in the US, if you prefer.

chazl


Chaz Larson - c...@jeck.com



On Thu, Dec 6, 2012 at 9:39 AM, Phil Dobbin phildob...@gmail.com wrote:

 On 12/06/2012 04:57 AM, Govinda wrote:

  +1
  Pair gives you SSH and also use git... in even the basic plan.
 
  -Govinda
 
  On Wednesday, December 5, 2012 7:31:52 AM UTC-5, Brian wrote:
 
  pair Networks, Pittsburgh, PA.
  --

 I agree. Their web hosting looks package looks good. But their VPS plan
 is way too expensive. If anybody is thinking going that route, try
 www.digitalocean.com.

 They start at $10 a month  charge by the second so you can spin up an
 instance for a couple of hours if you need to test something for next to
 nothing. I've been using them for six months  have had no down time
 whatsoever.

 Also, apart from bare metal machines, they do desktop distros also but
 no Macs unfortunately, only Linux. Still ssh or git doesn't know nor
 care either way if you're just using bare metal ;-)

 Cheers,

   Phil...

 --
 currently (ab)using
 CentOS 5.8  6.3, Debian Squeeze  Wheezy, Fedora Beefy  Spherical, OS
 X Snow Leopard  Ubuntu Precise  Quantal





-- 
-- 
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: Adding the .png-suffix to image-Links

2011-02-22 Thread Chaz Larson
Assuming all occurences look like the sample below, you could do something like:

search for:
src=../formulaPNG/(.*) title=

replace with:
src=../formulaPNG/\1\.png title=

chazl

Chaz Larson - c...@jeck.com

On Tue, Feb 22, 2011 at 4:16 PM, frank_lapidus
t.flinsp...@googlemail.com wrote:
 Hi folks,
 I have the problem that in my web project there a many HTML-files (800!)
 with image-links without the .png-suffix;-(
 Here is one example: img align=absmiddle alt= border=0 hspace=5
 src=../formulaPNG/70559256_1135261b2da_-7dc6 title= vspace=5/
 Thus I need to add the png-suffix at the end of every link and I need a
 wildcard for 70559256_1135261b2da_-7dc6!
 Any idea how I can achieve that?
 Kind reagrds

 --
 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: Grep Help.

2010-09-10 Thread Chaz Larson
I dealt with this a lot recently in another context.  Your file is not
corrupted.  Some fields just contain end-of-line characters.  For
example, the notes' field in Joan Fink's record contains:

Edward assistant[nl]
427-6119[nl]
562-0176

and the notes field in Aron Maure's record contains:

Jeff Masone[nl]
[nl]
Jack Hirsch, came from ICAA, since Oct 08[nl]

Where [nl] is a end-of-line [someone hit the return key while
entering the data in the notes field.  So, the data is exported just
as it should be, in that what you're seeing is what's stored in the
source.

I can think of a few ways to clean this up, but I'd like to know more
about the data set.  Does every line end with a http://foo.bar.baz;?

chazl

Chaz Larson - c...@jeck.com



On Thu, Sep 9, 2010 at 9:21 AM, m i l e s magicmi...@gmail.com wrote:
 Hi.

 I have data from a OUTLOOK export that's been corrupted.  It appears that 
 Outlook is putting extraneous data from the NOTES field into the TITLE field 
 of the export, which ends up column shifting the resulting records that 
 follow the first record.

 Look at the sample data below: its column shifted the following:

        Low             Normal          Web Page

 Down to the next line, and anything in the notes field gets stuffed into the 
 Title field, where there should be nothing at all.

 How would I fix this with Grep ?

 ==
              Columns
 ==

 Title   First Name      Middle Name     Last Name       Suffix  Company 
 Department      Job Title       Business Street Business Street 2     
 Business Street 3     Business City   Business State  Business Postal Code  
   Business Country/Region Home Street     Home Street 2 Home Street 3 
 Home City       Home State      Home Postal Code        Home Country/Region   
   Other Street    Other Street 2        Other Street 3        Other City  
     Other State     Other Postal Code       Other Country/Region    
 Assistant's Phone       Business Fax    Business Phone  Business Phone 2    
   Callback        Car Phone       Company Main Phone      Home Fax        
 Home Phone      Home Phone 2  ISDN    Mobile Phone    Other Fax       Other 
 Phone     Pager   Primary Phone   Radio Phone     TTY/TDD Phone   Telex   
 Account Anniversary     Assistant's Name        Billing Information     
 Birthday        Business Address PO Box Categories      Children        
 Directory Server        E-mail Address  E-mail Type     E-mail Display Name   
   E-mail 2 Address        E-mail 2 Type   E-mail 2 Display Name   E-mail 3 
 Address        E-mail 3 Type   E-mail 3 Display Name   Gender  Government ID 
 Number    Hobby   Home Address PO Box     Initials        Internet Free Busy  
     Keywords        Language        Location        Manager's Name  Mileage 
 Notes   Office Location Organizational ID Number        Other Address PO Box  
   Priority        Private Profession      Referred By     Sensitivity     
 Spouse  User 1        User 2        User 3        User 4        Web 
 Page

 ===
               Sample Data
 ===

        Joan            Fink            The Dance Center                135 
 Lexington Avenue                    New York        NY      10128             
                                                                               
                                                 212)415  - Amy K. - 
 JF                                                                            
                                                               0/0/00          
         0/0/00                                  jf...@x.org     SMTP  
                                                           Unspecified         
                                                                             
 Edward assistant
 427-6119
 562-0176                               Low                             
 Normal                                          http://www.x.org

        Maure           Aron            World Music/Crash Arts          
 Executive Director      720 Lindist Avenue                      Los Angeles   
   CA      90007                                                               
                                                                     
 617/679.    617)876-                                                  
                                                                               
             0/0/00                  0/0/00                                  
 ma...@x.org     SMTP                                                  
           Unspecified                                                         
                             Jeff Masone

 Jack Hirsch, came from ICAA, since Oct 08
                                Low                             Normal        
                                   http://www.xxx.org

 --
 You received this message because you

Re: Auto insert Time Stamp on Save?

2010-07-07 Thread Chaz Larson
One way would be to let a version control system do this; it wouldn't
happen on every save but on every commit to the repository.  Most I
have worked with use a bit of magic text in the file to trigger this
behavior [-- $Log$ -- or similar]

I realize this is not an answer to the direct question; just offering
it in case you hadn't thought of this route.

chazl

Chaz Larson - c...@jeck.com



On Wed, Jul 7, 2010 at 10:25 AM, verbatim arel...@gmail.com wrote:
 Is there a way to auto insert a time stamp into a document (html/css/
 js/php/pl/txt) with every save? Applescript?

 Instead of having to manually navigate the menus: Edit  Insert [Short|
 Full] Time Stamp

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

-- 
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: MacTeX breaks BBEdit clippings

2009-10-12 Thread Chaz Larson

Marek Stepanek posted a solution to what sounds like the same problem
a little while ago:


Marek wrote:
 After new install on a new computer, my LaTeX-Clippings does not show up
 in BBEdit. There is probably something wrong with the Resource Fork. In
 the Finder this file is shown as a file, to open with Excalibur (! why
 that? I'am never using it!). In my shell it appears normally as a folder:

 marek


To answer the question just for the archives: I dragged the folder on
the desktop, selected it, Cmd + i and I removed the extension .tex ...
Now it is a folder. And back into the Application
Support/BBEdit/Clippings Folder. Now the folder is showing as folder in
the Finder, and this folder is appearing in the clippings menu ...


Chaz Larson - c...@jeck.com


On Mon, Oct 12, 2009 at 11:16 AM, Fritz Anderson
fri...@manoverboard.org wrote:

 I've installed the MacTeX suite, strictly for the command-line tools.
 Unfortunately, MacTeX comes with a bunch of graphical applications.

 A couple of these have claimed the .tex extension as a PACKAGE
 document: A directory named with that extension will be treated in the
 Finder as a single document. I have strong opinions about hijacking a
 file type that is well-known to be handled as flat for the use of some
 sort of worksheet, and could go on at much more length.

 The upshot is that my LaTeX.tex clippings directory has been turned
 into a Finder document, and BBEdit won't recognize it any more. My
 reading of the dump from lsregister is that TeXShop and Excalibur are
 the culprits. I've edited the Info.plists, and done what I can to hit
 lsregister for those applications, but the package flag for .tex in
 Excalibur isn't going away.

 1) Has anybody found a way to kill that package flag?

 2) Is there a workaround in BBEdit to make my TeX clippings work
 again? Bear in mind that I'm jumping rapidly through about 50 .tex
 files.

 This is close to a show-stopper for me, so I'd be grateful for any
 ideas at all. I'm also writing to the macos-tex mailing list.

        — F


 


--~--~-~--~~~---~--~~
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: Objective-C Matching Braces, etc.

2009-06-04 Thread Chaz Larson

On Thu, Jun 4, 2009 at 12:55 PM, dmorgen dmor...@alum.mit.edu wrote:
 Is there any way to get BBEdit to automatically generate a close
 brace, when an opening brace is entered ( also for parentheses,
 square brackets, etc.).  I know it's possible to create clippings to
 do this.  But that requires using additional complicated shortcut keys
 for each situation ... e.g. for an opening brace, I want to type the
 brace, not shift-opt-cmd-x, etc.!

I don't know of a way to get BBEdit to do this itself, but AutoPairs
will add this feature system-wide.

http://www.jwwalker.com/pages/autopairs.html

AutoPairs modifies the behavior of certain keystrokes, to help you
keep paired characters such as parentheses properly matched. For
instance, when you type a left parenthesis, AutoPairs will type the
right parenthesis and a left arrow for you, so that you are ready to
type what goes between the parentheses. This and other pair macros can
be turned on and off individually, and configured differently for
specific applications.

Chaz Larson - c...@jeck.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Jack Stewart's word wrap works...

2009-04-01 Thread Chaz Larson

This is a message sent via gmail using the default settings to see
whether this long line is hard-wrapped at some point other than the
space right before the word space, which is where it got
soft-wrapped in the gmail composition box.


Chaz Larson - c...@jeck.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Files Not Always Saving

2009-03-31 Thread Chaz Larson

On Mon, Mar 30, 2009 at 11:55 PM, Jack Stewart ja...@amug.org wrote:
I use manual version management which is a lot of work. I want to add a 
 more automated version management

My opinion would be to adopt *something* sooner than later.  You can
always migrate to something else if it doesn't suit your needs for
some reason.

Don't let the perfect be the enemy of the good.

Subversion is a good starting point.

Chaz Larson - c...@jeck.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Serializing lines in BBEdit

2009-02-11 Thread Chaz Larson

I basically want to search for 0 @000#@ INDI and upon each find
replace 000# with an incremental integer on each consecutive find
start at 0001, 0002, 0003, etc.

Can someone kick start my brain?

I just exported a Gedcom file from some an online family tree thing
I've been playing with and did this to see how it might work.

Maybe this does what you want, or sparks some ideas.

My file started out looking like this:


0 HEAD
1 FILE familytree-Larson.ged
1 SOUR VERWANDT
2 VERS 1.0
 bunch of vendor info stripped
1 GEDC
2 VERS 5.5.1
2 FORM LINEAGE-LINKED
 other metadata stripped
0 @166862805@ INDI
1 SEX F
1 NAME Jxxx /Larson/
2 GIVN Jxxx
2 SURN Larson
1 RIN 166862805_4
1 CHAN
2 DATE 11 AUG 2008
3 TIME 23:20:27
1 FAMC @20@
0 @166862881@ INDI
1 SEX F
1 NAME Lxxx /Larson/
2 GIVN Lxxx
2 SURN Larson
1 RIN 166862881_3
etc


My steps:

Find \r, replace with *.
Find *0, replace with  *\r0

Now we've got every record on a single line.

---
0 @166862805@ INDI*1 SEX F*1 NAME Jxxx /Larson/*2 GIVN Jxxx*2
SURN Larson*1 RIN 166862805_4...
0 @166862881@ INDI*1 SEX F*1 NAME Lxxx /Larson/*2 GIVN Lxxx*2
SURN Larson*1 RIN 166862881_3..
0 @166861061@ INDI*1 SEX F*1 NAME Exxx /Larson/*2 GIVN Exxx*2
SURN Larson*1 RIN 166861061_4...
---

Select all the lines that contain INDI [in my file they're all
grouped together], and choose Add Line Numbers.

---
1 0 @166862805@ INDI*1 SEX F*1 NAME Jxxx /Larson/*2 GIVN
Jxxx*2 SURN Larson*1 RIN 166862805_4...
2 0 @166862881@ INDI*1 SEX F*1 NAME Lxxx /Larson/*2 GIVN
Lxxx*2 SURN Larson*1 RIN 166862881_3..
3 0 @166861061@ INDI*1 SEX F*1 NAME Exxx /Larson/*2 GIVN
Exxx*2 SURN Larson*1 RIN 166861061_4...
...
53 0 @177839905@ INDI*1 SEX F*1 NAME Axxx /Sx/*2 GIVN
Axxx*2 SURN S*1 DEAT...
54 0 @166860479@ INDI*1 SEX F*1 NAME C /P/*2 GIVN
C*2 SURN P*1 RIN 166860479_4...
55 0 @166864103@ INDI*1 SEX F*1 NAME Kxxx /Rx/*2 GIVN
Kxxx*2 SURN Rx*1 RIN 166864103_4...
---

My sample file had 55 people in it.

Now select various subsets of the lines and Prefix Lines with a 0
to pad them out to the same length:

---
0001 0 @166862805@ INDI*1 SEX F*1 NAME Jxxx /Larson/*2 GIVN
Jxxx*2 SURN Larson*1 RIN 166862805_4...
0002 0 @166862881@ INDI*1 SEX F*1 NAME Lxxx /Larson/*2 GIVN
Lxxx*2 SURN Larson*1 RIN 166862881_3..
0003 0 @166861061@ INDI*1 SEX F*1 NAME Exxx /Larson/*2 GIVN
Exxx*2 SURN Larson*1 RIN 166861061_4...
...
0053 0 @177839905@ INDI*1 SEX F*1 NAME Axxx /Sx/*2 GIVN
Axxx*2 SURN S*1 DEAT...
0054 0 @166860479@ INDI*1 SEX F*1 NAME C /P/*2 GIVN
C*2 SURN P*1 RIN 166860479_4...
0055 0 @166864103@ INDI*1 SEX F*1 NAME Kxxx /Rx/*2 GIVN
Kxxx*2 SURN Rx*1 RIN 166864103_4...
---

Now search, using grep, for: ([0-9]*) (0 @).*(@ INDI.*)\r, replace
with \2\1\3\r.

---
0 @0001@ INDI*1 SEX F*1 NAME Jxxx /Larson/*2 GIVN Jxxx*2 SURN
Larson*1 RIN 166862805_4...
0 @0002@ INDI*1 SEX F*1 NAME Lxxx /Larson/*2 GIVN Lxxx*2 SURN
Larson*1 RIN 166862881_3..
0 @0003@ INDI*1 SEX F*1 NAME Exxx /Larson/*2 GIVN Exxx*2 SURN
Larson*1 RIN 166861061_4...
...
0 @0053@ INDI*1 SEX F*1 NAME Axxx /Sx/*2 GIVN Axxx*2 SURN
S*1 DEAT...
0 @0054@ INDI*1 SEX F*1 NAME C /P/*2 GIVN C*2 SURN
P*1 RIN 166860479_4...
0 @0055@ INDI*1 SEX F*1 NAME Kxxx /Rx/*2 GIVN Kxxx*2 SURN
Rx*1 RIN 166864103_4...
---

Finally, search for *, replace with \r:

---
0 @0001@ INDI
1 SEX F
1 NAME Jxxx /Larson/
2 GIVN Jxxx
2 SURN Larson
1 RIN 166862805_4...
0 @0002@ INDI
1 SEX F
1 NAME Lxxx /Larson/
2 GIVN Lxxx
2 SURN Larson
1 RIN 166862881_3..
0 @0003@ INDI
1 SEX F
1 NAME Exxx /Larson/
2 GIVN Exxx
2 SURN Larson
1 RIN 166861061_4...
...
---

In order to automate the padding of the numbers, you'll need to use a
script of some sort as mentioned.  If this is a one-off thing, maybe
this gets you close.

chazl

-- 
Chaz Larson - c...@jeck.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---