Depot icon indicating copy to clipboard operation
Depot copied to clipboard

Reorder sheet (and list) rows

Open Vaskivo opened this issue 4 years ago • 1 comments

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:

  • (simplest) "move up" and "move down" button in the row, near the "delete row" one.
  • (probably more difficult) Some drag&drop support.

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.

Vaskivo avatar Feb 18 '21 14:02 Vaskivo

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!

kkukshtel avatar Feb 19 '21 00:02 kkukshtel