Set which text completions show in a document type

2024-05-23 Thread Well, Therefore
When working in an html document, I would like text completions to include 
CSS. Also, in a css document, I don't need certain ones, such as those 
beginning with -moz. So, my question in general is can I specify which 
language's text completions appear in a given type of document? The User 
Guide states "Further, a language preference can now control completion 
behavior...", but I have not been able to figure out how to do so.

macOS 14.5
BBEdit 15.1

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
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/fd8d800f-6d3d-49df-9941-9f3a7c75b281n%40googlegroups.com.


Re: Working example of #SCRIPT# place holder in clipping

2024-05-23 Thread 'Gary Ash' via BBEdit Talk
This doesn't seem to work. is there some sort of permission that has to be 
setup?

On Wednesday, May 22, 2024 at 4:40:23 AM UTC-4 jj wrote:

> Hi Gari,
>
> Use this script for a 90 characters line width:
>
> *tell* *application* "BBEdit"
>
> *set* vCount *to* 91 - (startColumn *of* selection)
>
> *set* vTxt *to* ""
>
> *if* vCount > 0 *then*
>
> *repeat* vCount *times*
>
> *set* vTxt *to* vTxt & "*"
>
> *end* *repeat*
>
> *end* *if*
>
> *return* vTxt
>
> *end* *tell*
>
>
>
> name it *line-of-asterisk.scpt* and place it in the *same folder* as the 
> clipping.
>
> And use this clipping with just the filename:
>
> #SCRIPT line-of-asterisk.scpt#
>
> See BBEdit 15.1 manual p. 336.
>
> HTH
>
> Jean Jourdain
>
> On Sunday, May 19, 2024 at 9:50:19 PM UTC+2 Gary Ash wrote:
>
>> I've got an AppleScript that I'm trying to run from a clipping but it 
>> doesn't seem to work.
>> The script does work from the script editor
>>
>> #SCRIPT /Users/garyash/Library/Application 
>> Support/BBEdit/Scripts/line-of-asterisk.scpt #
>>
>> line-of-asterisk.scpt
>>
>> *tell* *application* "BBEdit"
>>
>> *set* theLineNumber *to* ((*startLine* *of* *selection*) *of* *text 
>> window* 1)
>>
>> *set* theColumnNumber *to* ((*startColumn* *of* *selection*) *of* *text 
>> window* 1)
>>
>> *set* txt *to* ""
>>
>> *repeat* (90 - theColumnNumber) *times*
>>
>> *set* txt *to* (txt & "*")
>>
>> *end* *repeat*
>>
>> *set* *selection* *to* txt
>>
>> *tell* *text* 1 *of* *window* 1
>>
>> *select* *insertion point* *after* *line* theLineNumber
>>
>> *end* *tell*
>>
>> *end* *tell*
>>
>>
>> i did a chmod +x in case that was it
>>
>> thanks for any help
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
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/d2fd93b5-3921-4c2f-842e-92c8c133f41cn%40googlegroups.com.