Skip to content

feat: focus a specific path #335

@jeremysf

Description

@jeremysf

First off, thank you so much for this project!

I'm trying to use it to implement a real-time debugger for our graphical editor which can convert the graphical data being edited to JSON.

Somewhat related to #326, I'd like to be able to specify a path (similar string|number format to the onChange() function) that will cause the viewer to expand objects and scroll to focus the path.

I want to use this to be able to do a custom search inside the JSON and tell the json-viewer to jump to the location, but I also want to be able to interact with our graphical data and jump the json-viewer to correlate to the graphical element. Somewhat like "inspect element" in the Webkit Inspector.

Happy to do the work, but would love any pointers/ideas for the best way to approach such a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions