mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 支持设置悬浮窗弹出选项 https://github.com/siyuan-note/siyuan/issues/4781
This commit is contained in:
parent
a314f0ffc8
commit
911490c350
2 changed files with 3 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ type Editor struct {
|
||||||
ReadOnly bool `json:"readOnly"` // 只读模式
|
ReadOnly bool `json:"readOnly"` // 只读模式
|
||||||
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
|
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
|
||||||
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
|
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
|
||||||
BlockRefFloatWindowMode int `json:"blockRefFloatWindowMode"` // 块引悬浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停
|
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEditor() *Editor {
|
func NewEditor() *Editor {
|
||||||
|
|
@ -61,6 +61,6 @@ func NewEditor() *Editor {
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
EmbedBlockBreadcrumb: false,
|
EmbedBlockBreadcrumb: false,
|
||||||
ListLogicalOutdent: false,
|
ListLogicalOutdent: false,
|
||||||
BlockRefFloatWindowMode: 0,
|
FloatWindowMode: 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ func Serve(fastMode bool) {
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logging.LogInfof("boot kernel [fast=%v, port=%s]", fastMode, util.ServerPort)
|
||||||
ln, err := net.Listen("tcp", host+":"+util.ServerPort)
|
ln, err := net.Listen("tcp", host+":"+util.ServerPort)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
if !fastMode {
|
if !fastMode {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue