Skip to content

Request: Automatically resize json fields #344

@XenonA7

Description

@XenonA7

When working with entities and event steps, it is very common to grab JSON data out of certain fields (things like {"player": true} for an entity field) and copy/paste it to other fields. Or to make edits to json data in these fields by changing values, etc.

Each time this needs to be done, the field must be expanded by dragging the handle in the bottom-right with the mouse. Unexpanded, only the first line's { is visible, making the actual data unable to be read at a glance.

Image

After manually expanding:
Image

It would be very helpful as a QOL feature if the editor automatically expanded these fields if there is only 4-5 lines of json data.

However if a field has many lines of data (or the wrapped text results in many lines), I think it should stay minimized by default to avoid clutter. For example, something like this should probably not automatically expand:
Image

But for things like each connection of an NPCWaypoint, it would help to have them expanded by default:
(connection 0 is manually expanded in the screenshot)
Image

It would also improve QOL if the json field automatically expanded after pasting data into an empty field. For example, I will often copy something like

{
  "global": true,
  "name": "wp5"
}

from an existing entity into a new entity before modifying the name to something else. The field size must be manually expanded after pasting before I am able to modify the name data. This isn't an issue by any means, more of a minor annoyance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions