afterschoolstudio / Depot

Structured data editor built inside VS Code
Apache License 2.0
186 stars 19 forks source link

Reorder sheet (and list) rows #33

Open Vaskivo opened 3 years ago

Vaskivo commented 3 years ago

In my usage of Depot, I use the ordering of the rows in sheets and lists.

For this use-case, it would be desireable to add the capability to reorder the rows.

This could be achieved by:

At the moment, the only way I can reorder the rows is by opening the file as a text file and editing it.

A nice extra would be to have in the Depot Specification something specifying that the order of elements in the file match the order that they are presented in the extension. This would formalize the contract.

kkukshtel commented 3 years ago

This is a great idea! I think in scope for now is definitely some sort of move up/down arrow near the "X" for removing a line. An issue right now in "enforcing" order in the VSCode extension context is that when the data travels to the extension host and back during the serialization process, the data seems to get arbitrarily rearranged. I tried to do some order enforcement stuff before but could never really get it to work properly, with Code's side of things being a bit of a black box.

Regardless, getting some movement arrows in would be great!