CarlosNZ/json-edit-react

Alternative line wrapping option for large arrays & small arrays

CarlosNZ opened this issue · 0 comments

Rather than this:
Screenshot 2023-06-02 at 11 29 33 AM

Something like this would look better:

>hoursSchedule: [ 24 items
  0, 1, 2, 3, 4, 5, 6, 
  7, 8, 9, 10, 11, 12,
  13, 14, 15, 16, 17,
  18, 19, 20, 21, 22,
  23
]

Would affect both the collection layout and the JSON.stringify() display when editing, so not trivial to do nicely.

Similarly for "small" arrays, it would look nicer if they were all on one line.