decaf-dev / obsidian-dataloom

Weave together data from diverse sources and display them in different views. Inspired by Excel spreadsheets and Notion.so.
https://dataloom.xyz/
MIT License
900 stars 32 forks source link

Save the table scroll position for undo/redo #817

Open decaf-dev opened 8 months ago

decaf-dev commented 8 months ago

Problem

If a user adds a row, the table will scroll to the bottom. If the user then undoes that command, the table position will still be at the bottom.

Solution

Save the table position in the command, so if you press undo/redo the table will jump to its position when the command occurred.

Additional details

No response