Skip to content

The database supports setting the primary key template #11506

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

Open
Achuan-2 opened this issue May 22, 2024 · 5 comments
Open

The database supports setting the primary key template #11506

Achuan-2 opened this issue May 22, 2024 · 5 comments
Assignees

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented May 22, 2024

数据库新建条目支持设置模板

In what scenarios do you need this feature?

在使用数据库管理日记、周复盘、正数日倒数日等场景时,需要输入当日日期、本周时间跨度等条目名
目前数据库新建条目默认为空,如果数据库新建条目支持设置模板,就可以直接点击新建条目完成输入,而不需要手动输入了

此外,在日复盘、周复盘、月复盘场景中新建的文档往往使用的是同一个模板,因此希望除了支持条目名设置模板,还支持自动新建条目文档并对文档内容设置模板

Describe the optimal solution

数据库选项设置添加「条目名模板设置」和「条目内容模板设置」

  • 「条目名模板设置」默认为空,设置后,新建条目,名称自动为所设置的模板内容
  • 「条目内容模板设置」默认为空,一旦填入内容,新建条目时,自动将条目变为文档(文档生成路径为笔记本/全局新建文档路径),并支持设置文档内容的模板。考虑到文档模板可能过长,可以参考日记模板的设置,使用模板路径来设置条目内容的模板,也便于其他笔记复用该模板,除了复盘笔记,还可用于文献笔记、读书观影笔记等场景

Describe the candidate solution

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented May 25, 2024

最好是不同的数据库可以设置不同的模板

@88250 88250 changed the title 数据库新建条目支持设置模板 数据库支持设置主键模板 May 26, 2024
@88250 88250 changed the title 数据库支持设置主键模板 The database supports setting the primary key template May 26, 2024
@88250
Copy link
Member

88250 commented May 26, 2024

第二点创建文档的模板请关注 #11479

@TCOTC
Copy link
Contributor

TCOTC commented Jul 31, 2024

再提供一个选项:在新建条目后自动新建文档绑定主键

@TCOTC
Copy link
Contributor

TCOTC commented Oct 27, 2024

我的想法:#11479 (comment)

@TCOTC
Copy link
Contributor

TCOTC commented Feb 1, 2025

用户需求:https://ld246.com/article/1738419333651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants