Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.27 KB

Cite

cite is a fzf-based citekey-fuzzyfinder for use in a pandoc-markdown / plain-biblatex workflow. The command will search the current working directory and all parent directories for filenames ending in .bib. From all those files (expected to be biblatex files) a list of citekeys will be extracted and passed to fzf on stdin for interactive selection. Selecting multiple keys is possible by marking them by pressing Tab before hitting Enter. All arguments to cite are interpreted as a single initial query. If only one citekey matches this query, interactive selection will be skipped and the matching citekey will be output directly.

Installation

Simply save cite in some directory included in your PATH, mark it as executable and make sure all dependencies are satisfied.

Dependencies

Usage

cite is used most efficiently when combined with a text editor. I personally use it with vis, using a custom plugin to insert the output of arbitrary shell commands, but use with different (command-line-oriented) text editors should be possible as well.

Known Issues

  • Whitespace in filenames is not supported.