* unique bibtex keys (handle conflicting) (use id?)
* nci: translate tex in fields
* translate journal abbreviations in bibtex
* need *something* for docs without sources
   * store at least URL
* "notes" for documents (editable txt file)

* add only opens writable db on doc.sync()
* db version
* rename files when being added?
* separate add and update commands
* set/get title, author, tags as data or values (is this faster?)
* gtk gui, with pdf thumbs:
   "convert -thumbnail 500x -background white -alpha remove file.pdf[0] thumb.png"
   ([0] == pdf page)
* rework db/doc interface
   * doc is just directory and xapian_doc
   * db does write/index on sync

doc:
* add ability to remove source sid
* add ability to replace/remove file
* what to do with doc 'data' field:
  * snippet/summary (current)
  * data for fast retrieval?
  * bib abstract
  * custom annotations/notes
  * nothing

cli:
* utilize meta-data pulled from parser
* update should re-pull from existing source if available
* export should produce full mirror of xapers document structure, with index

nci:
* add update/add commands
* how to test??
* meta <other> for other fields (title, authors, year, etc)
* custom keybindings
* customizable palette

sources:
* add 'hdl': http://handle.net/proxy.html

parser:
* extract metadata from pdfs
* better handle parse errors
* better pdf parser (native python: https://gist.github.com/pazz/5455090)
* parsers for other document types

?
* emacs UI (need json/sexp output)
* store bib data in different format (json instead of bibtex)?
* clear old indexed terms when importing new file/bib?
* vcs integration (git of root)?


BUGS
====

* capitalized prefixed terms are not searchable
  - dcc:T00000
  - key:HaEA2009a
  If the term is capitalized, a colon gets automatically added:
      key:foo -> XBIB|foo
      key:Foo -> XBIB|:Foo

* can not add --file when source contains '/'
  * "xapers add --source=arXiv:hep-th/9806203 --file"
