wrjlewis / notion-search-alfred-workflow

An Alfred workflow to search Notion with instant results
GNU General Public License v3.0
825 stars 41 forks source link

** Recently Viewed Pages ** #37

Closed wrjlewis closed 2 years ago

wrjlewis commented 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).