Closed j1-lee closed 4 years ago
I think I've fixed this now, please test. Also, happy to hear you like the plugin! :)
Thank you so much! <C-x><C-o>
now works smoothly as expected.
Based on your fix, I also updated re.vim (line 54) from:
\ . '\w*cite\w*(?:\s*\[[^]]*\]){1,2}\s*{[^}]*'
to:
\ . '\w*cite\w*(?:\s*\[[^]]*\]){1,2}\s*\*?{[^}]*'
in my machine, as I use deoplete. I would be happy to make a direct contribution to the codebase by issuing a pull request, but I don't have any knowledge about how other completion plugins (e.g., ncm2) would work; I presume they would be analogous, but I am hesitant to just extrapolate this fix (for deoplete) to the others. Please take a look at those parts related to completion plugins.
Thank you so much again. I noticed that you have a wiki plugin as well! I am thrilled to try that, as I like you philosophy of "do one thing and do it well" :+1:
Thank you so much!
<C-x><C-o>
now works smoothly as expected.
Great, happy to hear it!
Based on your fix, I also updated re.vim (line 54) from:
\ . '\w*cite\w*(?:\s*\[[^]]*\]){1,2}\s*{[^}]*'
to:
\ . '\w*cite\w*(?:\s*\[[^]]*\]){1,2}\s*\*?{[^}]*'
Good catch!
in my machine, as I use deoplete. I would be happy to make a direct contribution to the codebase by issuing a pull request, but I don't have any knowledge about how other completion plugins (e.g., ncm2) would work; ...
To make the same update for the other regexes, you need to ensure you use the correct regex syntax. Some of the regexes are vimscript, some are python. I think it should be relatively straightforward. I could do it, but at the same time, I encourage people to contribute, so please go ahead!
Don't worry about making an error, I'll review and help you get it right!
Thank you so much again. I noticed that you have a wiki plugin as well! I am thrilled to try that, as I like you philosophy of "do one thing and do it well" +1
Ah, yes. I quite like my wiki plugin as well, although it is not really as "mature" as vimtex. Still, I use it way more, and for me, having my notes well structured in a very accessible and easily navigatable wiki is perhaps the best life hack! Today I generally make notes about anything, and I don't worry so much about if I need it. I link it as I go forward, and when I need things, I often find I have made some relevant notes. I also write a daily journal at work that I interconnect with this system. I'm probably taking it too far, but I can only say it works very well for me!
I try to address issues and requests for wiki.vim as well, so if you were to use it, please feel free to open issues and raise comments, ideas, bugs, and so on!
Great, and thanks for kindly and detailed comments, as well as encouragement! I'll try working on this and learn how to use git to make contribution then; it would be a helpful learning experience for me. Thanks again for encouraging me :smile:
Issue Thank you for this amazing plugin!
It seems like vimtex does not provide citation completion (from .bib file) for star-variants of citation commands (e.g.,
\cite*
,\citet*
,\citep*
) innatbib
.The minimal example is as follows (I use neovim 0.4.3, and vim-plug as the plugin manager):
minimal.vim
minimal.bib
minimal.tex («»: current cursor position)
Commands/Input I attempt completion with
<C-x><C-o>
at«»
.Observed Behaviour Nothing happens (i.e., no match).
Expected Behaviour I expect
berry1995automobile
to be inserted at the cursor position.When I replace the command with
\citet
(the un-starred counterpart) and retry completion with<C-x><C-o>
, thenberry1995automobile
is inserted, as expected.Output from VimtexInfo