-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Database-bound block primary key supports setting static anchor text #10049
Comments
最新版已经屏蔽绑定块主键的右键菜单,暂时不考虑支持“静态锚文本”了,感谢提议。 |
补充一下:绑定块的主键渲染遵循动态锚文本渲染规则,即可以考虑使用块命名来改变此处的渲染。 |
由于思源笔记的一个块可以属于多个数据库,有的时候就有一个需求——希望在不同数据库,这个块的命名是不同的 可以的话,还是非常希望数据库的块引也是支持静态锚文本的,这样会更加灵活 |
正如前面所说,绑定块后显示的是块的动态锚文本,无法支持单独设置内容。 |
没办法兼容静态锚文本显示吗 |
目前没有办法,我们先打开,后续有空再看看能否实现。 |
谢谢,辛苦🙇♂️ |
现在已经单独实现了主键内容构建 |
修改主键锚文本的交互应该怎么做? |
估计是右键弹菜单吧 |
我觉得楼上的方案更好一点,右键菜单选项会多三四步,修改内容多了就有点繁琐了,如果可以像notion一样也行,不过考虑现在的文档块不支持链接或者块引用,不太好实现 |
图标就不支持设置静态锚文本了,只有文档标题支持为不同的库设置不同的静态锚文本。 |
还是直接编辑单元格吧,不用菜单了。 |
我这里好像还不行,控制台会报错 |
开发环境下?贴一下报错 |
确实有问题,稍后解决。 |
主键锚文本能不能支持换行? 还有条目的复制块引用和复制 Markdown 链接时需要用静态锚文本(如果有的话) |
不支持换行;复制锚文本的问题稍后改进 @Vanessa219 |
不支持换行的原因是什么? |
这里的逻辑还有点问题,用户只要误触一下就会变成静态锚文本了: video.webm |
属性里用换行可能有问题 |
|
我感觉这就跟纯文本主键一样,应该不会有啥问题 |
等继续看看需求 |
* commit '914c7659388e645395e70224f0d831950275eb05': (70 commits) 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 🚨 🎨 siyuan-note#10049 🎨 Improve net img convert to local siyuan-note#13600 📝 Improve the user guide 🎨 Improve notebook sorting siyuan-note#13598 🐛 siyuan-note#10049 🔖 Release v3.1.17 🚨 ⚡ Reduce startup time when sync is enabled siyuan-note#13589 ♻️ Upgrade to Electron v32.2.7 siyuan-note#13566 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 🎨 siyuan-note#10049 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 🎨 siyuan-note#10049 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 📝 Update changelogs 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 🎨 Database-bound block primary key supports setting static anchor text siyuan-note#10049 ... # Conflicts: # app/electron-builder.yml
为啥搜索替换后文本不能自动更新啊 手动改是可以的 |
先记录 #13746 |
希望数据库的块引支持静态锚文本
In what scenarios do you need this feature?
比如我搞了一个TODO数据库,我先前已经建立了一个以文献标题命名的文档,我现在想要建立一个待办,阅读xx文献
但是目前的话,即使手动更改了数据库主键的块引锚文本,刷新之后,又会变为原来的文档标题
Describe the optimal solution
希望数据库的主键块引支持静态锚文本
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: