I am using `on_query_completions` to add some custom completions and was wondering whether it's possible to call a function when a specific completion is selected?
Below is an example for my returned listed. When the user selects `cite`, the curser jumps to the place between the curled brackets {}. Now I would like to automatically call a function (for tex people, I would like to call the function that allows me to select the bibtex key). Is that possible?
Thanks!
- Code: Select all
["cite\t(author year)", "citep{$1}"),
("section\tSection*", "section*{$1}\n$0")]