Hi,

I am somewhat lost, perhaps because I am using the trial copy of BBEdit, the 
evaluation period is over, and I don't know how to use text completion with 
BBEdit (the manual is rather obscure to me).

What I have used with TextWrangler for many years and now with BBEdit is the 
"BBAutoComplete" application. You have to "tune" what to consider words (my 
labels in Latex use ":"), assign a command to the application (mine is 
Control-tab), type a few letters (e.g., in Latex my labels for equations always 
start with "equ:") and eventually invoke the command several times until the 
one you are looking for appears.

BBEditAutoComplete is freeware, and I am in no way related to them: 
<http://c-command.com/bbautocomplete/>

Best,

Nestor

===============================================

> On 9 Jan 2017, at 06:49, Adrian Manea <adrian.c.ma...@gmail.com> wrote:
> 
> Hey Chris,
> 
> Thank you very much for the reply and the script.
> 
> Since I'm an almost complete beginner in the Apple Script world, relying only 
> on bbpackages and pre-made extensions, could you please help further? As I 
> see it, I'm guessing the script you presented only extracts the names of the 
> symbols (without copying to clipboard, I reckon?). How could I proceed 
> further in order to get that choose from list (and copy to clipboard) dialog 
> you mentioned?
> 
> If I manage to do this, everything could be a couple of keystrokes away: cmd 
> + T > search > shortcut to invoke your script > shortcut to get the list to 
> choose from > cmd+C > cmd+V.
> 
> Or I could just remember the name from the list opened by cmd + T and write 
> it by hand. But I sometimes like to give my theorems long labels.
> 
> 
> 
> Thanks again,
> Adrian
> 
> On Monday, January 9, 2017 at 2:00:35 AM UTC+2, Christopher Stone wrote:
> On Jan 08, 2017, at 03:58, Adrian Manea <adrian....@gmail.com> wrote:
>> To keep things short, is there any way I could copy a "named symbol"'s name 
>> from the list displayed by cmd + T?
> 
> Hey Adrian,
> 
> Not that I can see.
> 
>> Concrete use: I'm writing a LaTeX file and I label some theorems. Then I 
>> want to reference them. I write \ref{ and I have to search for all the 
>> labels I used. I prefer using the keyboard (cmd + T) and search for all my 
>> theorems (for which I start the label with th-). Then I'd like to copy that 
>> theorem's label from the named symbols list, to add to the reference command.
>> …
>> However, it would be very, very easy if I could just copy the label's (named 
>> symbol) name.
>> 
>> Is this possible (by default or via a simple script)?
> 
> Hmm...
> 
> Well, here's a method of extracting the names:
> 
> (The Named Symbol sheet must be open when you run the script.)
> 
> -------------------------------------------------------------------------------------------
> # Auth: Christopher Stone
> # dCre: 2017/01/08 17:30
> # dMod: 2017/01/08 17:44
> # Appl: BBEdit & System Events
> # Task: Extract Names of Markers from Named Symbol list sheet.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @System_Events, @BBEdit, @Extract, @Names, 
> @Markers, @Symbol, @List, @Sheet
> -------------------------------------------------------------------------------------------
> 
> tell application "System Events"
>    tell application process "BBEdit"
>       tell window "untitled worksheet"
>          set markerList to value of static text 1 of rows of table 1 of 
> scroll area 1 of sheet 1
>       end tell
>    end tell
> end tell
> 
> set AppleScript's text item delimiters to linefeed
> 
> set markerList to markerList as text
> 
> -------------------------------------------------------------------------------------------
> 
> From here there are various methods of inserting the text into BBEdit.
> 
> An AppleScript with a choose-from-list dialog.
> 
> Formulation of a clipping-set for BBEdit.
> 
> And a few others I can think of.
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://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.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://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.

Reply via email to