-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
The embed block of a heading supports hiding the heading itself #15877
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
Conversation
应该要改成一个子菜单:
然后在设置里增加全局设置:
分别对应 custom-heading-mode 的 0、1、2、清除 |
全局设置没有必要吧? |
我也觉得默认 0 比较好,不改变已有用户习惯 |
|
在社区发一个投票看看,用户希望默认是哪一个
|
|
代码块、嵌入块面包屑这个只影响外观,改不改无所谓,导出不影响,嵌入块这个设置影响导出,改了全局设置之后,以前用默认选项的嵌入块导出就不符合预期了,是改了全局设置之后,影响很大的选项 |
你改成默认 2 的话影响难道不是更大吗?所有用户都一定会被影响,并且用户完全没得选 |
|
要加全局设置就得在设置里注明风险,会影响过去所有的笔记,非必要不修改 |
没必要,“全局”这个描述足够清晰了 |
排期推后一下 |
我赞同不要改变现有使用习惯并增加全局配置 |
那就这样吧 |
scripts/win-build.bat 不要改 |
赞同 |
57a1bbb
to
f390fda
Compare
感谢你的贡献,思源有你更精彩! |
@88250 把“區”删掉 ![]() |
稍后调整 |
Signed-off-by: Daniel <845765@qq.com>
@88250 修改注释 ![]() ![]() ![]() |
稍后调整,把“默认”删掉 |
Signed-off-by: Daniel <845765@qq.com>
@Vanessa219 这个下拉框能不能垂直居中,或者不用下拉框,用子菜单 ![]() |
标题块的嵌入块支持隐藏标题
关联:#15035
改进背景
考虑到目前标题块的嵌入块显示标题,不灵活不好用
因此建议标题块的嵌入块需要支持隐藏标题,可以选择作为非标题块嵌入当前笔记,也可以手动添加需要的标题层级,实现更灵活的块嵌入写作体验
修改内容
改进
kernel\model\search.go
getEmbedBlock
的headingMode,支持设置修改
app\src\protyle\gutter\index.ts
,修改hideHeadingBelowBlocks
改为标题嵌入设置,显示一个下拉框,支持设置下面三个选项
改进
app\src\protyle\render\blockRender.ts
的嵌入块渲染,custom-heading-mode
需要支持0、1、2改进
kernel\model\blockinfo.go
的buildBlockBreadcrumb
,仅显示标题下方的块时,需要显示标题名(目前只显示缩略的标题图标)