ojsheikh / unicode-latex

A visual studio code extension to insert Unicode symbols given LaTeX symbol names
MIT License
28 stars 26 forks source link

Setting to input unicode-latex directly in editor #2

Closed cossio closed 6 years ago

cossio commented 7 years ago

I am thinking of the behavior of the atom latex completions extension:

https://github.com/JunoLab/atom-latex-completions

For me having to open the command, enter "Insert Unicode ...", and finally typing '\alpha', is a hassle. It would be nice if (perhaps by doing some config), \alpha be replaced directly with the unicode character, maybe by pressing TAB.

Could this be supported with this extension?

ojsheikh commented 6 years ago

Sorry for not looking into this for such a long time.

Doing it the way atom extension does it should be possible by providing the completions as snippets, or possibly by registering a CompletionItemProvider.

ojsheikh commented 6 years ago

Added autocompletion last week. It is currently only for plain text files as I rather not pollute the list of completions, especially for languages where '\' is used extensively. Feel free to open an issue if that is insufficient for your use-case(s).

The implementation uses a CompletionItemProvider instead of snippets because snippets seem to require whitespace between symbols.

varkor commented 6 years ago

Is there any way to enable support for other languages, for instance Coq (.v files)?

jotaf98 commented 2 years ago

I'd also like to enable auto-complete in another language. Could this be user-configurable? (E.g. choose a list of file extensions or languages in settings)