Re: How to get truncated output from RegEx search

2019-04-19 Thread Christopher Stone
On 04/19/2019, at 07:53, Gustave Stresen-Reuter mailto:tedmaster...@gmail.com>> wrote: > The problem here, though, is that the search results are sent to a search > results window. Is there any way to recreate the behavior of the grep command > above (the output is just the matching data with no

Re: "tags" file for Text Completion

2019-04-19 Thread Scott in Pollock
On Friday, April 19, 2019 at 8:29:10 AM UTC-7, Rich Siegel wrote: > > > If you aren't too proud to use Markdown(*), you can make this > work as follows: Thanks Rich! I am not sure what 0;" kind:d means, but it is working great. And I can whuff up my own CLM to tie to a file like this for the

Re: "tags" file for Text Completion

2019-04-19 Thread Scott in Pollock
On Friday, April 19, 2019 at 8:09:05 AM UTC-7, Patrick Woolsey wrote: > > May I ask how large this set of names is? 1480 and counting. I was concerned about having this many clippings lying around so that is why I started looking at a tags file. -- This is the BBEdit Talk public

Re: "tags" file for Text Completion

2019-04-19 Thread Patrick Woolsey
On 4/17/19 at 5:08 AM, scottinpoll...@gmail.com (Scott in Pollock) wrote: > Would someone be so kind as to offer up a simple example of a "tags" file > for text completion with Text File? I have been using clippings for this > but have a large group of proper names that would be much more

Re: "tags" file for Text Completion

2019-04-19 Thread Patrick Woolsey
On 4/19/19 at 9:06 AM, list.bbe...@munkynet.org (Sam Hathaway) wrote: I wonder if BBEdit doesn’t read tags files for “Text File” because it’s not a programming language? That is indeed the case; there is no tag format nor any tags generator for human language content (or arbitrary plain

Re: How to get truncated output from RegEx search

2019-04-19 Thread Rich Siegel
On 4/19/19 at 8:53 AM, tedmaster...@gmail.com (Gustave Stresen-Reuter) wrote: The problem here, though, is that the search results are sent to a search results window. Is there any way to recreate the behavior of the grep command above (the output is just the matching data with no filename,

Re: How to get truncated output from RegEx search

2019-04-19 Thread Sam Hathaway
I know this isn’t exactly what you’re asking about, but I wanted to suggest using a tool that’s designed to work with XML rather than with line-oriented text. One such tool is [xml_grep2](https://metacpan.org/pod/distribution/App-xml_grep2/bin/xml_grep2). Installing it on macOS is a little

Re: "tags" file for Text Completion

2019-04-19 Thread Sam Hathaway
I wonder if BBEdit doesn’t read tags files for “Text File” because it’s not a programming language? Maybe Rich or Patrick can ring in. Or tell us if there’s another way to bulk-add completions. Good luck! -sam On 19 Apr 2019, at 8:59, Scott in Pollock wrote: On Thursday, April 18, 2019 at

Re: "tags" file for Text Completion

2019-04-19 Thread Scott in Pollock
On Thursday, April 18, 2019 at 4:16:43 PM UTC-7, Sam Hathaway wrote: > > and then copy the resulting tags file to wherever it is that BBEdit wants > it. > Hmmm the file seems to have been created successfully, but I can't get it to work. BBEdit says "the Completion Data folder contains

How to get truncated output from RegEx search

2019-04-19 Thread Gustave Stresen-Reuter
Hi, Given I've got dozens of folders with more than 1GB of XML documents in them, I'm doing the following grep search from the command line: grep -h -o -R -E '(\{|\[)\s*[a-z]+\s*([0-9]+)\s*(\|.+?)?(\}|\])' * | bbedit I'm then removing duplicates and sorting. This gives me a very nice list of