Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新建文档和块引新建文档支持自动添加到指定数据库 #12588

Closed
Achuan-2 opened this issue Sep 25, 2024 · 2 comments
Closed

新建文档和块引新建文档支持自动添加到指定数据库 #12588

Achuan-2 opened this issue Sep 25, 2024 · 2 comments
Labels

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented Sep 25, 2024

In what scenarios do you need this feature?

PixPin_2024-09-25_14-12-48
场景:如果用户要查询自己的所有笔记、所有块引新建的笔记,过去只能通过SQL来查询,或者在文档树里找,目前有了数据库,要是新建文档和块引新建文档都能将文档自动添加到指定的数据库,就可以利用数据库的管理功能
好处

  1. 用户可以很方便回顾自己创建的所有笔记,对于dailynote笔记用户的我而言,主要通过页签和块引用新建概念笔记(卡片笔记),文档树主要建立knowledge笔记(用来管理概念笔记)
  2. 新建创建日期和更新日期列,用户可以按时间倒序,查看创建笔记历史,可以直接在数据库中通过筛选条件,找到指定日期的笔记,比SQL筛选更适合小白用户
  3. 新建单选和多选列,可以对所有文档进行简易的快捷分类,对一些轻文档树管理的用户而言,可以只用数据库来管理文档,以满足管理的需求

PixPin_2024-09-25_14-22-47

Describe the optimal solution

在笔记本设置和全局设置的新建文档和块引新建文档设置里新增「添加到指定数据库」功能
PixPin_2024-09-25_14-20-02
PixPin_2024-09-25_14-20-12

Describe the candidate solution

文档树新建文档、页签新建文档(Ctrl+N)和块引新建文档的笔记都可以自动添加到一个指定数据库中,直接在设置里做一个单独选项
三种方式统一用一个数据库也可以,个人感觉并不是很有必要用不同的数据库做区分

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Sep 25, 2024

我觉得可以在 Database Automations #10863 支持添加一个 新建文档 的触发器和一个 块引新建文档 的触发器、添加一个 添加文档到数据库 的执行操作。

@88250
Copy link
Member

88250 commented Sep 28, 2024

这个考虑通过插件实现吧,如果需要新增参数请告诉我们,谢谢。

@88250 88250 closed this as completed Sep 28, 2024
@88250 88250 added the Idea label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants