Skip to content
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

Add a feature to add N braces for the number of arguments when completing a command #4

Open
juliankrieger opened this issue Apr 29, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@juliankrieger
Copy link

Latex commands are defined like this
\newcommand{\newcommandname}[Number of Arguments]

Is it possible to add a variable number of braces when completing a command, for example make
\begin complete to \begin{}, and make the braces "jumpable" like with snippet plugins?

I would be willing to look into it, but I'd love a suggestion on where to start.

@chemzqm chemzqm added the help wanted Extra attention is needed label May 29, 2019
@chemzqm
Copy link
Member

chemzqm commented May 29, 2019

Yes, you just need to generate snippet according to current user input, just like what https://github.com/neoclide/coc-emmet does.

@p135246
Copy link

p135246 commented Feb 6, 2020

Hi, are there any news? I would be also very much interested in this sort of auto-expansion. Unfortunately, I do not know the internal mechanisms of coc and vimtex and can not do it other than by defining a new snippet for every LaTeX command...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants