Skip to content

onDidRepositionPopoutGroup event? #857

@borglin

Description

@borglin

Is your feature request related to a problem? Please describe.
I want to store the updated layout config when a user moves a popout or resizes it. Is there a plan to add a similar event as #754 for popout groups? I can see that position and size is in the layout config JSON but I can't see an event to track when it is updated so I can store the updated config

Describe the solution you'd like
I'd like to have a onDidRepositionPopoutGroup event to track when the popout position and size changes and ideally update the onLayoutChange event to trigger for any changes that updates that changes the JSON that dockviewApi.toJSON() produces.

Additional context
I know there's no API for tracking when a window is moved and that most solutions are based on periodically checking the current position or relying on other events like when the window is focused/blurred, so it is reasonable to say that it is outside the scope of Dockview to trigger an event when the popout is moved, but I still want to ask.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions