{"id":21206589,"url":"https://github.com/oncomouse/coc-bibtex","last_synced_at":"2025-07-10T08:33:07.510Z","repository":{"id":35072356,"uuid":"203417957","full_name":"oncomouse/coc-bibtex","owner":"oncomouse","description":"Coc autocompletion and list source for .bib files","archived":false,"fork":false,"pushed_at":"2023-01-07T08:55:06.000Z","size":1124,"stargazers_count":11,"open_issues_count":16,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T23:27:24.214Z","etag":null,"topics":["autocomplete","autocompletion","bibtex","coc","neovim","pandoc","vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oncomouse.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-20T16:54:52.000Z","updated_at":"2024-01-26T21:15:06.000Z","dependencies_parsed_at":"2023-01-15T13:14:15.402Z","dependency_job_id":null,"html_url":"https://github.com/oncomouse/coc-bibtex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oncomouse/coc-bibtex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fcoc-bibtex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fcoc-bibtex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fcoc-bibtex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fcoc-bibtex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oncomouse","download_url":"https://codeload.github.com/oncomouse/coc-bibtex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fcoc-bibtex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264092655,"owners_count":23556355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocomplete","autocompletion","bibtex","coc","neovim","pandoc","vim"],"created_at":"2024-11-20T20:56:10.138Z","updated_at":"2025-07-10T08:33:07.203Z","avatar_url":"https://github.com/oncomouse.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coc-bibtex\n\nThis [Coc](https://github.com/neoclide/coc.nvim) extension adds a BibTeX source to CocList. You can access it by running `:CocList bibtex` in (Neo)Vim. You can also use it as an autocompletion source for BibTeX entries.\n\n## Installation\n\nRun `:CocInstall coc-bibtex` to install.\n\n## Configuration\n\nChanging your `coc-settings.json` file will change the behavior of `coc-bibtex` concerning:\n\n* Setting BibTeX File Location\n* Changing Supported Filetypes\n* Using with LaTeX\n* Silencing Cache Messages\n\n### Setting BibTeX File Location\n\nSet `list.source.bibtex.files` to an array containing your `.bib` files. For instance, in `coc-settings.json`:\n\n~~~json\n{\n// …\n  \"list\": {\n    \"source\": {\n      \"bibtex\": {\n        \"files\": [\n          \"~/my-library.bib\"\n        ]\n      }\n    }\n  }\n// …\n}\n~~~\n\nOr in vimrc:\n\n~~~vim\ncall coc#config('list.source.bibtex', {\n  \\  'files': [\n  \\    '~/my-library.bib'\n  \\  ]\n  \\})\n~~~\n\n### Changing Supported Filetypes\n\nBy default, the following filetypes are supported for completion:\n\n* tex\n* plaintex\n* latex\n* pandoc\n* markdown\n\nTo change this behavior, determine the `filetype` (in Vim) you wish to add. This can be done by running `:set filetype?` with the kind of file you wish to support. Then, edit `coc.source.bibtex.filetypes` to include the `filetype` you wish to support (you will also have to include the default types, too).\n\nIf, for instance, you wanted to add support for `.textile` files, you would need to include the following in your `coc-settings.json` file:\n\n~~~json\ncoc.source.bibtex.filetypes: [\n\t\"tex\",\n\t\"plaintex\",\n\t\"latex\",\n\t\"pandoc\",\n\t\"markdown\",\n\t\"textile\"\n]\n~~~\n\nAnd textile support will be added.\n\n### Using with LaTeX\n\nLaTeX is support for both completion and list management\n\n#### Completion\n\nTo trigger completion with a citation command in LaTeX, instead of the pandoc-style `@`, add the following to `coc-settings.json`:\n\n~~~json\n{\n//...\n  \"coc.source.bibtex.triggerPatterns\": [\"\\\\\\\\cite\\\\{\"],\n  \"coc.source.bibtex.triggerCharacters\": []\n}\n~~~\n\nThis will also work for the `\\cite{}` command. Changing `coc.source.bibtex.triggerPatterns` to `cite\\\\{` will work for any of the commands that end in `cite`, not just `\\cite`.\n\n#### List\n\nThe default configuration for the list source is to insert pandoc-style citations (`[@cite-key]`). If you would like to use this extension with LaTeX, add the following configuration:\n\nIn `coc-settings.json`:\n\n~~~json\n{\n//...\n\n\"list.source.bibtex\": {\n    \"citation\": {\n      \"before\": \"\\\\cite{\",\n      \"after\": \"}\"\n    }\n  }\n}\n//...\n}\n~~~\n\n### Silencing Caching Messages\n\nTo turn off the message that `coc-bibtex` is caching your `.bib` files, set `bibtex.silent` to `true` in your `coc-settings.json` file.\n\n## Useful Commands\n\n`coc-bibtex` provides the following commands (which can be called as `:CocCommand \u003ccommand name\u003e` in Vim):\n\n* `bibtex.reloadLibrary` – This will reload the library, updating the cache with any new changes.\n\n## Todo\n\n* [ ] Add the ability to pass a `.bib` file as an argument to the list call\n* [ ] Color\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fcoc-bibtex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foncomouse%2Fcoc-bibtex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fcoc-bibtex/lists"}