citation.vim icon indicating copy to clipboard operation
citation.vim copied to clipboard

WIP Denite source

Open DancingQuanta opened this issue 7 years ago • 2 comments
trafficstars

This pull requests add a denite source to citation.vim.

This pull request will start out with porting the unite source's logic to denite python source. Then testing of the denite source and fixing bugs.

Todo:

  • [x] citation.vim source
  • [x] subsources
  • [x] citation_collection source
  • [ ] citation kind
  • [ ] Highlighting
  • [ ] Figure out preview action

DancingQuanta avatar Jul 29 '18 17:07 DancingQuanta

Example configuration:

call denite#custom#var('citation', 'cache_path', 'None')
call denite#custom#var('citation', 'mode', 'zotero')
call denite#custom#var('citation', 'zotero_version', '4')
call denite#custom#var('citation', 'zotero_path', '~/Zotero')
call denite#custom#var('citation', 'zotero_attachment_path', '~/Zotero/library')
call denite#custom#var('citation', 'collection', 'None')
call denite#custom#var('citation', 'bibtex_file', 'None')
call denite#custom#var('citation', 'reverse_order', 'True')
call denite#custom#var('citation', 'et_al_limit', '5')
call denite#custom#var('citation', 'key_clean_regex', '[^A-Za-z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\[\]\^\_\`\|]+')
call denite#custom#var('citation', 'key_title_banned_regex', '\b(a|an|the|some|from|on|in|to|of|do|with|der|die|das|ein|eine|einer|eines|einem|einen|un|une|la|le|l|el|las|los|al|uno|una|unos|unas|de|des|del|d)\W')
call denite#custom#var('citation', 'key_format', 'None')
call denite#custom#var('citation', 'key_outer_prefix', '[')
call denite#custom#var('citation', 'key_inner_prefix', '@')
call denite#custom#var('citation', 'key_suffix', ']')
call denite#custom#var('citation', 'desc_format', '{}: {} "{}" -{}- ({})')
call denite#custom#var('citation', 'fields', '['type', 'key', 'title', 'author', 'date']')
call denite#custom#var('citation', 'source_wrap', '||')
call denite#custom#var('citation', 'highlight_dash', '‾⁻−₋‐⋯┄–—―∼┈─▭▬┉━┅₌⁼‗')
call denite#custom#var('citation', 'highlight_bar', '‖│┃┆∥┇┊┋')
call denite#custom#var('citation', 'highlight_bracket', '⊂〔₍⁽⊃〕₎⁾')
call denite#custom#var('citation', 'highlight_arrow', '◀◁<‹▶▷>›')
call denite#custom#var('citation', 'highlight_colon', '∶∷→⇒≫')
call denite#custom#var('citation', 'highlight_blob', '♯♡◆◇◊○◎●◐◑∗∙⊙⊚⌂★☺☻▪■□▢▣▤▥▦▧▨▩')
call denite#custom#var('citation', 'highlight_tiny', '、。‸₊⁺∘♢☆☜☞♢☼')
call denite#custom#var('citation', 'highlight_text', '″‴‶‷')

DancingQuanta avatar Jul 29 '18 19:07 DancingQuanta

Hey, is this stable?

dmadisetti avatar May 30 '21 19:05 dmadisetti