External Note Editor (vim, vscode, atom, ...)
0.01MB. Updated 2022-05-17.
The author has shared 6 other
item(s).
Description
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
Supported Anki versions:
- 2.1.28-2.1.51+ (Updated 2022-05-17)
To download this add-on, please copy and paste the following code into Anki 2.1:
704320065
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
All Anki 2.1.x Add-Ons Contact Author
Reviews

Windows
When I change editor path. (=c:\\Program Files\\Notepad++\\notepad++.exe) (etc)
It's not working.
When I change editor path. (=c:\\Program Files\\Notepad++\\notepad++.exe) (etc)
It's not working.

Fantastic. Does exactly what it says it does, and does it well. My only wish is that it could also be used to edit card templates as easily, but that's a feature request and not a bug report.

I can configure shortcut properly. Using sublime text in Arch Linux, but the changes I make with the external editor do not get saved in the card :(( Any help?
Comment from author
I'm not sure how it works in sublime text but you have to save the file before exiting the editor. Hope this helps!

Unable to configure shortcuts in MacOS.
Comment from author
Maybe you could try different options for the hotkey? Some key combinations are reserved by Anki.
Cmd+Alt+E should work I think. Note that it is Cmd and not Ctrl.
Cmd+Alt+E should work I think. Note that it is Cmd and not Ctrl.

I still cannot make it work. I changed everything I changed Ctrl Alt x to other combos, tried vim, neovim path tool
Comment from author
This config works for me:
{
"editor": "vim -gf",
"shortcut": "Ctrl+Alt+E"
}
If you can open vim using "vim -gf" from a terminal it also should also work in Anki. Let me know if this works for you.
{
"editor": "vim -gf",
"shortcut": "Ctrl+Alt+E"
}
If you can open vim using "vim -gf" from a terminal it also should also work in Anki. Let me know if this works for you.

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.
When loading 'External Note Editor vim vscode atom ':
Traceback (most recent call last):
File "aqt\addons.py", line 211, in loadAddons
File "C:\Users\cinde\AppData\Roaming\Anki2\addons21\704320065\__init__.py", line 7, in <module>
from aqt.hooks_gen import editor_did_init_shortcuts
ModuleNotFoundError: No module named 'aqt.hooks_gen'
When loading 'External Note Editor vim vscode atom ':
Traceback (most recent call last):
File "aqt\addons.py", line 211, in loadAddons
File "C:\Users\cinde\AppData\Roaming\Anki2\addons21\704320065\__init__.py", line 7, in <module>
from aqt.hooks_gen import editor_did_init_shortcuts
ModuleNotFoundError: No module named 'aqt.hooks_gen'
Comment from author
The latest update fixes this error.

Great work! And is it possible support edit template? css,html need it

Doesn't work on 2.1.48. Tried both on Linux and MacOS, with different shortcuts and editor, and nothing worked
Update:
After updating it now works on MacOS but I'm still having issues on Linux when trying to use vim as an editor. Something about an undefined reference to something sqlite3 related in a shared library named libsparql. I will investigate further, for now I've updated my review to positive :)
Update:
After updating it now works on MacOS but I'm still having issues on Linux when trying to use vim as an editor. Something about an undefined reference to something sqlite3 related in a shared library named libsparql. I will investigate further, for now I've updated my review to positive :)
Comment from author before post was edited
You have to close and reopen the editor for the changes in the config to the shortcut to take effect.
It's also possible that the add-on is incompatible with another add-on you have installed. You could try to disable other add-ons to see if it works then. It's working for me on Linux and Windows in Anki 2.1.48.
It's also possible that the add-on is incompatible with another add-on you have installed. You could try to disable other add-ons to see if it works then. It's working for me on Linux and Windows in Anki 2.1.48.

Thanks! :-)
This add-on works when adding or editing cards, but not in the browser window. Please fix this…
Edit: Thanks for fixing this! ^_^
This add-on works when adding or editing cards, but not in the browser window. Please fix this…
Edit: Thanks for fixing this! ^_^
Comment from author before post was edited
This has been fixed! :)