-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bibtex-tidy as a new vimetex friend? #2487
Comments
Thanks for mentioning this! I've started by adding a short comment on this plugin in the docs (see Reg. an optional add-on within VimTeX: I'm not sure it is a good idea. Several reasons:
As a short proof of the latter point: put the below code in e.g. your nnoremap <localleader>lT :!bibtex-tidy %:p<cr> You could also use more advanced options: nnoremap <localleader>lT :!bibtex-tidy --omit=id,name --space --sort %:p<cr> |
Dear people from the future: this works a treat; though nnoremap <localleader>bt :!bibtex-tidy --align --space=4 --duplicates --merge=combine %:p<cr> As ever @lervag has been super helpful for a not-too-skilled person like me. Nicest guy in the business - thank you! |
My pleasure! :) |
For those also looking into bibtex-tidy. I've added a "formatter" to use the tools, just a formatting tool. More info on the Neoformat repo: sbdchd/neoformat#456 |
Cool, thanks for the heads up! |
Duplicate keys, bad formatting, and a host of other problems can make working with bib files a pain.
bibtex-tidy is a cool tool that makes this much easier. It has a CLI through npm and I'm wondering if it would be relatively easy to add it to vimtex as an optional add-on?
That is, if bibtex-tidy is on your system (
npm install -g bibtex-tidy
), then execute something like<localleader>lT
to run bibtex-tidy on the current bib file.I don't have the skills to execute this idea unfortunately.
The text was updated successfully, but these errors were encountered: