Opens Markdown files in Typora.
Opens Markdown files in Typora. The provided command typora.open opens files that use Markdown language mode (.md,.mdown.markdown) in Typora editor. Because of some obscure problem, opening files in Typora via Node's childProcess doesn't work (and consequently any extensions that use npm 'open' package as well). Customizations can be made to a wide range of Emacs' functions through a Lisp dialect (Emacs Lisp). A robust list of existing Lisp extensions include the practical (git integration, syntax highlighting, etc) to the utilitarian (calculators, calendars) to the sublime (chess, Eliza).
Features
The provided command typora.open
opens files that use Markdown language mode (.md, .mdown,.markdown) in Typora editor.
Because of some obscure problem, opening files in Typora via Node's childProcess
doesn't work (and consequently any extensions that use npm 'open' package as well). No other extension that I tried worked for me, so I wrote this. This extension uses VSCode terminal to run Typora.
Extension also contributes context menu commands (in editor and explorer as well) and status bar button.
Requirements
You must have Typora installed and typora.exe in the system's PATH.To add Typora to your PATH, you can check this guide.
Known Issues
Presumably it will work on all platforms, but at the moment I have tested it on Windows only.
Typora has multiple tabs, but currently there's no option in Typora to use single window only when opening files. So each time you launch typora.open
command it will open a new Typora window.You can track this issue on GitHub.
Bonus Tip
You can combine this extension with Power-Tools extension to create a handy button on your taskbar, which will be highlighted if the file you are editing can be opened in Typora.
Here is the settings block you need to put in your settings.json (change it to taste):
Credits
Typora Git Integration
alexzshl - for context menu commands and status bar and configuration options.fbarda - for the guide on adding Typora executable to PATH