Skip to content

Commit

Permalink
Merge pull request #40 from yoshum/master
Browse files Browse the repository at this point in the history
Added a feature to look for .bib files in designated directories.
  • Loading branch information
Focus committed Mar 12, 2016
2 parents fe7e066 + a4a7e71 commit 37b02cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cite-view.coffee
Expand Up @@ -75,6 +75,8 @@ class CiteView extends SelectListView
basePath = basePath + pathModule.sep
for bfpath in bibFiles
result = result.concat(FindLabels.getAbsolutePath(basePath, bfpath) )
for bibDir in atom.config.get("latexer.directories_to_search_bib_in")
result = result.concat(FindLabels.getAbsolutePath(bibDir, bfpath) )
result

getBibFileFromText: (text) ->
Expand Down
6 changes: 6 additions & 0 deletions lib/latexer.coffee
Expand Up @@ -12,6 +12,12 @@ module.exports = Latexer =
items:
type: "string"

directories_to_search_bib_in:
type: "array"
default: []
items:
type: "string"

autocomplete_environments:
type: "boolean"
default: true
Expand Down

0 comments on commit 37b02cb

Please sign in to comment.