Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customisable tree display - new feature #76

Open
AntunBartonicek opened this issue Jun 4, 2020 · 0 comments
Open

Customisable tree display - new feature #76

AntunBartonicek opened this issue Jun 4, 2020 · 0 comments
Labels
hacktoberfest Open For Hacktoberfest PRs

Comments

@AntunBartonicek
Copy link

AntunBartonicek commented Jun 4, 2020

It would be useful if tree display logic could be slightly extended so that for Objects it additionally displays one of the property values from that object.
For simplicity, this setup could be part of the right click context menu along with other available commands.
Example: Right click on property from that object and select: Set as identifier

Currently it looks like this:
ourArray: [Array]
+[0]: [Object]
+[1]: [Object]
+[2]: [Object]
+[3]: [Object]

If we know that every item has property "name" then new setup would enable us right click on it and chose Set as identifier.
After that tree would be refreshed (automatically or manually) and would look like this:
ourArray: [Array]
+[0]: [Object] [name: "One"]
+[1]: [Object] [name: "Two"]
+[2]: [Object] [name: "Three"]
+[3]: [Object] [name: "Four"]

If property not found on all objects in this tree then of course no error should be thrown and it simply would display it as before.

I know something like this would greatly help people who have to inspect larger JSON files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Open For Hacktoberfest PRs
Projects
None yet
Development

No branches or pull requests

2 participants