🎨 改进没有模板时 /模板 的交互 https://github.com/siyuan-note/siyuan/issues/5636

This commit is contained in:
Liang Ding 2022-08-17 17:19:13 +08:00
parent 30fd11cbcd
commit ae8b83c53e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -59,6 +59,8 @@ func RenderCreateDocNameTemplate(nameTemplate string) (ret string, err error) {
}
func SearchTemplate(keyword string) (ret []*Block) {
ret = []*Block{}
templates := filepath.Join(util.DataDir, "templates")
k := strings.ToLower(keyword)
filepath.Walk(templates, func(path string, info fs.FileInfo, err error) error {