tomaszkiewicz / obsidian-database-plugin

Enables creating databases based on files in Obsidian - like Dataview, but with editing!
MIT License
160 stars 2 forks source link

[feature]: persist sorting even when switching notes #3

Open imed-ghomari opened 2 years ago

imed-ghomari commented 2 years ago

When I sort by a column, then open another note, if I switch back to the database, the sorting is reverted to default. It would be nice if the sort persisted even if I switched to other notes.

https://user-images.githubusercontent.com/38974541/166460348-b150873c-5624-44d9-9e91-565ae3490037.mov

tomaszkiewicz commented 2 years ago

At the moment it's possible to save it with a query like:

fields: .....
sortBy:
- brand
- model

However I haven't mentioned that in README as I'll be extending that in the next versions to support ASC and DESC types of sorting.

Regarding saving what's set with clicking - I'm afraid it's quite hard to implement as I need to identify specific table on the page and then find a definition in source for it... but it's a feature worth implementing, I'll leave it opened here :)