Skip to content

Macro: Capture to Inbox with GPS

This macro asks for a quick note, looks up your device location at the same time, and appends a timestamped line to Inbox.md. It is meant for capture on the go: voice-to-text in the prompt, GPS in the background, one line waiting when you get home.

GPS works on Obsidian mobile 1.11 or newer. The first run asks Android or iOS for location permission. Desktop cannot read GPS, so the line is still saved, just without coordinates. A cold satellite lock while offline can take a while; if it times out, the note is saved without GPS.

This is not a built-in {{coordinates}} token. A capture format that calls {{MACRO:...}} would wait for GPS before opening the prompt, which fights voice-to-text. The script starts the location lookup first, then prompts.

  1. Download capture-inbox-gps.quickadd.json.
  2. Open Settings → QuickAdd and click Import package….
  3. Paste the file contents. Review the script (it is marked executable), tick the acknowledgement, and import.
  4. Assign a hotkey to Capture to Inbox with GPS, or run it from the command palette.

The package writes scripts/captureInboxGps.js and a Macro choice that runs it. Open the cog on the script step to change the Inbox path (default Inbox.md) or to turn off creating the note when it is missing.

See Share QuickAdd Packages for the import review screen.

  1. Save captureInboxGps.js anywhere in your vault except .obsidian or a hidden folder.
  2. Settings → QuickAdd → Add Choice → Macro. Name it Capture to Inbox with GPS.
  3. In the Macro Builder, add that script as a User Script.
  4. Enable Command on the choice so it appears in the palette.

Each run appends one line:

- 2026-08-31 15:42 Saw the trail marker at the ridge (55.676098, 12.568337)

If GPS is unavailable, the same line is written without the coordinates.

A run that already has value and coordinates set (URI, CLI, or an earlier macro step) skips the prompt and the location lookup.