by Alan Liu
Handwrite, draw, highlight, and erase directly on your notes and PDFs. Your notes stay Markdown.
Handwriting
Pen ink on ordinary Markdown notes and PDFs in Obsidian.

Open a note and write. The note stays a .md file.
removing the plugin
your ink is not stored "in" the markdown. it lives in a folder at your vault root, separate from the editor's text.
disable the plugin and your notes STAY EXACTLY THE SAME - the ink just stops rendering. re-enable and it comes back.

one line is written to the invisible frontmatter of a note when you first write on it - handwriting-page-id.
a note you never inked on is never modified.
what it does
Here's a demonstration of some of the features: https://youtu.be/uWcOWixkxEk
right now you can
- handwrite, highlight; color palette, size sliders, choose your favorites
- erase; two modes, size slider
- lasso; compatible with side button; move the selection, delete it, resize and rotate it, copy/paste it across notes
- insert space tool; moves ink + text
- undo/redo ink + text
- copy/paste ink
write on pdfs
- pdfs: annotate anywhere, export the pdf with ink; snip with lasso
features
- data yours forever
- your ink is all stored here: your vault's
.handwriting/folder - what that folder looks like
- your ink is all stored here: your vault's
- pressure sensitivity, ink prediction + smoothing
- palm rejection
- draw + pan with the mouse if you want
- movable pen toolbar with auto-hide
- custom colors + RGB swatch picker for every pen and highlighter
- true infinite canvas
- pinch to zoom (pdfs always; notes with Infinite canvas on)
- lined, grid, and dotted paper background per note or global toggle
- export/flatten ink as svg or pdf
- snip selections out of pdfs as pngs
- ink works in embeds
- handwriting to shape snap; resize and rotate, ten shapes
- works on slides
- attach ink to text
works on
windows · macos · linux · ipad · boox · android
doesn't really work on
iphone
ipad notes
turn off Scribble or ios will draw its own black ink over your strokes, and its scratch-out gesture may delete ink.
iPad Settings → Apple Pencil → Scribble → Off
installing
method 1 - the community plugin directory
it's in the community plugin directory:
- Settings
- Community plugins
- Browse
- search Handwriting
- Install and enable
method 2 - direct link
can also just get it here:
https://community.obsidian.md/plugins/handwriting
using it
settings
most of Handwriting's options live in Settings > Handwriting.
toolbar
the toolbar sits top right by default. you can drag and drop the toolbar. you can also collapse it by tapping the arrow. there are nine spots to choose from. location and visibility can also be changed in Handwriting settings.


escape
Esc closes most controls, then drops you back to the text in most cases.
tools
tap a tool and use it: pen, highlighter, eraser, lasso, insert space, or pan. tap More if buttons are hidden.
tap the pen, highlighter, or eraser again while it is selected to open its controls.

keyboard button
the keyboard button disables pen input so a tap can place the caret and open the on-screen keyboard. this may be useful for viewing pdfs. tap it again to get the pen back. Handwriting: Pen on / off does the same from the command palette.

pen side button
you can change what the side button does. this is useful for android and S pen users but others might find it useful. android users will get a "click while hovering to toggle eraser" function while everybody else get "hold to erase OneNote style" when changing this setting. this is due to a quirk in android
paper and infinite canvas
you can turn infinite canvas or paper backgrounds on/off individually per-note with the buttons in the top right:

you can also change it via the three dot menu in the top right. But the buttons are easier. there is no difference between the two ways, frontend speaking
you may also find the global option in the Handwriting settings menu. Handwriting: Paper: none / lines / grid / dots in the command palette cycles through the paper backgrounds.

with infinite canvas on you can zoom out and keep writing past the edge of the note. Fit zooms so all of your ink fits on screen.

mouse input
to write with your mouse, run Handwriting: Mouse on / off.
extra commands for hotkeys
enable Extra commands for hotkeys in Handwriting settings (near bottom of page) to add these commands to the command palette:
Handwriting: Ink color: nextHandwriting: Pen color: nextHandwriting: Highlighter color: nextHandwriting: Ink size: next- toggles for eraser, lasso, insert space and pan
Handwriting: Pen preset 1through4Handwriting: Highlighter preset 1through4- a save command for each preset slot
this is useful because each command can be assigned its own hotkey. for power users.
the commands are hidden by default because their sheer number makes other Handwriting commands harder to find. disabling the setting removes them from the palette but will preserve hotkey assignments.
shape snap
hold the pen still for about a third of a second at the end of a stroke to snap it into a line, arrow, triangle, rectangle, pentagon, hexagon, octagon, star, circle or ellipse.
keep the pen down after it snaps and move it to resize and rotate the shape. lift to keep it. you can also lasso it later to resize or rotate it.

with a mouse, pause at the end of a stroke and select Snap.

lasso and snip
you can lasso ink to move or copy and paste it anywhere in the note, or across different notes. You can also use Handwriting: Snip the selection to an image to save what you lassoed as a png next to the file and copy a link to it to your clipboard, so you can paste it into a note.
on a note you can also resize and rotate what you lassoed: drag a corner to resize it, or the knob above it to rotate it.

attach ink to text
lasso some ink next to your text, then tap the link button on the selection. the ink now moves with that text when you type above it. when you hook it initially, the hooked text lights up. if your ink hooked the wrong text, drag the pin to the correct text.
tap attached ink with your finger to select it. attached ink shows a small grey link icon at its top-left.
if attached text gets deleted or can't be found, orphaned ink shows "Drag the pin to the text". tap the link button again to detach the ink.
both are also commands: Handwriting: Lasso: attach ink to text and Handwriting: Lasso: detach ink from text.
insert space
tap insert space, press on a line and drag down. everything below the line follows your pen, so you get room to write.

boox and e-ink users
if you're having latency issues on a Boox device, try turning on Boox mode in Handwriting's settings near the bottom of the menu. it might help a little.
every redraw costs on e-ink, so it turns off smoothing, the pen reticle and animations, and sizes prediction for e-ink delay. your old settings come back when you turn it off.
pdfs and exporting
you can annotate pdfs. same toolbar. same tools

Handwriting: Export ink as SVG (drawing only)andHandwriting: Export ink as PDF (drawing only)export the drawing by itself, cropped to the ink, with no backgroundHandwriting: Flatten ink into a copy of this PDFdraws the ink into a copy of the pdf so anyone can open it

you can also use the native Obsidian Export to PDF command. the page is shrunk to fit the paper export, so your ink should stay on its words. warning: text can come out a little smaller than a plain export.

ink works on slides too
Handwriting: Toggle slides ink turns it on while you present.

Handwriting: Presentation: undo inkandPresentation: redo inkHandwriting: Clear ink on this slideHandwriting: Clear all presentation ink
ink color
two settings in Settings > Handwriting decide how ink looks against the background.
- Ink color on PDFs darkens or lightens your ink, or leaves it alone. default is darken.
- Ink color when exporting keeps pen ink readable in exports, prints and snips. default is automatic.
resetting a note
Handwriting: Delete all ink on this note and Handwriting: Delete all ink on this PDF are in the command palette. running these commands will still save a copy of your ink and also you can undo the action with ctrl+z
obsidian sync notes
.handwriting/is a hidden folder. many sync services do not sync hidden folders by default, including Obsidian Sync, iCloud and Dropbox.if you use one of these services, enable Compatibility with Obsidian Sync, iCloud and Dropbox in Handwriting settings.
Obsidian Sync also needs Sync all other types turned on (Settings, Sync, selective sync). ink is saved as
.jsonfiles, and Obsidian Sync skips those by default.
how it works
this is a section dedicated to anyone curious about the mechanisms
to sum up: Obsidian's live editor handles the Markdown. transparent canvas layer above it draws the ink. then logic layer decides whether or not the thing poking it is a pen, a finger, or a palm
where is ink stored
your ink is one json file per note in /.handwriting/
(your vault)/.handwriting/

sidecar is a digital photography term that refers to a small file besides a main file, that holds information about the main file. this is a useful analogy
in this case, the sidecar stores your ink as coordinates - your note is linked to your ink by a single properties line in the properties field of your note. this link + the coordinates tells Obsidian where all the ink is

what this means practically is that no matter what happens to the ink, the text in your note will be safe, as the note itself is not modified (besides its frontmatter).
why the ink looks good
a typical pen reports ~200-250 dots/events a second. what other handwriting apps probably do (almost certainly) is draw straight lines between each dot - this is what causes the jaggedness or spikiness on boox or other e-ink devices, also because the pen trembles a bit naturally
what i did is smooth the curve by adding the previous dot into the calculation. this causes bad perceived lag, so i had to replace the last stretch of the curve to the pen tip with a straight line in real time
how does it stay still
ink coordinates are stored in the sidecar. origin is at the top-left of the text column, absolute y down the document.
any transformation of the viewport, Handwriting calculates where that part of the note is on your screen and redraws the ink. then, Handwriting matches the overlay to the live editor pane.
this sounds pretty straightforward.
however if you resize Obsidian, resize a window pane, change the font size, pinch the screen, zoom with ctrl+, ctrl-, or ctrl & scroll, use a theme that moves the text column, use a theme that moves the live editor, change the readable line length setting, or simply pan, the coordinates must transform to match
how attached ink works
when you attach ink to text, the plugin saves that text (plus 32 characters on each side) and its position. i tried using line numbers first but Obsidian line numbers are so fragile instead i just used spatial position. when the note opens, the plugin searches for the text part, reads where it is now, and moves the ink by the difference.
this method is extremely cheap: each drawing costs the same, bc typing doesnt rewrite the strokes. it's O(n); type above twenty drawings and the plugin updates twenty numbers.
this feature is intended to fix sync between devices. your desktop might wrap a paragraph into 3 lines and your phone into 7, so everything below shifts and ink ends up next to the wrong paragraph. attached ink just looks for its words and sits beside them, on any screen.
if the paragraph gets deleted, or can’t be found after a sync, the ink stays where it was last shown and gets a “Drag the pin to the text” tag.
the attachment info lives as JSON in your vault’s .handwriting folder with everything else
undo/redo
if you draw, type, then erase, ctrl+z should undo those things in the order you did them
this meant Obsidian, not just Handwriting, needed to know what an ink action is and in what order
each ink action had to be translated to be able to be recorded in obsidian's undo history. adding a stroke. moving a lasso selection. which strokes moved and by how much. erasing. what was removed and how much of it
teaching these operations to participate in the editor's history alongside text gives seamless undo/redo for text and ink
if you have any questions i will try to answer as best i can
reporting problems
open an issue. report what happened. remember to include which device and pen please.
EZ-MODE reporting:
run Handwriting: Bug report: record.
reproduce the bug.
run Handwriting: Bug report: send.
press Upload on that window and the report comes straight to me 🙂 paste the id it gives you into your issue or the reddit thread so I know where it came from.
for those of you nervous about sending bug reports: the report holds pen strokes (coordinates and timings) and a few other non-identifying info like cursor offset and the scroll position. it never holds your note's text.
and i guarantee nothing will leave your device unless you press Upload button. still uncomfortable with telemetry? Copy and Save to Vault buttons are offline ways to do bug reports
coming soon
- handwriting to text (ocr)
- handwriting to math / latex
- search your handwriting
- handwriting [ [ backlinks ] ] in the document
- movable text boxes
- true OneNote import -> edit imported ink
- scribble/cross out to erase
- image integration
- ruler + compass
- laser pointer
- drawing in native Obsidian canvas
money
Handwriting is free. i still work on it almost every night. if you want to buy me a coffee: https://ko-fi.com/ellimistafk
thank you for using my plugin.
license
CC BY-NC-ND 4.0
why i built this
back in uni i remember taking biochem notes on a Surface Pro 4. drawing structures and typing labels on the same OneNote page felt like literal magic. it has been more than 10 years since those halcyon days. i'm driven to try and recreate that same magic again, but in Obsidian. i hope you find my plugin useful.
Handwriting is designed for students, educators, engineers, artists, or anyone who needs to handwrite and type in Obsidian.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.