Notion Search Alfred Workflow Versions Save

An Alfred workflow to search Notion with instant results

v0.6-alfred4

8 months ago
  • Type ‘nsn’ for the option to quickly open a new page in Notion. Very handy! (Only supports the web app currently)

  • https://github.com/wrjlewis/notion-search-alfred-workflow/issues/83 - Fixed a bug that would cause an error and no more results to be displayed, relating to new Notion projects and icons.

  • Update readme with:

    • new notion page functionality
    • new cairo instructions for those on apple silicon, use at your own risk but they work for me and svg icons now appear in search results.

v0.5.3-alfred4

11 months ago

Includes fix for the recent breaking change on Notions side to their internal search api

https://github.com/wrjlewis/notion-search-alfred-workflow/issues/80

v0.5.2-alfred4

11 months ago

v0.5.1-alfred4

1 year ago

Fixes an infinite loop in the new subtitle builder logic

v0.5-alfred4

1 year ago

** Alfred 5 update now available here! **

(automatic updates will resume as usual once you've upgraded to the new workflow)

For folk on Alfred 4, you do not need to do anything, and updates will continue as usual:

Christmas is coming and I hope you all enjoy this awesome major update.

  • Subtitles are much much better. I've implemented the same logic that Notion does in it's quick find module to properly show where in the navigation tree the search result lives, helping you find exactly the page you're looking for. You'll now see 'Company / Hiring / Interview Process / Interview' rather than previously showing one continous string 'Company Hiring Interview Process Interview' Fixed a bug here where subtitles were not shown at all for some search results. Note, subtitles will not be shown if the page exists at the top of the navigation tree, ie when the page has no parent pages.

  • SVG Icon support! Notion recently introduced support for (SVG) icons. Alfred does not support SVG icons so you would have been seeing an empty icon for these results. This workflow now converts the svg file to png and displays it as an icon to the relevant search result. Simply install cairosvg in terminal (pip3 install cairosvg) for this feature to work.

  • Caching The slowest part of any Notion search is the bit that downloads icons or images in the page title. Previously this was happening on each query that included such pages. Now it doesn't re-download icons or images if the workflow has already downloaded it before and it hasn't been downloaded more than a year ago. You can change the cache duration in environment variables but 365 days is recommended. The workflow knows if the page icon or image has changed in which case it will redownload and cache it.

  • Better error handling Errors are now shown on screen as a search result so you don't have to open the alfred workflow debug console in the majority of cases. The error is shown in addition to any successful search results that the workflow is able to find. Previously an error would stop the workflow from operating completely.

Compatible with Alfred 4 and Alfred 5. Note: an Alfred 5 only version is available and you can download that here, I will hope to maintain both versions for the forseeable future.

v0.4.3

1 year ago

+Support for korean and other languages +Much improved logging +Oneupdater script has been updated to latest

v0.4.2

1 year ago

Notion recently changed their API which broke this workflow. These changes have now been reflected in the workflow. Thanks @amrael for your contribution!

I've also noticed that the subtitles in the search results do not appear now if you set isNavigableOnly to True, this is a change made on Notions side. For this reason I have set the parameter to default to False. You can still set this to True but you will lose subtitles in your Alfred search results.

v0.4.1

2 years ago

Performance improvements. Added env variable toggle showRecentlyViewedPages to toggle the self entitled feature, added in the previous release, and described in the readme.

v0.4.0

2 years ago
  • ** Recently Viewed Pages ** Your most recently viewed notion pages are shown when triggering the workflow. Simply type the 'ns' keyword to start the workflow, as you would before you search, and your most recently viewed notion pages are displayed.

  • The workflow has been migrated to Python3 - ensuring compatibility with future versions of MacOS: "Python 2.7 was removed from macOS [12.3]. Developers should use Python 3 or an alternative language instead. (39795874)"

  • Fixed issue with no results in certain circumstances with collections/dbs

  • Fixed issue with null highlight on non-page elements - thanks to ymszzq

  • Fixed issue retrieving and displaying notion icons in results, due to change in internal notion APIs

  • Fixed issue where externally hosted icons wouldn't show in results

  • Slightly better error handling when no results are returned

  • Results returned from Notion will now be shown in the original order, bypassing Alfred's learning algorithm.

(Unfortunately this workflow is not using the public notion api yet, which means you still have to retrieve your cookie/token manually. The public notion api is still in beta and I believe it doesn't have the same functionality compared to the internal api, but it is improving month on month. If anyone would like to give it a go adapting this workflow to use the api, I'll gratefully review any PRs).

0.3.3

3 years ago

Fixes an issue where certain unicode characters are not being handled properly (https://github.com/wrjlewis/notion-search-alfred-workflow/issues/19)