An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
Daniel253ad7291381
diff --git a/kernel/av/av.go b/kernel/av/av.goindex ed258d8fef..6b55bf51d0 100644--- a/kernel/av/av.go+++ b/kernel/av/av.go@@ -247,6 +247,7 @@ func NewGalleryView() (ret *View) {type Viewable interface {FilterableSortable+ GroupableCalculableGetType() LayoutTypediff --git a/kernel/av/layout.go b/kernel/av/layout.goindex 1e1ad606ff..ae5a7738a9 100644--- a/kernel/av/layout.go+++ b/kernel/av/layout.go@@ -300,3 +300,7 @@ func filter0(collection Collection, attrView *AttributeView) {}collection.SetItems(items)}++func group0(collection Collection, attrView *AttributeView) {+ // TODO 分组 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964+}diff --git a/kernel/av/layout_gallery.go b/kernel/av/layout_gallery.goindex 45c357866e..3a14f568b4 100644--- a/kernel/av/layout_gallery.go+++ b/kernel/av/layout_gallery.go@@ -196,3 +196,7 @@ func (gallery *Gallery) Sort(attrView *AttributeView) {func (gallery *Gallery) Filter(attrView *AttributeView) {filter0(gallery, attrView)}++func (gallery *Gallery) Group(attrView *AttributeView) {+ group0(gallery, attrView)+}diff --git a/kernel/av/layout_table.go b/kernel/av/layout_table.goindex 8fb65f3aeb..b47a42e9b8 100644--- a/kernel/av/layout_table.go+++ b/kernel/av/layout_table.go@@ -169,3 +169,7 @@ func (table *Table) Sort(attrView *AttributeView) {func (table *Table) Filter(attrView *AttributeView) {filter0(table, attrView)}++func (table *Table) Group(attrView *AttributeView) {+ group0(table, attrView)+}