Re: a couple of questions while editing a TOC

2016-10-31 Thread Bee
In Vim 1, 2, 3, 4 all at once: :%s/\s*(Viewed)\s*\n\s*Video\s*\(.*\)\n\s*Save.*/ \1/c \{.*\) capture the duration then in the replace part: \1 replace with space and captured duration In BBEdit 1, 2, 3, 4 all at once: Find:\s*\(Viewed\)\s*\n\s*Video\s*(.*)\n\s*Save.* Replace: \1 (.*) capture

Re: a couple of questions while editing a TOC

2016-10-31 Thread Bee
4. delete all the lines saying "Save " If all you wanted to do is delete lines containing a string: In BBEdit use the menu Text > Process Lines Containing... Find lines containing:Saved [x] Delete matched lines [x] Case sensitive In Vim: :g/Save/d -- This is the BBEdit Talk public discussion

[ANN] BBEdit 11.6.3 (397025) pre-release

2016-10-31 Thread Rich Siegel
Good afternoon folks, We're working on an update to BBEdit 11.6 to 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

[ANN] BBEdit 11.6.3 (397027) pre-release

2016-10-31 Thread Rich Siegel
Good afternoon folks, We're working on an update to BBEdit 11.6 to 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

Re: a couple of questions while editing a TOC

2016-10-31 Thread Vlad Ghitulescu
Hi, Jeffrey! On 30 Oct 2016, at 19:15, Jeffrey Jones wrote: Is it always the case that these three lines occur together? I.e., is "... (Viewed)" always followed by "Video ...", always followed by "Save ..."? Yes - with the only exception of the last line. If these three items don't appear

Re: a couple of questions while editing a TOC

2016-10-31 Thread Vlad Ghitulescu
On 31 Oct 2016, at 17:07, Bee wrote: > 4. delete all the lines saying "Save " > > If all you wanted to do is delete lines containing a string: > > In BBEdit use the menu Text > Process Lines Containing... > Find lines containing:Saved > [x] Delete matched lines > [x] Case sensitive Thanks! I knew

Re: a couple of questions while editing a TOC

2016-10-31 Thread Vlad Ghitulescu
On 30 Oct 2016, at 20:06, Bee wrote: In Vim 1, 2, 3, 4 all at once: :%s/\s*(Viewed)\s*\n\s*Video\s*\(.*\)\n\s*Save.*/ \1/c \{.*\) capture the duration then in the replace part: \1 replace with space and captured duration In BBEdit 1, 2, 3, 4 all at once: Find:\s*\(Viewed\)\s*\n\s*Video\s*(.

Re: a couple of questions while editing a TOC

2016-10-31 Thread Vlad Ghitulescu
Hi, Chris! On 30 Oct 2016, at 20:02, Christopher Stone wrote: On Oct 30, 2016, at 12:54, Vlad Ghitulescu > wrote: Any chance to extend the text filter with my 4th delete: Try this: #!/usr/bin/env perl -0777 -nsw s! *\(Viewed\) *(?=[\n\r])!!ig; s!\nVideo *! !ig; s