mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 改进没有模板时 /模板 的交互 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
Add a link
Reference in a new issue