Handwriting

by Alan Liu
5
4
3
2
1
Score: 46/100

Description

The Handwriting plugin adds pen based writing, highlighting, erasing, lasso selection and insert space tools directly on notes and PDFs while keeping the note itself as Markdown. It draws on a CodeMirror overlay, supports pressure sensitivity, palm rejection, pinch zoom, shape snap, undo and redo across ink and text, PDF flattening for export, PDF snipping, mouse input and lined or grid paper backgrounds. Ink is stored separately as one JSON sidecar per note inside the vault's .handwriting folder, linked by a single handwriting-page-id property when a note is first inked. Text content stays unchanged unless that one property line is added and hidden folders may need compatibility mode for some sync services.

Reviews

No reviews yet.

Stats

183
stars
19,164
downloads
15
forks
99
days
6
days
20
days
5
total PRs
2
open PRs
3
closed PRs
0
merged PRs
42
total issues
10
open issues
32
closed issues
106
commits

Latest Version

20 days ago

Changelog

  • performance fix
  • ink attach fix, attach range increased to two lines
  • ink fixes
  • save sync fix
  • pdf highlight fix + pdf fixes

README file from

Github

Handwriting

Handwrite, draw, highlight, and erase directly on your notes and PDFs.

picking a pen color, writing, highlighting, then underlining on a note 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.

turning the plugin off: the ink goes away and every word stays where it was

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
  • 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

android notes

android's side button lacks the functionality required for hold to erase - so android's side button works a little bit differently. you have to hover and click the side button to switch to eraser mode, hover and click again to toggle it off.


installing

method 1 - the community plugin directory

it's in the community plugin directory:

  1. Settings
  2. Community plugins
  3. Browse
  4. search Handwriting
  5. Install and enable

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.

the Handwriting toolbar

dragging the collapsed toolbar around the nine spots, then tapping it open

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.

the pen's controls: size slider and colors

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.

keyboard button on

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:

the paper and infinite canvas buttons at the top right of a note

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.

the paper background picker: global, none, lines, grid, dots

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.

infinite canvas: zooming out to 20%, then Fit

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: next
  • Handwriting: Pen color: next
  • Handwriting: Highlighter color: next
  • Handwriting: Ink size: next
  • toggles for eraser, lasso, insert space and pan
  • Handwriting: Pen preset 1 through 4
  • Handwriting: Highlighter preset 1 through 4
  • 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.

a rough star, arrow and hexagon each snapping clean on a hold, then the star lassoed, resized and rotated

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

the Snap button that shows up after a mouse stroke

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.

lassoing a drawing, dragging it, and snipping 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 that text moves. when you attach it initially, the hooked text will highlight itself. 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. 'group attach' will work when lassoing together different attached ink groups.

you can undo and redo attaching.

both are also commands: Handwriting: Lasso: attach ink to text and Handwriting: Lasso: detach ink from text.

attaching ink to 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.

insert space: dragging down from a line to make room, then drawing in it

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

writing in the margin of a pdf page, then highlighting a phrase

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

flattening a pdf: the copy opens in a new tab with the ink drawn in

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.

a note exported with Export to PDF: the typed text, then the ink below it

ink works on slides too

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

ink on a slide while presenting

  • Handwriting: Presentation: undo ink and Presentation: redo ink
  • Handwriting: Clear ink on this slide
  • Handwriting: 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 .json files, 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/

the .handwriting folder: one json file per note

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

source view of a note: the handwriting-page-id line in the frontmatter

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's position in the document. i tried using line numbers first but Obsidian line numbers are so fragile instead i just used spatial position in the document again. to place the ink, Handwriting searches for the text, reads its new position, and moves the ink by the difference.

this method is extremely cheap: each move or redrawing costs the same, bc typing doesnt rewrite the strokes. it's O(n); type above twenty drawings and the plugin updates twenty numbers.

the attach to ink feature is intended as a workaround to fix ink sync between devices; if your desktop with a large screen doesn't wrap a paragraph, and your phone with its smaller screen does, ink might end up next to different text on your different devices. on the other hand if you use the attach ink feature, attached ink will just stay at a constant distance from its attached text, whatever screen you are on. granted, you still must manually lasso and attach. still working on something for this.

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 will undo those things in the order you did them. insert space, highlighter, shape snap; almost all ink actions in Handwriting are built to be undo/redo-able.

each ink action has to be translated to be recorded in obsidian's undo history.

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.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Handwritten Notes
3 years ago by FBarrCa
Obsidian Handwritten Notes Plugin
Ink
3 years ago by Dale de Silva
Inkporter
2 years ago by Ayush Kumar Saroj
Inkporter is an Obsidian plugin that digitizes handwritten notes with smart ink isolation, adaptive theming, and seamless import workflows.
Extended Graph
2 years ago by Kapirklaa
Community plugin to add features to the graph view.
BibLib
2 years ago by Callum Alpass
Obsidian-based reference and literature note manager.
PDF Printer
2 years ago by cubexy
Obsidian plugin that converts PDF documents to images directly in your notes without external dependencies.
Handwriting OCR
a year ago by ikmolbo
Transform handwritten documents and scanned images into editable text with Handwriting OCR's AI-powered handwriting to text conversion.
PDF++
6 months ago by ryotaushio
PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.
Scan Sketch
4 months ago by Show Wai Yan
A lightweight Obsidian plugin/tool that scans handwritten notes using your phone camera, automatically removes the background, and saves clean PNG images directly to your chosen folder. Perfect for digitizing handwritten notes quickly and keeping your vault organized.
Tabula Rasa
4 months ago by Jeremiah Beatham
FleurPDF
3 months ago by JC5
Smart PDF reading and annotation plugin for Obsidian with AI-powered features
HandLayers
3 months ago by [email protected]
ICOR for Life - PDF Annotation
3 months ago by Thomas Roedl
Highlight text or draw a box on a PDF and get a note in the vault for it, with a deep link back, a card on any canvas by drag and drop, and a sidebar of every highlight in the open PDF. Part of the ICOR for Life suite.
Mermaid Link Navigator
3 months ago by w-java123
Pick Me
2 months ago by seanishoo
Annotate and ask questions about what you select — in notes and in PDFs — without leaving the page. Annotations live in their own Markdown files; the original document is never modified.
yh-InkLight
2 months ago by angelwdx
gogoga Mind Map
2 months ago by jackweigogoga
Obsidian plugin: edit Markdown notes as XMind-style mind maps.