Re: "tags" file for Text Completion

2019-04-20 Thread Roland Küffner
Maybe I did not fully understand what you are trying to achieve, but if you 
just want completion data on a word list, you might take a look at keywords. 
BBEdit’s support folder sports a „Custom Keywords“ section. Just place a file 
with a word list in this folder, give it the proper extionsion (e.g. 
„.markdown“ if you want additional keywords for that language). See p. 32 in 
the manual for the details.

Keywords are also a source for BBEdit’s auto-completion, so this „tag-less“ 
solution might be an option for you. (the additional syntax coloring might even 
come in handy :-)

Roland

-- 
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: "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 things I 
need to do.

Much appreciated,

-SiP 

-- 
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: "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 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: "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 convenient 
> in a single file.
>

May I ask how large this set of names is?


Regards,

  Patrick Woolsey
==
Bare Bones Software, Inc. 

-- 
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: "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 text). :-)




Maybe Rich or Patrick can ring in. Or tell us if there’s another way to 
bulk-add completions.



In general, clippings are the appropriate solution for this 
purpose (or depending on one's specific needs, perhaps an 
external auto-typer app).



Regards,

  Patrick Woolsey
==
Bare Bones Software, Inc. 

--
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: "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 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 tags files. These 
tags

files should be placed in subfolders corresponding to their languages
(found in ). For example, the subfolder containing a Python tags file 
must

be named “Python”."

I created a subfolder named "Text File" and put the "tags" file in it, 
then
restarted BBEdit, and opened a text file. None of my entries are 
visible in

the Completion popup.

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



--
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: "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 tags files. These tags 
files should be placed in subfolders corresponding to their languages 
(found in ). For example, the subfolder containing a Python tags file must 
be named “Python”."

I created a subfolder named "Text File" and put the "tags" file in it, then 
restarted BBEdit, and opened a text file. None of my entries are visible in 
the Completion popup.

-- 
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: "tags" file for Text Completion

2019-04-18 Thread Sam Hathaway

On 18 Apr 2019, at 18:48, Scott in Pollock wrote:


On Wednesday, April 17, 2019 at 10:53:23 AM UTC-7, Sam Hathaway wrote:


Yeah, that’s the same thing. bbedit --maketags calls an embedded 
ctags.




OK I think I am starting to get this. So you have to run it on a 
directory
with files from a dev language to index its various commands and 
functions,

etc..


That’s correct.


There is no way to generate a tag file for simple English terms I
want to add to completions?


If they’re all one-word terms, I suppose you could kludge things. 
Create a file called `terms.h` containing:


```
#define Albertopolis
#define Brobdingnagian
#define Pantagruelian
#define Zyrian
```

Run `bbedit --makestags` in the directory containing your `terms.h` and 
then copy the resulting `tags` file to wherever it is that BBEdit wants 
it.


I haven’t tested this but it’s probably worth a try.


I am stuck with creating snippets or using the
OS completions?


There might be some other way that neither of us know of!
-sam

P.S.: I assume Chris Stone could gin up some fancy AppleScript to 
bulk-add snippets, as is his wont.


--
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: "tags" file for Text Completion

2019-04-17 Thread Sam Hathaway
Yeah, that’s the same thing. `bbedit --maketags` calls an embedded 
`ctags`.

-sam

On 17 Apr 2019, at 11:47, Scott in Pollock wrote:


Thanks Sam... but I was referring to page 32:

"Completion Data
This folder does not exist by default, but you may create it. The
Completion Data folder contains tags files (or aliases to tags files) 
which

can provide additional text completions for editing documents in the
corresponding languages.

These tags files should be in the format generated by ‘bbedit 
--maketags’,

and must be placed in subfolders corresponding to their languages.

Each subfolder should have the exact name of its language as that 
language
appears in the list of installed languages (or on the Languages popup 
menu).


For example, the subfolder containing a Python tags file must be named
“Python”, and the subfolder containing a tags file for ANSI C must 
be named

“ANSI C”."

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



--
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: "tags" file for Text Completion

2019-04-17 Thread Scott in Pollock
Thanks Sam... but I was referring to page 32:

"Completion Data
This folder does not exist by default, but you may create it. The 
Completion Data folder contains tags files (or aliases to tags files) which 
can provide additional text completions for editing documents in the 
corresponding languages.

These tags files should be in the format generated by ‘bbedit --maketags’, 
and must be placed in subfolders corresponding to their languages.

Each subfolder should have the exact name of its language as that language 
appears in the list of installed languages (or on the Languages popup menu).

For example, the subfolder containing a Python tags file must be named 
“Python”, and the subfolder containing a tags file for ANSI C must be named 
“ANSI C”."

-- 
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: "tags" file for Text Completion

2019-04-17 Thread Sam Hathaway
Do you mean a ctags file as detailed in the section “Ctags for 
Enhanced Language Support” of Chapter 14 of the manual?


Here’s the first few lines of my tags file from a rather large C 
project of mine:


```
!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to 
lines/

!_TAG_FILE_SORTED   1   /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHORDarren Hiebert  /dhieb...@users.sourceforge.net/
!_TAG_PROGRAM_NAME  Exuberant Ctags //
!_TAG_PROGRAM_URL   http://ctags.sourceforge.net/official site/
!_TAG_PROGRAM_VERSION   5.9~svn20110310 //
ACCESS_CODECconf/conf_access.h  172;"  d   line:172
ACCESS_MEM_TO_MEM   conf/conf_access.h  171;"  d   line:171
ACCESS_MEM_TO_RAM   conf/conf_access.h  168;"  d   line:168
ACCESS_STREAM   conf/conf_access.h  169;"  d   line:169
ACCESS_STREAM_RECORDconf/conf_access.h  170;"  d   line:170
ACCESS_USB  conf/conf_access.h  167;"  d   line:167
AC_OUTPUTS_Hac_outputs.h2;"d   line:2
ADDR_MAXsensor_inputs.c 9;"d   line:9  file:
AIR_FILTER_LIFETIME_SEC astra.h 10;"   d   line:10
AIR_FILTER_PREFIX   astra_ctrl.c27;"   d   line:27 file:
AIR_FILTER_WARNING_PERIOD_SEC   astra.h 15;"   d   line:15
ALM0_MASK   mcp79411.c  44;"   d   line:44 file:
ALM1_MASK   mcp79411.c  43;"   d   line:43 file:
AMPM_MASK   mcp79411.c  26;"   d   line:26 file:
```

Hope this helps!
-sam

On 17 Apr 2019, at 5:08, 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 
convenient

in a single file.

I have been over the docs but have yet to spy any kind of example.

Thanks,

-SiP

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



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