Skip to content

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

:art: 添加编辑器设置

Liang Dingc24c4f4ef1dd
diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go
index 563ee53ca2..c12022c7f9 100644
--- a/kernel/conf/editor.go
+++ b/kernel/conf/editor.go
@@ -39,7 +39,9 @@ type Editor struct {
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停
- DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [128, 1024]
+ DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [48, 1024]
+ Justify bool `json:"justify"` // 是否两端对齐
+ RTL bool `json:"rtl"` // 是否从右到左显示
}
func NewEditor() *Editor {
@@ -64,5 +66,7 @@ func NewEditor() *Editor {
ListLogicalOutdent: false,
FloatWindowMode: 0,
DynamicLoadBlocks: 128,
+ Justify: false,
+ RTL: false,
}
}