- This Alfred workflow enables you to perform online and offline searches of your Notion pages.
- It requires a Notion integration (API key).
- Online Search: Search your Notion pages online for the most up-to-date information.
- Offline Search: Search through a locally stored copy of your pages for quick access.
- Data Update: Update your local data at your convenience to ensure accurate offline searches of your pages.
- Opening Page in a New Tab: Open the selected page in a new tab in the Notion app.
-
Install ⤓ Notion Search Workflow in the repo. Double click on it and Alfred app should open with installation of the workflow. You will be prompted to put
Notion API key (of the integration)
. Follow steps in2.
to get the API key. -
Follow this instructions to create an internal integration and put the
Internal Integration Token
into theNotion API key (of the integration)
. -
Follow this instructions to give your integration premission to search for pages. You only need to give premission to the main pages on the left side of Notion, as subpages inherit the premission.
-
Now the setup is complete and the workflow should work. I recommend running the data update
nupdate
first to ensure offline search functionality.
Variable | Type | Description |
---|---|---|
Notion API key (of the integration) | Text Field | This is a text field where you input the API key required for the integration with Notion. (e.g. secret_WmzOfHiLeipQKPiRd5GsdVlwXXcgP3I44GdoreruIV ) |
Use desktop client | Checkbox | A checkbox indicating whether to open links in the desktop client or in the browser. |
Enable custom images | Checkbox | A checkbox to enable or disable the downloading of custom Notion page icon images. |
-
Online Search: Type
n
followed by your search query to search your Notion pages online (If you press ⇧ + ⏎ it will open the page in a new tab in the Notion app). -
Offline Search: Type
ns
followed by your search query to search your Notion pages offline (If you press ⇧ + ⏎ it will open the page in a new tab in the Notion app). -
Data Update: Type
nupdate
and enter to update your local data for offline searches. I suggest to do that firstly when you download the workflow.⚠️ Note: Runningnupdate
for the first time, especially with the optionEnable custom images
checked, may take some time, particularly if you have a large number of custom images.⚠️ Note: To make sure opening a page in a new tab works, you must toggle off the settingNew Tab Search
located inMy settings
in Notion app.