zhaoshenzhai/mathwiki

Keybinding in nvim

Closed this issue · 2 comments

Hello,

First I want to say this whole workflow is fantastic. I have a question regarding the section of the Readme about TikZ diagrams. You mention that you have a keybinding that does what you say. What keybinding are you using for this? In other words, in the .vimrc file (or its nvim analog), what code do you have for this keybinding?

Thanks!

I'm glad you found it helpful!

Here is the script that binds the key that I talked about. It links to my dotfiles repo, which also contains my other nvim configs. Note that there are links everywhere in the README.md (for this repo) that point to snippets of other scripts, which you may find helpful as well.

Cheers :)

Oh, I just realized the keybinding requires the path of the vault, which I set as an environment variable $MATHWIKI_DIR; modify it as appropriate. It also requires some other helper scripts, like newTikZ.sh and getCurrentImage.sh; let me know if something doesn't work on your system, as I have not tested this in any system other than mind.