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

Any way to allow search through all my workspaces? #22

Open bensilv opened 4 years ago

bensilv commented 4 years ago

I was wondering if it would be possible to somehow allow the search to search through all the workspaces I am a part of, I'm not sure how difficult this would be to add.

Amazing workflow, by the way, great work!

wrjlewis commented 4 years ago

Glad you're enjoying the workflow!

Adding multiple workspaces is an interesting idea. How many workspaces are you a part of, out of interest?

Considerations: 1) A user would need to collect their spaceId and token for each workspace. 2) Would you want to search all workspaces at once or would you want to specify which workspace you search by keyword (ie "ns 1 'search query'" or "'ns 2 'search query'"

If searching multiple workspaces at the same time: 3) Alfred shows a maximum of 9 search results at a time. How would these be split between workspaces if there were multiple results from multiple workspaces. 4) The performance hit from searching multiple workspaces would likely be considerable, resulting in a poor UX.

bensilv commented 4 years ago

These are interesting issues! For me, I think I'd probably want to search through at least 3. I always end up with a ton of workspaces though because Notion doesn't really have a great way to share things without ending up with a ton of workspaces...

I think it would be cool if users were given the option to search everything at once and to search in a specific workspace. For example, maybe workspaces could themselves show up as a search result, and then upon hitting enter on a workspace you will search within that workspace. However, if you never search for and select a workspace you'd just be searching amongst all your workspaces. I would just choose and order the 9 based on their relevancy to the search query and not specifically prioritize any workspace.

donframeworks commented 2 years ago

For the time being, I suggest

wrjlewis commented 2 years ago

Thanks @donframeworks, this is what I do as well for now.