havarddj / typst-preview.el

Typst live preview minor mode for emacs
GNU General Public License v3.0
40 stars 2 forks source link

Support for tinymist #5

Closed felipeacsi closed 2 weeks ago

felipeacsi commented 2 weeks ago

Hello,

since typst-preview was deprecated in favour of tinymist, is there a way to give support for it?

I don't know any internals, but it seems that the develolper of typst-preview added that code to tinymist. From an user standpoint, one can use tinymist preview instead of typst-preview after installing tinymist.

I've looked through the code, but honestly is too much elisp for me, but I would be happy if I can help with anything.

Do you think is it possible to support tinymist?

Thanks in advance,

Felipe

havarddj commented 2 weeks ago

Hi Felipe! Thanks for reminding me about this. The change from typst-preview to tinymist came at a busy time for me, so I forgot to update. It should work now. I've also added some functionality to stop the annoying master prompts in a similar way to how auctex does it, please let me know how it works and if you have any other troubles, concerns or requests.

felipeacsi commented 2 weeks ago

That was really fast!

Unfortunately it doesn't work on my machine. I have the same error: Searching for program: Not found: typst-preview.

Even I've changed my configuration file with: (setq typst-preview-executable "tinymist preview"). But nothing happened.

I'm using doom and I rebuilt everything and still the same error.

Do you have any clue?

havarddj commented 2 weeks ago

Oopsie, my bad. I used eq instead of string= to compare strings and stupidly didn't test. Try now maybe?

felipeacsi commented 2 weeks ago

Now it works! Thank you!

havarddj commented 2 weeks ago

No problem, glad it works!