Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: The line number field no longer appears in the database attribute panel https://github.com/siyuan-note/siyuan/issues/11319

Danielc6dca1fe0c97
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 3a945a9910..cb93b8d6e9 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -379,6 +379,12 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
var keyValues []*av.KeyValues
for _, kv := range attrView.KeyValues {
+ if av.KeyTypeLineNumber == kv.Key.Type {
+ // 属性面板中不显示行号字段
+ // The line number field no longer appears in the database attribute panel https://github.com/siyuan-note/siyuan/issues/11319
+ continue
+ }
+
kValues := &av.KeyValues{Key: kv.Key}
for _, v := range kv.Values {
if v.BlockID == blockID {