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

仅将分隔符作为标记 #21

Open
jkjoker opened this issue Sep 20, 2024 · 6 comments
Open

仅将分隔符作为标记 #21

jkjoker opened this issue Sep 20, 2024 · 6 comments

Comments

@jkjoker
Copy link

jkjoker commented Sep 20, 2024

仅将分隔符作为标记——这也许可以成为另一种新的执行方式。
这样一来,分隔符本身就不会丢掉。毕竟分隔符本身可能是笔记的一部分。

我也很喜欢目前已有的这种方式,很实用,谢谢。

@decaf-dev
Copy link
Owner

decaf-dev commented Sep 20, 2024

@jkjoker This is a great suggestion. For some reason, in my mind, I thought that a delimiter had to be removed, but that isn't true.

I will add a new setting called "Remove delimiter" with the default value set to true. If set to false, a user will no longer append the delimiter after it is removed from each split note.

@decaf-dev decaf-dev mentioned this issue Sep 22, 2024
@decaf-dev
Copy link
Owner

Added in 1.3.0

@jkjoker
Copy link
Author

jkjoker commented Sep 22, 2024

测试了一下,新功能运行的很好,太棒了。
比如,我的每条笔记都有一个类似 2024.9.22 的时间戳,现在,对于某些笔记,就可以用“2024.”作为分隔符了。

@jkjoker
Copy link
Author

jkjoker commented Sep 22, 2024

Added in 1.3.0

似乎存在一些问题,我测试后发现:新增加的“不删除分隔符”功能,似乎只能对文档中的第一个分隔符起作用。

@decaf-dev
Copy link
Owner

Added in 1.3.0

似乎存在一些问题,我测试后发现:新增加的“不删除分隔符”功能,似乎只能对文档中的第一个分隔符起作用。

Could you give me an example?

@decaf-dev decaf-dev reopened this Sep 22, 2024
@jkjoker
Copy link
Author

jkjoker commented Sep 22, 2024

Added in 1.3.0

似乎存在一些问题,我测试后发现:新增加的“不删除分隔符”功能,似乎只能对文档中的第一个分隔符起作用。

Could you give me an example?

1、准备一个test文档
2、文档中存放下面的内容:

2.1 第一个二级标题

2024.9.22 19:04:40
obsidian

2.2 第二个二级标题

2024.9.22 19:04:43
一个笔记工具

2.3 第三个二级标题

2024.9.22 19:07:08
支持插件模式

2.4 这是本次测试所用分隔符

2024.9.22 19:07:56
\n##
包含一个换行符
两个#
一个空格

2.5 这是本次测试的结果,测试完再补充

2024.9.22 19:09:07

3、本次测试结果:
split into 5 notes
5条笔记用代码块包裹,展示如下:

## 2.1 第一个二级标题
2024.9.22 19:04:40
obsidian\n## 

2.2 第二个二级标题
2024.9.22 19:04:43
一个笔记工具\n## 

2.3 第三个二级标题
2024.9.22 19:07:08
支持插件模式\n## 

2.4 这是本次测试所用分隔符
2024.9.22 19:07:56
`\n## `
包含一个换行符
两个#
一个空格\n## 

2.5 这是本次测试的结果,测试完再补充
2024.9.22 19:09:07\n## 

4、问题分析:
可以看见,仅文档2.1正确拆分。
其他文档中,分隔符被添加到末尾了。

——也许是跟“添加到末尾”这个功能相互影响了?

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

No branches or pull requests

2 participants