Skip to content

hall/draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d08eb60 · Feb 4, 2023
Jan 11, 2023
Jun 11, 2022
May 25, 2022
Jan 11, 2023
Jun 7, 2022
Dec 19, 2022
Dec 19, 2022
Jan 11, 2023
May 29, 2022
May 31, 2022
Feb 4, 2023
Jun 11, 2022
Nov 25, 2020
Jun 11, 2022
Feb 4, 2023
Feb 4, 2023
Feb 4, 2023
Feb 4, 2023
Jun 2, 2022
May 31, 2022

Repository files navigation

Draw, for the VSCode family

Open VSX Version Visual Studio Marketplace Version

Draw an SVG image with a mouse or pen.

screenshot

NOTE: This is an alpha project; please open an issue for any bugs, questions, or ideas!

Usage

Open a file (in a supported format) and run Draw: Edit Current Line by either

  • right clicking on the line or
  • opening the command palette (F1 or Ctrl-Shift-P) and type draw edit

The currently supported formats are

  • markdown
  • asciidoc
  • restructuredtext

Keybindings

Consider binding the main command (perhaps to a stylus, if available). For example, the tail button on my stylus sends the Super + Escape key sequence:

{
    "key": "meta+Escape",
    "command": "draw.editCurrentLine"
}

NOTE: you may have to disable, or rebind, conflicting keys in your OS settings.

Settings

The following settings are available (prefixed with draw).

setting description default
directory if set, save files to this directory (relative to the workspace root) ""
buttons add custom buttons to the toolbar []

custom buttons

To add custom buttons to the toolbar, add an entry to the draw.buttons array in settings.json; for example,

{
    "draw.buttons": [
        {
            "icon": "beer",
            "title": "pour another",
            "function": "console.log('hooray!')"
        }
    ]
}

search the Font Awesome set for an icon name

color scheme

The preset color selections are defined by VSCode's chart colors and so can be changed in settings.json.

Handwritten Text Recognition

The following services are available to convert hand-written formulas to LaTeX equations.

myscript

free for 2000 requests/month

  • create an account
  • generate application and HMAC tokens
  • run Draw: Configure HTR Provider and select myscript

mathpix

free for 1000 requests/month but charge a one-time, non-refundable, setup fee of $20

This integration also supports image drag and paste.

  • create an account
  • create an org, pay the setup fee, and create an API key
  • run Draw: Configure HTR Provider and select mathpix

License

This project was forked from zhaouv/vscode-markdown-draw and licensed under the Apache-2.0 License.