-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Use LaTeX-to-Unicode for other file types #33
Comments
I have oftentimes wanted that too. The proper way to have that would seem to be factoring out the relevant bits in an independent plugin. Except that 1) vim lacks a plugin manager which allows to specify dependencies, and I'd really hate to need to specify in the README (which nobody reads anyway usually) that you need to download something else to get the full functionality, and 2) the LaTeX labels are somehow Julia-specific. The second point is very minor, of course, but the first one is what blocked me. Even more relevant, after Julia 1.0 I hope to have the plugin shipped with vim by default, in which case the chances of someone looking into the README and discovering that they need to get another plugin basically get to 0. In other words, it should just work, like now, anything else is a regression in my opinion. So the alternative could be to provide a configuration option which enables the feature for any file via autoload, perhaps via a whitelist/blacklist pair of options to specify filetypes. It's a bit strange to do this from a filetype-specific plugin though. But unless someone has a better idea, or simply objects to this kind of plan, I may try going down that road, with some refactoring it may be feasible. |
The idea of making it available via a configuration option sounds like a good idea. Considering your goal of including it in vim and the usefulness of this feature not involving Julia I think an unorthodox way of making it available is merited. The quality of this feature is impressive and really useful for general scientific work, so it would be sad if it couldn't be used without ft=julia. P.S. I am just commenting as a user. I hope that is ok |
Totally ok, no worries! |
Ok, I went through a major refactoring and now LaTeX-to-Unicode should be available on all file types. It's a bit of a weird arrangement, basically the L2U stuff is a "guest-plugin" inside the Julia one, but I hope it's useful. Of course, I immediately set
in my I hope everything works as intended. |
Ah and of course refer to the documentation for the details. |
Updated, and works perfectly. Thanks for grate response |
How do you specify just some file types? I'd like to have this functionality only for Julia and Latex files. I have tried combinations such as |
@carlobaldassi Thanks! and sorry for missing the documentation. I went by the project's readme, which only has |
The LaTeX-to-Unicode is a very useful feature in general text editing, so it would be nice to be able to use it for any file type. Is this possible?
The text was updated successfully, but these errors were encountered: