ElyTable: a column filter button sorts and filters its own range (T-08)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 18:36:23 -04:00
1 parent 4d7ec45027
commit 0c87b0bbf7
5 files changed
+46 -1

No files matched your search

+4
View File
@@ -397,6 +397,7 @@ impl Book {
book.dialog = Some(Dialog::Column {
tab: id,
column,
row,
entries: filter.entries,
picked,
});
@@ -413,12 +414,15 @@ impl Book {
let Some(Dialog::Column {
tab,
column,
row,
entries,
picked,
}) = self.dialog.take()
else {
return;
};
// The kernel filters the cursor's range: go to the button.
self.run_in(Some(tab), "cell.goto", &[&sheet::address(column, row)], cx);
match sort {
Some(rising) => {
let key = SortKey {