mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
🎨 反链面板中文档标题在鼠标悬浮时显示文档完整路径 https://github.com/siyuan-note/insider/issues/1088
This commit is contained in:
parent
d5931778cf
commit
1b0426b987
2 changed files with 29 additions and 0 deletions
|
|
@ -467,6 +467,21 @@ func (conf *AppConf) Box(boxID string) *Box {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (conf *AppConf) BoxNames(boxIDs []string) (ret map[string]string) {
|
||||
ret = map[string]string{}
|
||||
|
||||
boxes := conf.GetOpenedBoxes()
|
||||
for _, boxID := range boxIDs {
|
||||
for _, box := range boxes {
|
||||
if box.ID == boxID {
|
||||
ret[boxID] = box.Name
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (conf *AppConf) GetBoxes() (ret []*Box) {
|
||||
ret = []*Box{}
|
||||
notebooks, err := ListNotebooks()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue