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

Supports specifying the notebook to save new docs #10671

Closed
TCOTC opened this issue Mar 20, 2024 · 21 comments
Closed

Supports specifying the notebook to save new docs #10671

TCOTC opened this issue Mar 20, 2024 · 21 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Mar 20, 2024

新建文档支持指定笔记本

In what scenarios do you need this feature?

最近在看 双向链接时代的快速无压记录 ,尝试用 daily notes ,想把新建的文档集中到同一个笔记本里(一层文档),但发现只能新建到当前焦点文档的笔记本。所以希望新建文档支持指定笔记本。

希望新建文档支持指定笔记本 - 链滴

Describe the optimal solution

image

  • 当前笔记本(默认位置)
  • 指定笔记本
    • 后面没有指定路径 (/) 的情况下,指定笔记本无效,新建的文档仍存放到默认位置
    • 指定笔记本关闭时,新建的文档存放到默认位置,重新打开后继续存放到指定笔记本
    • 指定笔记本删除后,设置项恢复为默认位置

Describe the candidate solution

No response

Other information

No response

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 22, 2024

希望新建文档支持指定笔记本 - NishikigiReeves 的回帖 - 链滴 增加一条:

增加一种新建文档默认在当天 dailynotes 下面的方式。

如果是笔记本,时间长了会堆积好长好长,但是如果新建的文档自己归拢到当天的 dailynotes 下面,就清爽又有迹可循了

@88250
Copy link
Member

88250 commented Mar 22, 2024

希望新建文档支持指定笔记本 - NishikigiReeves 的回帖 - 链滴 增加一条:

增加一种新建文档默认在当天 dailynotes 下面的方式。
如果是笔记本,时间长了会堆积好长好长,但是如果新建的文档自己归拢到当天的 dailynotes 下面,就清爽又有迹可循了

这个应该可以用新建日记存放路径实现吧。

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 22, 2024

确实这个目前就可以实现:

把日记的路径 /daily note/{{now | date "2006/01"}}/{{now | date "2006-01-02"}}/{{now | date "20060102150405"}} 填写到下面:

image

@Jiangshuon
Copy link

大优化,顶一波

@Jiangshuon
Copy link

Jiangshuon commented Apr 9, 2024

再顶顶!思源重度用户一枚,每天手动高频移动文档。。好累

@88250 88250 added this to the 3.0.12 milestone Apr 21, 2024
@88250 88250 changed the title 新建文档支持指定笔记本 New document save location support specifies notebook Apr 21, 2024
@88250 88250 changed the title New document save location support specifies notebook Supports specifying the notebook to save new docs Apr 25, 2024
Vanessa219 added a commit that referenced this issue Apr 25, 2024
Vanessa219 added a commit that referenced this issue Apr 25, 2024
Vanessa219 added a commit that referenced this issue Apr 25, 2024
Vanessa219 added a commit that referenced this issue Apr 25, 2024
Vanessa219 added a commit that referenced this issue Apr 25, 2024
@88250 88250 closed this as completed Apr 25, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2024

新建文档为笔记本的第一层文档时,/ 会自动变成 /Untitled

image

image

新建文档为某个文档的子文档就不会变:

image

然后就会分别创建出带标题的文档和不带标题的文档:

image

@88250 / 应该没必要变成 /Untitled 吧?

@88250
Copy link
Member

88250 commented Apr 25, 2024

这个只能这样,不然会有其他问题 #10305

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2024

总感觉有点奇怪,只能自动加上文档名而没有其他方式处理吗?

@88250
Copy link
Member

88250 commented Apr 26, 2024

是的,这个路径填的是最终文档的 HPath,不是父路径,所以必须精确到文档名。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 26, 2024

我还是不太懂为什么这个没有指定文档名却可以,这个也是路径吧?

image

@88250
Copy link
Member

88250 commented Apr 26, 2024

要指定文档名的,不指定的话 / 就在根路径上了。

@Jiangshuon
Copy link

什么意思,我现在没有指定“/",可以正常工作呀,创建直接就在默认笔记本的第一级别了,我只是指定了下笔记本

@Jiangshuon
Copy link

另外,全局设置和笔记本设置,两者的关系是什么呢,笔记本设置后就可以完全覆盖全局设置吗?

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 26, 2024

什么意思,我现在没有指定“/",可以正常工作呀,创建直接就在默认笔记本的第一级别了,我只是指定了下笔记本

你可以在这个笔记本里的文档内按 Ctrl+N 新建文档,不以 / 开头会在该文档下创建子文档

image

@88250
Copy link
Member

88250 commented Apr 26, 2024

什么意思,我现在没有指定“/",可以正常工作呀,创建直接就在默认笔记本的第一级别了,我只是指定了下笔记本

上面说的是设置为 / 时会自动补全为 /Untitled

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 26, 2024

另外,全局设置和笔记本设置,两者的关系是什么呢,笔记本设置后就可以完全覆盖全局设置吗?

我才发现笔记本设置里也有

@88250
Copy link
Member

88250 commented Apr 26, 2024

另外,全局设置和笔记本设置,两者的关系是什么呢,笔记本设置后就可以完全覆盖全局设置吗?

@Jiangshuon
Copy link

什么意思,我现在没有指定“/",可以正常工作呀,创建直接就在默认笔记本的第一级别了,我只是指定了下笔记本

你可以在这个笔记本里的文档内按 Ctrl+N 新建文档,不以 / 开头会在该文档下创建子文档

image

嗯,确实。。不想出现untitle主要是因为有点不舒服是吧,尽管效率上是一样的。我全局设置没加“/”,收集箱笔记本加了“/",这样只有在收集箱中新建笔记才会出现untitle,好一丢丢

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 26, 2024

全局设置没加“/”,收集箱笔记本加了“/",这样只有在收集箱中新建笔记才会出现 Untitled

是个不错的思路

@88250
Copy link
Member

88250 commented Apr 26, 2024

我测试了一下,现在可以不用强制 / 转换 /Untitled 了。

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