You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be so awesome if, in addition to being able to go to the snippets menu in order to insert snippet, one could simply type, for example, function
then hit a hot key, say <tab> and have the snippet inserted, like def function_name(): variables = something return variables
I don't know how feasible this is, but it would be awesome. There is already something like this called ultisnips (https://github.com/SirVer/ultisnips) as a package for Vim.
The text was updated successfully, but these errors were encountered:
That's an interesting idea, but I think it's beyond the scope of this plugin — or at the very least, beyond my knowledge of how to implement it. My best guess is that you could maybe use something like the mechanism behind latex/unicode completion, because its basic function is to remove some text that you've typed and replace it with something else.
It's also worth noting that Jupyter is moving in the direction of JupyterLab — in the future, it will replace the notebook as we use it now. One of their aims is supposedly backwards-compatibility, but I just don't see how that's possible for extensions (like this one, and any such tab-completer) that need to get so deep into the details of how these things work. So for now, I don't think it's worth my time trying to hack such a thing together. Of course, pull requests are welcome! :)
It would be so awesome if, in addition to being able to go to the snippets menu in order to insert snippet, one could simply type, for example,
function
then hit a hot key, say
<tab>
and have the snippet inserted, likedef function_name(): variables = something return variables
I don't know how feasible this is, but it would be awesome. There is already something like this called ultisnips (https://github.com/SirVer/ultisnips) as a package for Vim.
The text was updated successfully, but these errors were encountered: