🎨 改进没有模板时 /模板
的交互 https://github.com/siyuan-note/siyuan/issues/5636
This commit is contained in:
parent
30fd11cbcd
commit
ae8b83c53e
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue