🎨 Support disabling list item dot/number click to focus https://github.com/siyuan-note/siyuan/issues/10431

This commit is contained in:
Daniel 2024-02-25 10:57:54 +08:00
parent 1210bff972
commit d6164264fe
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
9 changed files with 31 additions and 0 deletions

View file

@ -39,6 +39,7 @@ type Editor struct {
ReadOnly bool `json:"readOnly"` // 只读模式
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
ListItemDotNumberClickFocus bool `json:"listItemDotNumberClickFocus"` // 单击列表项标记聚焦
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式0光标悬停1按住 Ctrl 悬停2不触发浮窗
DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [48, 1024]
Justify bool `json:"justify"` // 是否两端对齐
@ -70,6 +71,7 @@ func NewEditor() *Editor {
ReadOnly: false,
EmbedBlockBreadcrumb: false,
ListLogicalOutdent: false,
ListItemDotNumberClickFocus: true,
FloatWindowMode: 0,
DynamicLoadBlocks: 192,
Justify: false,