Replies: 14 comments
-
|
Looks good! Of course, I don't see why not, it would be a nice addition to TeXlyre. Would be great if it's an extension as this would require fewer modifications and can be reused by any codemirror editor. Either way, it should be fine. Do you plan on making an extension? |
Beta Was this translation helpful? Give feedback.
-
|
I'll release it as a browser extension and a codemirror extension hopefully by the end of summer.
True, but it would require ui. |
Beta Was this translation helpful? Give feedback.
-
|
Alright, we can integrate it as is for now and switch to the extension when it's available. I will integrate this in the next few weeks. If you would rather make the contribution yourself, that would be more than welcome |
Beta Was this translation helpful? Give feedback.
-
|
This feature will be optional, of course, and will be disabled by default; however, we'll have to put it on hold for a while. If there is more demand for it, we can put it back on the table. After consulting with a few avid LaTeX users, it seems they unanimously agree that this kind of feature is perceived to be more of a distraction than a utility |
Beta Was this translation helpful? Give feedback.
-
|
Which feature is a distraction? |
Beta Was this translation helpful? Give feedback.
-
|
They don't need to see the equation on hover. If they want to preview it, they will build the document. Makes sense for a beginner to show changes as they type, not very helpful in most practical cases. I am not opposed to having it in TeXlyre, we want features that are beneficial to all levels of expertise. However, it is not on my list of top priorities atm. You are welcome to contribute it though |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
TeXlyre has a builtin settings interface. You can just use that so you won't need to build a specific one for your tool. Check out To test your extension with TeXlyre, simple add it to the |
Beta Was this translation helpful? Give feedback.
-
that doesn't work sadly. The textbox is too small (also no syntax highlighting).
|
Beta Was this translation helpful? Give feedback.
-
|
Once the extension works, we can add those field types to the settings context, no problem. Do you need json or js syntax highlight? |
Beta Was this translation helpful? Give feedback.
-
|
js syntax highlight, it stores the settings as a js file and imports the default export as the setting. |
Beta Was this translation helpful? Give feedback.
-
You can now add the following to your settings.ts to create a multiline field with javascript highlight |
Beta Was this translation helpful? Give feedback.
-
|
texlyre/src/services/EditorLoader.ts Line 48 in dac8c07 is synchronous but importing javascript dynamically is asynchronous, should I just store both the string version and the parsed version in the storage/context? Also the codemirror setting is updating the setting value without validating it first. Is this intentional, cause the valid version would only show up after reloading the page instead of reopening the settings. |
Beta Was this translation helpful? Give feedback.
-
(a bit late, but I just thought about it) For vim or changing other keymaps, it could still be worth it to implement some external api or give support for javascript inside texlyre? (But inside texlyre could also be overkill as some people want to use, but I presume not a lot that it needs a lot of "polish") |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently decoupling the https://github.com/artisticat1/obsidian-latex-suite obsidian plugin from obsidian such that it works with just the codemirror api (and mathjax) at https://github.com/superle3/snippet-leaf.
Would you be interested in integrating this into texlyre?
I could make it a proper codemirror extension such that you only have to make an ui for the settings
or you could add a event for third party extensions like overleaf and I would hook into that with a browser extension.
of the 4 features
I think I am done with the snippet engine and I am partially done with concealment
see image below.
For a proper explanation of the features the original plugin https://github.com/artisticat1/obsidian-latex-suite or the blog that inspired it https://castel.dev/post/lecture-notes-1/ have a better explanation, but the TLDR is: it makes writing latex much easier and less mentally taxing as the writing of the symbols is closer how you would think it in your head or speak about it.
I was able to make the event work with the code below
Beta Was this translation helpful? Give feedback.
All reactions