Thanks again!

Regards,
Vlad




On 14 Aug 2016, at 14:50, Adrian Manea wrote:

Yes, of course (sorry for the delay):

Assume you start with a .bib file in the folder where you'll create your
.tex file. Assume the folder is called MyFolder

1. Launch Terminal and write *bbedit --maketags /path/to/MyFolder*. This
creates a tags file in that folder (that is actually it, a file called
"tags", with no extension).
2. Launch BBEdit, go to Preferences > Languages > Custom Extension Mappings
(the lower part). Add bib to Suffix and TeX to Language.
3. Create your .tex file in BBEdit, then start writing. Make sure you have enabled completions (Preferences > Editing > Show Text Completions > After a delay in typing > set time). When inserting a citation, write \cite{ and the first 2-3 letters of a citekey. Then it will show you completions from
the .bib (actually tags) file based on the characters you've written.

That's it. I hope I haven't missed anything, it sure works for me this way.



On Friday, August 12, 2016 at 9:58:11 AM UTC+3, Vlad Ghitulescu wrote:

Could you please summarize the whole process?

Thanks!

Regards,
Vlad

On 11 Aug 2016, at 20:11, Adrian Manea wrote:

Okay, so I got a reply from the BBEdit staff and fortunately, it works "as advertised". In fact, the procedure is as Will writes and as I tried. The only thing that I did not do and was mandatory, apparently, is to associate bib files with the TeX language in Preferences > Languages > the lower
section.

Now it works as it should, I type a few letters from the citekey and it
suggests completions.

Thanks Rich and thanks Will! :)

On Thursday, August 11, 2016 at 9:56:16 AM UTC+3, Adrian Manea wrote:

I know that this should be the theory, this is the way it should work. But it simply doesn't. I've written to Support, providing file samples, let's
see what they say.

Thanks for the reply.

On Thursday, August 11, 2016 at 1:22:04 AM UTC+3, Will P. wrote:

Once you have generated the tags file, if you begin typing a citekey and then invoke "Complete" (either from the Edit menu or with the keyboard shortcut), you should see a list of keys that match. This seems to work
fine for me. The list of completions should also appear automatically
assuming you have "Show text completions" set to "After a delay in typing"
in the Editing pane of the Preferences.

On Wednesday, August 10, 2016 at 7:08:04 AM UTC-7, Adrian Manea wrote:

I already tried that and it's not working. I also used the maketags
command for bbedit and it did create a tags file (which is good and
correct), but I don't get autocompletions or suggestions... The only thing
I can do is write a (part of a) citekey, select it then go Find in
Reference, which takes me to the .bib file.

But I want normal completions and suggestions, in a dropdown menu.

What is there to be done?

Thanks.

On Wednesday, August 10, 2016 at 4:15:47 PM UTC+3, Will P. wrote:

You can use ctags to generate a tags file from which BBEdit will
suggest completions. You can add the following lines to your ~/.ctags file
so that it will recognize the .bib entries.

--langdef=bib
--langmap=bib:.bib
--regex-bib=/^@[A-Za-z]+{([^,]*)/\1/b,bib/

On Sunday, August 7, 2016 at 7:19:34 AM UTC-7, Adrian Manea wrote:

Yet another basic question which I hope would help me replace Sublime
with BBEdit:

I've made a full BibTeX .bib file which contains all my references,
that I include in any LaTeX file that I write and I simply cite from there.
Now, as there are hundreds of entries and most of the citekeys were
generated automatically by BibDesk, I have no reason to remember them.
Sublime (or even Textmate and Atom) search in the .bib file for
completions. Say I have a book by Johnson and its cite key is *jh16*.
If I write *\cite{*, it starts suggesting as completions, showing me
the full list of bib entries, wherefrom I can search either "Johnson" or jh
(if I remember).

Long story short: if I include a .bib file as reference in a LaTeX
file, can BBEdit search through it and help me find the reference I want to cite? There are workarounds involving other apps, but I simply want the list display as other text editors provide, in BBEdit. Can it be done?

In Sublime I even made it work with MMD files, citing as *<jh16>* and
again I had the option to view all the entries.

Thank you, once again.

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected] <javascript:>" 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 [email protected] <javascript:>.
To post to this group, send email to [email protected] <javascript:>
.
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
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].
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
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to