I'm not sure if this should be called an actual plug-in but here it goes.
Based a little bit on the Mathpix/api-examples repository, I wrote a script that uses
jq, to submit a
POST request to the Mathpix API, in order to convert the selected image in to \Latex, or regular text depending on the argument.
Execute the command
Img2Text and it will insert on your current line, text generated from the image you crop on your screen.
Make sure you have installed,
sed but for
If you are using pathogen, just clone the Repo under bundle, and make sure you copy the
bin directory content to an directory on
Take in to mind that this plugin consumes mathpix api, so you need to sign up, get your access keys, and set them up as environment variables.
Also YOU HAVE LIMITED API CALLS according to the service you will have about 1k calls per month, and a limit of 200 per minute, if you want more you need to pay their subscriptions.
I would suggest to put them in the
~/.profile file, but also could apply
export MATHPIX_GROUP="group_id" export MATHPIX_ID="app_id" export MATHPIX_KEY="app_key"