Skip to content
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

Trying this out in Visual Studio Code but Nothing Appears to Working #4

Open
davidleejy opened this issue May 20, 2024 · 2 comments
Open

Comments

@davidleejy
Copy link

Hi @mrob95,

Thank you for sharing your scripts to type math with Talon. I was trying to use mathfly-talon but can't get it to "start".

I am able to install Talon and use it in the popular IDE, Visual Studio Code (otherwise called VSCode). Next I tried to install mathfly-talon by essentially git cloning all the material in this repository into ~/.talon/user/mathfly-talon directory as per the installation instructions, and then I restarted Talon and VSCode.

While I am able to see Talon's hats above characters in VSCode like in this video shows the use of Mathfly with Talon in VSCode (https://www.youtube.com/watch?v=v0j2_W97_s0), mathfly commands don't seem to work, and would be grateful if there might be someone here would be able to arrive at some ideas of what I could check to troubleshoot. Perhaps the following questions might be helpful:

How do I check that math-fly is enabled in Talon?

Do I have to modify the context in which math-fly talon scripts are assigned be active in because currently this context could be set to work in LyX and Scientific Notebook apps only?

@mrob95
Copy link
Owner

mrob95 commented May 20, 2024

Hi,

Mathfly automatically activates different commands based on the context (the current app and window title).

For VSCode, since it isn't natively a mathematics editor, you'll want the LaTeX command set. This is activated when the current window title contains .tex, the file extension for LaTeX files. If you create a file with the .tex extension, the commands should be activated. You can test this by saying greek alpha, for example.

Let me know if this doesn't work.

@davidleejy
Copy link
Author

davidleejy commented May 21, 2024

Hi @mrob95, thanks for writing back, and taking a look at my situation.

For VSCode, since it isn't natively a mathematics editor, you'll want the LaTeX command set.

By "LaTeX command set", would you happen to be referring to a VSCode extension, or the LaTeX related files in this repository like latex.py and latex.talon?

I have cloned this repository into ~/.talon/user/mathfly-talon, so presumably the LaTeX related scripts are now active unless I missed out on additional steps that need to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants