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

Citation auto-completion doesn't work properly #1338

Open
thmmsn opened this issue Jun 8, 2018 · 4 comments
Open

Citation auto-completion doesn't work properly #1338

thmmsn opened this issue Jun 8, 2018 · 4 comments

Comments

@thmmsn
Copy link

thmmsn commented Jun 8, 2018

Auto-pairing curly brackets restrict the citation pop-up from beeing triggered.

If I type \cite{ the closing brackets shows up ( \cite{} automatically) and not the citation box.

If I first type \citea and then move the cursor between e and a, \cite|a ,and then add the curly bracket \cite{a the citation popup shows up. The reference is added and I have to remove the letter 'a'.

@r-stein
Copy link
Member

r-stein commented Jun 8, 2018

Have you added the auto pairing to your user keybindings?

@thmmsn
Copy link
Author

thmmsn commented Jun 16, 2018 via email

@r-stein
Copy link
Member

r-stein commented Jun 22, 2018

That weird. You may open the ST console ctrl+` and run sublime.log_commands(True) and sublime.log_input(True) and then try to press the button again.

@thmmsn
Copy link
Author

thmmsn commented Jul 3, 2018

First case: The citation popup does not show up, but after typing test the console return that a Bib file is found.

chr evt: \ (0x5c)
chr evt: c (0x63)
chr evt: i (0x69)
chr evt: t (0x74)
chr evt: e (0x65)
key evt: shift+alt+8
chr evt: { (0x7b)
command: insert_snippet {"contents": "{$0}"}
chr evt: t (0x74)
chr evt: e (0x65)
chr evt: s (0x73)
chr evt: t (0x74)
TEX root: 'main.tex'
Bib files found:
('lib.bib',)

Second case: The citation popup shows up.

chr evt: \ (0x5c)
chr evt: c (0x63)
chr evt: i (0x69)
chr evt: t (0x74)
chr evt: e (0x65)
chr evt: l (0x6c)
key evt: left
key evt: left
command: move {"by": "characters", "forward": false}
key evt: shift+alt+8
chr evt: { (0x7b)
command: latex_fill_all {"completion_type": "cite", "insert_char": "{"}
TEX root: 'main.tex'
Bib files found:
('lib.bib',)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants