pacmax beta

Alfred Pac by sballin on GitHub

Alfred Search Notes App

Use Alfred to quickly open notes in iCloud/Apple Notes. Written in Go and designed for speed.

From their README

Search Notes.app with Alfred

This is an Alfred workflow to find and open Apple/iCloud notes in Notes.app! It's written in Go and designed to be ripping fast, even for very large Notes databases, can search everything including note and attachment contents, and supports accented characters and non-Latin scripts.

  • Download the latest version: [github]
  • Instructions to fix permissions issues: [github]
  • View additional issues and get help: [github]
  • Support me maintaining this thing and keeping the binary verified: [patreon]

Privacy note: this workflow uses a Go binary to search your Notes database. The binary is open source with instructions on how to compile it yourself. For extra peace of mind, consider supporting me on Patreon so that the binary can be regularly verified for malicious content by Apple ($99/year Apple Developer Program membership required).

Search titles or create a new note if none was found

Search note titles and bodies

Search folder names

Result actions

  • enter to open the note/folder or create a new note if none was found
  • shift+enter to search for your Alfred query using the Notes in-app search
  • cmd+enter to copy the note body to the clipboard
  • alt+enter to copy a link to the note to the clipboard

Note linking

You can generate links to any of your notes and use them on macOS or iOS. Copy the note URL by pressing alt+enter on an Alfred result or paste it using the snippet. This will generate two links. The first one works on macOS Big Sur (11) and newer, and the second one works on iOS.

Install

Download the latest version of the workflow if you're on the latest macOS with Alfred >= 4. For older versions of macOS, you may need to use older versions of the workflow.

Required setup

  1. Try searching for a note
  2. If a warning dialog appears (see image below), click "Cancel" rather than "Move to Trash". Then open System Preferences > Security & Privacy and click the "Open Anyway" button near the bottom
  3. Approve additional requests for permission as they appear
  4. If there are any other issues, please follow the advice under troubleshooting, if present, is enabled

Troubleshooting

If the script produces an error, especially after installing updates to macOS, try turning the permissions below off and on again. Please look through common issues before submitting a new one.

The most common issue panic: unable to open database file: operation not permitted is fixed by turning full disk access for Alfred off and on again.

Email notes are not supported

This workflow doesn't support notes stored with Google or other internet accounts. Please make sure either iCloud or On My Mac is selected as the default account in the preferences of Notes.app.

Customize search behavior

Result ordering and title+folder search behavior can be controlled using the environment variables.

Updates

By default, the workflow checks Github for updates if you run it and it's been 4 days since the last check. This can be disabled by removing the connections to the OneUpdater block in the workflow.

Compile

If you want to compile the binary yourself, you can go into the "search_notes" folder and do make.

Contributors

Big thanks to...

Donate

If you enjoy using this workflow, consider donating!

Latest release

  • 3.6.22 years ago, 5.0 MBDownload
    • More robust new note creation
    • Faster order of operations when showing a note in a folder
19 earlier releases
  • 3.6.12 years ago, 5.0 MBDownload
    • Position cursor in body of note after creating a new note
    • Remove note glyph from links because it doesn't get rendered on iOS
  • 3.62 years ago, 5.0 MBDownload
    • Show enclosing folder when showing a note
    • Use new note linking format that works on macOS and iOS (macOS >= 14 required)
    • Use new updater script that doesn't require Python 2 (thanks vitorgalvao!)
    • Bug fixes
  • 3.5.25 years ago, 4.9 MBDownload

    Fix error when creating a note with Notes app in a different space

  • 3.5.15 years ago, 4.9 MBDownload

    Bug fix for missing column error

  • 3.5.05 years ago, 4.9 MBDownload
    • Include image OCR and handwriting in body search
    • Add Move to Folder action
  • 3.4.15 years ago, 4.9 MBDownload
    • 3.4.0 features: hashtag support, M1 support, native inter-note links on macOS 11 and up
    • Fix SQL error on macOS <11.4
  • 3.4.05 years ago, 4.9 MBDownload
    • Hashtag support for macOS Monterey
    • Keyword nc to create a new note
    • Native Intel/M1 support
    • New note links that work out of the box on the latest macOS and iOS
    • Better error messages, bug fixes
  • 3.3.05 years ago, 2.7 MBDownload
    • Choose between creating a new note or searching note bodies when no note with a matching title is found (set your preference in environment variables)
    • Better support for accented characters
    • Paste note links quickly using a snippet shortcut
  • 3.2.05 years ago, 6.1 MBDownload

    New note linking scheme that works on both macOS and iOS (thanks to Artem Chistyakov!). See the readme on Github for instructions.

  • 3.1.36 years ago, 6.1 MBDownload
    • Change notes:// link generation with alt-enter to note:// for better compatibility with Big Sur
    • Option to create new note if none was found in full text search
  • 3.1.26 years ago, 6.1 MBDownload
    • Better support for searching non-Latin scripts
    • Rename Note Opener to Open Notes URL
    • Make Open Notes URL faster
  • 3.1.16 years ago, 6.1 MBDownload

    Fix an error that could arise with copying a notes:// url.

  • 3.1.06 years ago, 6.1 MBDownload
    • Include table contents in full-text search
    • Show a preview of full-text matches
    • Handle the Notes database format better
  • 3.0.26 years ago, 4.9 MBDownload

    Fix bug where workflow could ignore all notes in the default "Notes" folder.

  • 3.0.16 years ago, 4.9 MBDownload
    • Safer SQL queries
    • Support non-Latin characters when creating a note or searching in-app
    • Support system languages other than English
  • 3.0.06 years ago, 4.9 MBDownload
    • Rewritten in Go
    • Faster searching
    • Create a new note if none was found
    • Shift+enter to search for query using Notes in-app search
  • 2.2.16 years ago, 146 KBDownload

    Fix SSL error that could occur in update script.

  • 2.2.06 years ago, 146 KBDownload
    • Fix bug where the workflow would not open a note correctly if a toolbar search was active
    • Add error handling message and log file
    • Add auto-update feature
  • 2.1.06 years ago, 147 KBDownload
    • Open Notes database in read-only mode
    • More robust handling of database missing values
    • Icon filenames no longer contain emoji (this was incompatible with Dropbox sync)