Re: Is this the best workflow to merge?

2021-08-25 Thread David J
Hi Harvey and Jean, 

Jean, I tried your method and it's really great that I can insert files 
like that. I had no idea. What (it seems) I then have to do is go back to 
Finder and get the file name so I can save the merged files with the file 
name as the title. Where it starts to literally hurt is I have to do this 
thousands of times because* the one folder has thousands of files that need 
to be merged, all with slightly different file names like:*

Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 3.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 4.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 5.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig 6.md
Highlights for Zen and the Art of Motorcycle Maintenance by Robert M. 
Pirsig.md * <- hoping for end result of 3-6 merged like so into one 
file with that title. Same for all files in the same directory with similar 
names like below:*

Highlights for Zero History by William Gibson(1).md
Highlights for Zero History by William Gibson(2).md
Highlights for Zero History by William Gibson.md

Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(1).md
Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams(2).md
Highlights for The Hitchhiker's Guide to the Galaxy by Douglas Adams.md

Journal John's bday (1)
Journal John's bday

Random thought jan 7 (1)
Random thought jan 7 (2)
Random thought jan 7 (3) 
Random thought jan 7

The shell script is a little out of my knowledge, I'll do a little more 
reading. Was advised to also try:

"You can do this by putting the files in a folder and using cat *.md 
>>../somefilename.md should concatenate them to a new file one level up."

But seeing how the files are varied and slightly different like the above 
directory example. Using  *.md >>../somefilename.md   would merge 
everything into one file name? 
*Was hoping there's some way to merge everything in the folder with similar 
files names into there similar file names. *

I'm trying to get my elderly father much of my thoughts, highlights, 
journals while he's still around so I do appreciate the help 

On Wednesday, August 25, 2021 at 1:21:16 PM UTC-7 jj wrote:

> Hi David,
>
> 1. Create a new empty document.
>
> 2. Then choose Menu Edit > Insert > File Contents ...
>
> 3. In the presented dialog click the bottom right "Options" button and 
> check which options you want.
>
> [ ] Include separators
>
> [√] Ensure line break after each inserted file  (Highly recommended)
>
> 4. Select the files you want to insert.
>
> 5. Click insert and you are done.
>
> You can repeat the operation if needed.
> HTH
>
> Jean Jourdain
> On Wednesday, August 25, 2021 at 9:40:06 PM UTC+2 Harvey Pikelberger wrote:
>
>> What about a simple shell script?
>>
>> cat file1 file2 file3 > newfile
>>
>>
>> On Aug 25, 2021, at 12:17, David J  wrote:
>>
>> Hello,
>>
>>
>>
>> I have thousands of Markdown files in the same folder  I'm trying to 
>> merge so my elderly father can read them. File names are like samefilename 
>> (1), samefilename (2), samefilename (3).
>> I"ve been dragging and dropping all the samefilename.md (1, 2, 3, etc) 
>> into one bbedit tab. Then typing in samefilename.txt and saving it as one 
>> text. It's still quite time-consuming with thousands of files that are 
>> split up into threes, fours, etc in one folder.
>> Is there a better way of doing this? Possible to select: samefilename 
>> (1), samefilename (2), samefilename (3)  in Finder, merge and save as 
>> Samefilename.txt back to Finder? Seems like something terminal/bbedit could 
>> do? 
>>
>> With respect, David
>>
>>
>> -- 
>> 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/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/bbedit/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>

-- 
This is the BBEdit Talk public discussion group.

Is this the best workflow to merge?

2021-08-25 Thread David J
Hello,

I have thousands of Markdown files in the same folder  I'm trying to merge 
so my elderly father can read them. File names are like samefilename (1), 
samefilename (2), samefilename (3).
I"ve been dragging and dropping all the samefilename.md (1, 2, 3, etc) into 
one bbedit tab. Then typing in samefilename.txt and saving it as one text. 
It's still quite time-consuming with thousands of files that are split up 
into threes, fours, etc in one folder.
Is there a better way of doing this? Possible to select: samefilename (1), 
samefilename (2), samefilename (3)  in Finder, merge and save as 
Samefilename.txt back to Finder? Seems like something terminal/bbedit could 
do? 

With respect, David


-- 
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/4e725ba2-bbc5-408f-8342-1c356fec843cn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-25 Thread David J
Thanks, I've been trying to clean up text for my elderly father to read,  
old journal entries, highlights and whatnot. This is really helpful.

I have one more question I'll ask in another thread and then try to figure 
out more on my own for a while.

On Tuesday, August 24, 2021 at 6:32:23 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 24, 2021, at 10:39, David J  wrote:
>
>
> Oh, one last thing. Is there a save all command available after doing this?
>
> --
>
> Hey David,
>
> AppleScript can do many things...
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/24 20:30
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # : Then Hard Wrap to the Given Length.
> # : Then save each document.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
> *property* hardWrapWidth : 70
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc
> *tell* *its* *text*
> *remove line breaks*
> *hard wrap* width hardWrapWidth
> *end* *tell*
> *save*
> *end* *tell*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
>
> --
> Best Regards,
> 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 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/ba64af8a-4ea3-4eed-9790-6c59c8ae70f0n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
I figured it out. Selected all that are open and was able to save them. 
Thanks again!

On Tuesday, August 24, 2021 at 8:39:55 AM UTC-7 David J wrote:

> Oh, one last thing. Is there a save all command available after doing 
> this? I read the manual and saw:
>
>  "Here's a new (dynamic) command on the File menu: "Save All in Window". 
> The factory default keyboard equivalent is Command-Option-Shift-S. This is 
> enabled if any (or the only) document in the front window has unsaved 
> changes; choosing it will save all documents in the front window." 
>
> That dynamic command doesn't show up after I run the script. The keyboard 
> shortcut doesn't seem to be saving all open files either. Hmmm. Thanks for 
> any pointers.
>
> On Tuesday, August 24, 2021 at 8:25:13 AM UTC-7 David J wrote:
>
>> This worked well to clean it up. Now I can read these at a proper width. 
>> Thank you!
>>
>> On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com 
>> wrote:
>>
>>> On Aug 22, 2021, at 22:58, David J  wrote:
>>>
>>> Since the end goal was to get the text so I could hard wrap it by 
>>> removing all line breaks first. Is there any easy way to add an additional 
>>> hard wrap on all open documents to the above script?
>>>
>>> --
>>>
>>> Hey David,
>>>
>>> Sure.
>>>
>>> 
>>> # Auth: Christopher Stone
>>> # dCre: 2021/08/22 16:43
>>> # dMod: 2021/08/23 12:27
>>> # Appl: BBEdit
>>> # Task: Remove Line Breaks from Text Documents of Project Window 1.
>>> # : Then Hard Wrap to the Given Length.
>>> # Libs: None
>>> # Osax: None
>>> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, 
>>> @Project, @Window
>>> 
>>> *property* hardWrapWidth : 70
>>> 
>>>
>>> *tell* *application* "BBEdit"
>>>
>>> 
>>> *set* docList *to* *text documents* *of* *project window* 1
>>>
>>> 
>>> *repeat* *with* theDoc *in* docList
>>> *tell* theDoc's *text*
>>> *remove line breaks*
>>> *hard wrap* width hardWrapWidth
>>> *end* *tell*
>>> *end* *repeat*
>>>
>>> 
>>> *end* *tell*
>>>
>>> 
>>>
>>>
>>> --
>>> Best Regards,
>>> 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 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/bd308796-5548-4d71-ac21-c47d130e701fn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
Oh, one last thing. Is there a save all command available after doing this? 
I read the manual and saw:

 "Here's a new (dynamic) command on the File menu: "Save All in Window". 
The factory default keyboard equivalent is Command-Option-Shift-S. This is 
enabled if any (or the only) document in the front window has unsaved 
changes; choosing it will save all documents in the front window." 

That dynamic command doesn't show up after I run the script. The keyboard 
shortcut doesn't seem to be saving all open files either. Hmmm. Thanks for 
any pointers.

On Tuesday, August 24, 2021 at 8:25:13 AM UTC-7 David J wrote:

> This worked well to clean it up. Now I can read these at a proper width. 
> Thank you!
>
> On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com 
> wrote:
>
>> On Aug 22, 2021, at 22:58, David J  wrote:
>>
>> Since the end goal was to get the text so I could hard wrap it by 
>> removing all line breaks first. Is there any easy way to add an additional 
>> hard wrap on all open documents to the above script?
>>
>> --
>>
>> Hey David,
>>
>> Sure.
>>
>> 
>> # Auth: Christopher Stone
>> # dCre: 2021/08/22 16:43
>> # dMod: 2021/08/23 12:27
>> # Appl: BBEdit
>> # Task: Remove Line Breaks from Text Documents of Project Window 1.
>> # : Then Hard Wrap to the Given Length.
>> # Libs: None
>> # Osax: None
>> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, 
>> @Project, @Window
>> 
>> *property* hardWrapWidth : 70
>> 
>>
>> *tell* *application* "BBEdit"
>>
>> 
>> *set* docList *to* *text documents* *of* *project window* 1
>>
>> 
>> *repeat* *with* theDoc *in* docList
>> *tell* theDoc's *text*
>> *remove line breaks*
>> *hard wrap* width hardWrapWidth
>> *end* *tell*
>> *end* *repeat*
>>
>> 
>> *end* *tell*
>>
>> 
>>
>>
>> --
>> Best Regards,
>> 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 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/9dcfdb5a-7917-45c0-9044-4436d57c7711n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-24 Thread David J
This worked well to clean it up. Now I can read these at a proper width. 
Thank you!

On Monday, August 23, 2021 at 10:28:34 AM UTC-7 listmei...@gmail.com wrote:

> On Aug 22, 2021, at 22:58, David J  wrote:
>
> Since the end goal was to get the text so I could hard wrap it by removing 
> all line breaks first. Is there any easy way to add an additional hard wrap 
> on all open documents to the above script?
>
> --
>
> Hey David,
>
> Sure.
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/23 12:27
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # : Then Hard Wrap to the Given Length.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
> *property* hardWrapWidth : 70
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc's *text*
> *remove line breaks*
> *hard wrap* width hardWrapWidth
> *end* *tell*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
>
> --
> Best Regards,
> 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 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/2bad363e-e467-436b-805e-c043398edf3bn%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-22 Thread David J
Hi Chris, 

 Since the end goal was to get the text so I could hard wrap it by removing 
all line breaks first. Is there any easy way to add an additional hard wrap 
on all open documents to the above script? Or is it possible to alter it so 
I could run hard wrap on all open documents as a second operation? Well 
beyond my understanding so really appreciate what you whipped up there.

With respect, David
On Sunday, August 22, 2021 at 3:04:45 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 21, 2021, at 20:07, David J  wrote:
>
>
> If I have multiple files open, can I remove line breaks from them all at 
> once? I've selected all open documents that are in the side tabs, but the 
> remove line breaks option is greyed out. 
>
> --
>
> Hey David,
>
> You can do something like this:
>
> 
> # Auth: Christopher Stone
> # dCre: 2021/08/22 16:43
> # dMod: 2021/08/22 16:43 
> # Appl: BBEdit
> # Task: Remove Line Breaks from Text Documents of Project Window 1.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
> @Window
> 
>
> *tell* *application* "BBEdit"
>
> 
> *set* docList *to* *text documents* *of* *project window* 1
>
> 
> *repeat* *with* theDoc *in* docList
> *tell* theDoc's *text* *to* *remove line breaks*
> *end* *repeat*
>
> 
> *end* *tell*
>
> 
>
> Note that this works only on documents open in the front project window.
>
> The script can be altered to operate on any open document.
>
> --
> Best Regards,
> 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 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/fb00ffbc-7e6d-4f64-a893-5f4640937e67n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-21 Thread David J
Quick additional questions:

If I have multiple files open, can I remove line breaks from them all at 
once? I've selected all open documents that are in the side tabs, but the 
remove line breaks option is greyed out. 

Is this something that I need to do some kind folder search/multi-file 
search and grep? They are all in the same folder.  I'm assuming the bulk 
edit operation to hard wrap text is similar to doing remove line breaks in 
bulk?

I've searched in the manual for bulk edit operation and the faq and I 
clearly must not know the correct wording for this. Thank you for any 
pointers

On Thursday, August 19, 2021 at 11:01:34 AM UTC-7 David J wrote:

> Oops, apparently learning Google groups too and sent a response to Rich 
> private. 
>
> "Better to keep this on the group. :-)
> Once it's unwrapped you can turn on Soft Wrap, or use Hard Wrap to reflow 
> it to a specific width."
>
> This worked, thanks!
>  
>
> On Thursday, August 19, 2021 at 10:18:00 AM UTC-7 sie...@barebones.com 
> wrote:
>
>> On 19 Aug 2021, at 13:16, David J wrote: 
>>
>> > Hello, 
>> > 
>> > I've got a bunch of files that were cleaned up so they are just text. 
>> The 
>> > text looks fine, except I can't for the life of me figure out how to 
>> get it 
>> > to fill up horizontal space so I can read them like a pdf/document. 
>> I've 
>> > played around with hard/soft wrap options for hours and the text still 
>> > stays in a skinny horizontal format. Can someone give me a pointer how 
>> to 
>> > reformat the text (in bulk) so it fits the page width? 
>>
>> "Remove Line Breaks" on the Text menu ought to do the job. 
>>
>> R. 
>>
>>
>> -- 
>> Rich Siegel Bare Bones Software, Inc. 
>>  <https://www.barebones.com/> 
>>
>> Someday I'll look back on all this and laugh... until they sedate me. 
>>
>

-- 
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/49ab4cbf-a642-47e6-a0a9-3b7beead0a0bn%40googlegroups.com.


Re: How to move #tags up to line above and sort doc by tags?

2021-08-19 Thread David J
Hi Fletcher and Chris.

I tried both your methods and they both worked for placing the tags. Then I 
used the pattern to sort lines and that worked as well. That is just wild 
and awesome! 
I'd have sat here a year sorting that out myself. Thank you both.

On Thursday, August 19, 2021 at 2:31:01 PM UTC-7 listmei...@gmail.com wrote:

> On Aug 19, 2021, at 12:20, David J  wrote:
>
> I have a long text that I tagged, I'd like to move those tags up to the 
> end of the last line they are under:
>
> --
>
> Hey David,
>
> I'm thinking something like this:
>
> Find:
>
> \s+((?:#\w+\h*)+)
>
> Replace:
>
> “ \1”
>
> ** Without the quotes.
>
>
> --
> Best Regards,
> 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 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/7257f047-2f8c-4263-941a-82068f1a0f19n%40googlegroups.com.


Re: How to format this text so it expands and fits page width?

2021-08-19 Thread David J
Oops, apparently learning Google groups too and sent a response to Rich 
private. 

"Better to keep this on the group. :-)
Once it's unwrapped you can turn on Soft Wrap, or use Hard Wrap to reflow 
it to a specific width."

This worked, thanks!
 

On Thursday, August 19, 2021 at 10:18:00 AM UTC-7 sie...@barebones.com 
wrote:

> On 19 Aug 2021, at 13:16, David J wrote:
>
> > Hello,
> >
> > I've got a bunch of files that were cleaned up so they are just text. The
> > text looks fine, except I can't for the life of me figure out how to get 
> it
> > to fill up horizontal space so I can read them like a pdf/document. I've
> > played around with hard/soft wrap options for hours and the text still
> > stays in a skinny horizontal format. Can someone give me a pointer how to
> > reformat the text (in bulk) so it fits the page width?
>
> "Remove Line Breaks" on the Text menu ought to do the job.
>
> R.
>
>
> -- 
> Rich Siegel Bare Bones Software, Inc.
>  <https://www.barebones.com/>
>
> Someday I'll look back on all this and laugh... until they sedate me.
>

-- 
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/51e288bd-6e08-48c3-9120-5a0f80f7378bn%40googlegroups.com.


How to move #tags up to line above and sort doc by tags?

2021-08-19 Thread David J
I have a long text that I tagged, I'd like to move those tags up to the end 
of the last line they are under:
*Original:*
"What another would have done as well as you, do not do it. What another 
would have said as well as you, do not say it; what another would have 
written as well, do not write it. Be faithful to that which exists nowhere 
but in yourself — and thus make yourself indispensable." - André Gide
#Curiosity


"It always makes me proud to love the world somehow- hate’s so easy 
compared." - Jack Kerouac

#Love 

"Your mind will answer most questions if you learn to relax and wait for 
the answer." - William S. Burroughs

#Questioning #Questions

*How I'm trying to get it:*

"What another would have done as well as you, do not do it. What another 
would have said as well as you, do not say it; what another would have 
written as well, do not write it. Be faithful to that which exists nowhere 
but in yourself — and thus make yourself indispensable." - André Gide 
#Curiosity


"It always makes me proud to love the world somehow- hate’s so easy 
compared." - Jack Kerouac #Love 

"Your mind will answer most questions if you learn to relax and wait for 
the answer." - William S. Burroughs  #Questioning #Questions

*Then is it possible to sort the doc by specific #tag names? *I've read 
through the manual, but this is way out of my area. Thanks






-- 
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/e155477c-b867-4fd9-bf53-e119d33c5b1an%40googlegroups.com.


How to format this text so it expands and fits page width?

2021-08-19 Thread David J
Hello, 

I've got a bunch of files that were cleaned up so they are just text. The 
text looks fine, except I can't for the life of me figure out how to get it 
to fill up horizontal space so I can read them like a pdf/document. I've 
played around with hard/soft wrap options for hours and the text still 
stays in a skinny horizontal format. Can someone give me a pointer how to 
reformat the text (in bulk) so it fits the page width? 

looks like:  
you do it's a trap if you do go down the
path that's already laid for you it's
going to take you to all the
destinations that are already known it's
going to take you to all of the places
that instinct drove the people before
you but if you want to go somewhere
unique if you want to go somewhere that
only you would go if you want to create
something new and really live a life
that was meant for you because it's
literally crafted by you you have to
take the first steps on faith and as
Rumi said as you start to walk out on
the way the way appears so as you're
 

-- 
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/ce7bdacc-ef76-4a94-8d0f-b861ebebfcf6n%40googlegroups.com.


Re: Trying to remove all empty lines with this grep isn't working

2021-04-27 Thread David J
Hey all,  It turns out that all I had to do was capitalize the R at the end 
as mentioned above. I had the recipe in notes from years ago and was just 
following what I wrote down then. My regex and bbedit understanding is very 
rusty so appreciate everyone chiming in. David
On Tuesday, April 27, 2021 at 8:28:35 AM UTC-7 Patrick Woolsey wrote:

> On 4/26/21 at 7:37 PM, future...@gmail.com (David J) wrote:
>
> >I'm trying to take out any empty lines from a document and 
> >can't figure out why it's not working. I'm adding the text, 
> >then selecting all then adding grep
> >
> >^\s*?\r
> >then replace all with nothing. I'm getting "not found" on any document.
>
>
> Since your above pattern should suffice to remove all blank 
> lines (lines which are empty or contain only whitespace), please 
> turn on the "Show matches" search option as well as View -> Text 
> Display -> Show Invisibles in hopes these may shed some light on 
> the matter.
>
> If it doesn't, then a Zipped sample file is probably in order.
>
> [PS: You need not select anything before performing the Replace 
> All _unless_ you need to limit the scope of this command to a 
> specific part of the document via the "Search in: Selected text 
> only" option.]
>
>
> Regards
>
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.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: <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/3db81b32-962a-4835-a809-6ab48f80fc38n%40googlegroups.com.


Trying to remove all empty lines with this grep isn't working

2021-04-26 Thread David J

 I'm trying to take out any empty lines from a document and can't figure 
out why it's not working. 
I'm adding the text, then selecting all then adding grep
^\s*?\r  
then replace all with nothing. I'm getting "not found" on any document. 
Weirdly, I swear this was working before. Can anyone give some insight 
here? 
  

-- 
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/9ed775bb-05e8-4341-98e0-d37271ed0c4an%40googlegroups.com.


Re: Regex expression to extract sentences that have bold text from a folder of files?

2019-04-27 Thread 'David J' via BBEdit Talk
 Just got around to this again, I'll have a go with your suggestions this 
weekend. Thanks!

On Tuesday, April 23, 2019 at 7:23:56 PM UTC-7, Dave R wrote:
>
> Hi David… 
>
> The only way you can extract them is if you can identify the bold text, so 
> you could do it by finding the  and  and probably other tags in 
> html.. and probably epub too, as I think that is basically html. 
>
> PDF’s i’m not sure of.. 
>
> A single regex won’t do it, you’ll end up with some kind of script or 
> BBEdit Text Factory. 
>
> if html 
> look for content inside these tags 
> if epub 
> … 
> if pdf 
> .. 
> etc. 
>
> To build a regex the best place to start is by finding examples of each 
> thing you want to match. Then show us the examples and we can help with the 
> next steps! 
>
> Cheers, 
>
> Dave 
>
> > On 23-April-2019, at 4:02 PM, 'David J' via BBEdit Talk <
> bbe...@googlegroups.com > wrote: 
> > 
> > I have a folder full of journal entries from over the years that are 
> various file types; .html, epub, pdf. I would like to extract all text that 
> is in bold from them. Is it possible to do with one regex for all the file 
> types in one go?  Thanks! 
> > 
> > -- 
> > 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 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 bbe...@googlegroups.com . 
> > To post to this group, send email to bbe...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/bbedit. 
>
>

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


Regex expression to extract sentences that have bold text from a folder of files?

2019-04-23 Thread 'David J' via BBEdit Talk
I have a folder full of journal entries from over the years that are 
various file types; .html, epub, pdf. I would like to extract all text that 
is in bold from them. Is it possible to do with one regex for all the file 
types in one go?  Thanks!

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-14 Thread 'David J' via BBEdit Talk
Seems to also support pdf searching. I know it won’t search non ocr’d pdf, but 
I wonder, is it fussy about searching pdf in general? 

I converted a ton of pdf to text with caliber for BBEdit, but in the future I’d 
skip that step if BBEdit is good in reading/extracting ocr’d pdf. 

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-14 Thread 'David J' via BBEdit Talk
Thanks!

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-12 Thread 'David J' via BBEdit Talk
Hi Sam,  embarrassing, but in your example “^[^\r]*\r[^\r]*keyword to 
match[^\r]*\r[^\r]*$”

I was leaving “to match” in there thinking that was part of the expression. 
Working fine so far replacing all the words in that section with one keyword. 
So, THANK YOU.

If I wanted to do this search with multiple keywords (matching any provided, 
not all), do you know how I would change the expression to do that? 

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-11 Thread 'David J' via BBEdit Talk
Hi Christopher, 

"Multiple text files?  Where? Clustered together? If so then `grep` from the 
command line works very well and very fast."

That's right, multiple text files all in one parent folder on an external 
drive, but there are many child folders below. I'm new to terminal and grep, 
could I specify a folder and multiple folders below with the expression you 
came up with?

Thanks for also explaining point by point in your post, that was helpful in me 
understanding this stuff more. David

-- 
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: Expression to copy line containing keyword and also previous and next lines?

2019-02-11 Thread 'David J' via BBEdit Talk
Hi Sam, thanks for giving that a shot. I’ve tried search - multi file search 
and searching the keyword got zero occurrences in search results. There should 
be hundreds of results with that keyword 樂

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


Expression to copy line containing keyword and also previous and next lines?

2019-02-11 Thread 'David J' via BBEdit Talk
I’d like to search multiple text files for a keyword, copy those lines along 
with the previous and next lines around that keyword line. Then output these 
lines to a new file. Been trying to figure this one out for hours now, can 
someone show me the way? 

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