Justin Rosales71 downloadsTwo-finger trackpad swipes mapped to any command.
An Obsidian plugin that maps two-finger horizontal trackpad swipes to any command — back/forward navigation by default.
Listens to the browser WheelEvent API (how web/Electron apps receive trackpad input on any platform), detects horizontal-enough movement, and fires the configured command. No proprietary Apple gesture API.
Clone into your vault's plugin folder:
cd <your vault>/.obsidian/plugins
git clone https://github.com/justinrosales/obsidian-swipe-gestures
Reload Obsidian and enable Horizontal Swipe Gestures in Settings → Community Plugins. No build step — main.js is included.
To build from source: npm install && npm run build in the plugin folder.
| Setting | Description |
|---|---|
| Swipe left action | Command on left swipe (default: Navigate back) |
| Swipe right action | Command on right swipe (default: Navigate forward) |
| Invert direction | Flip left/right if reversed |
| Swipe sensitivity | Low = light flick triggers, High = deliberate swipe |
| Horizontal dominance | Low = diagonal counts, High = only straight left/right |