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

搜索替换支持转换行级元素类型 #11238

Open
TCOTC opened this issue May 3, 2024 · 5 comments
Open

搜索替换支持转换行级元素类型 #11238

TCOTC opened this issue May 3, 2024 · 5 comments
Assignees

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 3, 2024

In what scenarios do you need this feature?

侧边栏里目前只有重命名和删除,做不到删除标签还留下行级标签的文本:

image

在搜索里替换又没有效果:

image

image

Describe the optimal solution

行级标签支持批量转换为文本

Describe the candidate solution

No response

Other information

备注:#11058

@TCOTC
Copy link
Contributor Author

TCOTC commented May 4, 2024

我只尝试了行级标签,其他行级元素不知道支不支持替换

@TCOTC
Copy link
Contributor Author

TCOTC commented May 10, 2024

刚刚发现,如果实现了搜索替换支持转换元素类型,理论上就能直接实现 块引用与标签互转 · Issue #11026 · siyuan-note/siyuan

@TCOTC TCOTC changed the title 行级标签支持批量转换为文本 行级标签支持替换 May 10, 2024
@88250 88250 self-assigned this May 10, 2024
@88250
Copy link
Member

88250 commented May 10, 2024

目前替换标签内容有 bug 导致替换失败,但修复 bug 以后也只能支持替换标签内容,不支持替换类型。

88250 added a commit that referenced this issue May 10, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 10, 2024

只能支持替换标签内容,不支持替换类型

意思就是说不能把标签替换为纯文本?

@88250
Copy link
Member

88250 commented May 10, 2024

是的,目前只能替换内容,要改变类型的话还没想到适合的方案。

@TCOTC TCOTC changed the title 行级标签支持替换 搜索替换支持转换元素类型 May 10, 2024
@88250 88250 changed the title 搜索替换支持转换元素类型 搜索替换支持转换行级元素类型 May 10, 2024
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