Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: Supports append text by shortcuts to the dailynote doc on Android https://github.com/siyuan-note/siyuan/issues/14414

Daniel44738e34c056
diff --git a/kernel/model/shortcuts.go b/kernel/model/shortcuts.go
index 6f4527f1e0..c61173a258 100644
--- a/kernel/model/shortcuts.go
+++ b/kernel/model/shortcuts.go
@@ -20,6 +20,7 @@ import (
"bytes"
"os"
"path/filepath"
+ "strings"
"github.com/88250/gulu"
"github.com/siyuan-note/logging"
@@ -70,7 +71,7 @@ func ShortcutsAppendToDailynote() {
}
}()
- content := buff.String()
+ content := strings.TrimSpace(buff.String())
if 1 > len(content) {
return
}