EasyChris / obsidian-to-notion

Share obsidian markdown file to notion and generate notion share link 同步obsdian文件到notion,并生成notion分享链接,可以方便的分享obsidian的文件。
GNU General Public License v3.0
464 stars 37 forks source link

Multiple notion database connections #32

Open zachauker opened 1 year ago

zachauker commented 1 year ago

Currently, sync only allows sharing obsidian note to one predefined notion integration database. Would it be possible to extend this functionality to allow the option of integrations to share specific note to? For example, I could have one notion database set up for Project A and one notion database setup for Project B then from Obsidian when I select the share option it would give me the ability to select which database to sync the note to.

Not sure if this is possible but thanks in advance.

profucius commented 1 year ago

I need this too. My vault data is related to more than one Notion Database.

One such way I can imagine this working is: Instead of setting the Database ID inside the plugin settings box, make an Obsidian Command that when triggered, will look at the frontmatter of the markdown file(s) being processed, and depending on which databaseid: value is stored there, will cause that file to be uploaded to that database.

This Obsidian Command could be named "Obsidian to Notion: Sync Now" which triggers the plugin to sync through all the files in the vault which have the frontmatter databaseid: (or some other unique name) and a valid value beside it. Or, if this is too intensive, then a whitelist/blacklist for individual files to be managed/synced by the plugin.

The result of this would be files which could remain in sync more effortlessly between Obsidian and Notion. Even a scheduler could be set (within the plugin, or if not then can be triggered by another software/plugin) to enable notes to stay nearly always in sync at all times.

CyRamos commented 1 year ago

+1 for voting for this feature :)