SublimeText/LaTeXTools — pull request #48 by robintw (2012-06-27 15:34:34+00:00)
Title: Added configurable citation listings format

This is a modification I created for my own personal use, as I use a lot of citations in my LaTeX documents but don't like searching for them by name, as I am used to searching for them by author (and author is more unambiguous). I thought I'd tidy it up and make it properly configurable and release it.

The code is fairly well commented and has been tested with a number of changes in the configuration options. I'd like to emphasise that all default functionality remains the same - it's just more configurable!

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

Added configurable functionality for changing the format of the citation listings in the
auto-complete dialogs (both the small Ctrl-Space dialog and the larger dialog created by
the LatexCiteCommand.

The current implementation works exactly the same as the previous code, as all of the default
configuration settings are set to produce the same results as before. However, it allows easy
configuration to change the display of citation listings. For example, setting

latex_cite_completion_display_line1: '{keyword}'
latex_cite_completion_display_line2: '{title}'

in the user settings will produce a multi-line dialog with the keywords on the top line and the titles on the bottom
line. The keywords will be the searchable ones (as many people are used to searching and adding
citations via the citation BibTeX keys), and the titles can be used to check you have the right
item. Similarly, more complex formats can be set up (see comments in the code)