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

Feature request: add support for jumping to json node by specific path. #100

Closed
wufeng87 opened this issue Sep 22, 2022 · 9 comments · Fixed by #107
Closed

Feature request: add support for jumping to json node by specific path. #100

wufeng87 opened this issue Sep 22, 2022 · 9 comments · Fixed by #107
Labels
hacktoberfest Great issues for Hacktoberfest participants

Comments

@wufeng87
Copy link

Say I already open the json I need to view, and I got the path I want to jump to from another colleague, and I want to jump to this path without reload my page.

It's more effective than using the search bar to search and navigate.

@ericallam ericallam added the hacktoberfest Great issues for Hacktoberfest participants label Sep 26, 2022
@Suven-p
Copy link
Contributor

Suven-p commented Sep 27, 2022

Can I work on this?

@ericallam
Copy link
Member

Sure, go for it!

@matt-aitken
Copy link
Member

@Suven-p you'll see we’re using paths a lot in the code already to navigate. Using https://www.npmjs.com/package/@jsonhero/path

@Suven-p
Copy link
Contributor

Suven-p commented Sep 27, 2022

I thought of having the PathBarLink have text mode and gui mode.
Go into text mode by double clicking path bar.
When focus moves out of path bar switch directory and switch back to GUI mode.

Something like these
image
image

Would that work?

@matt-aitken
Copy link
Member

matt-aitken commented Sep 27, 2022 via email

@Suven-p
Copy link
Contributor

Suven-p commented Sep 27, 2022

Yes that makes sense. Would it be ok if I make the PR in October for hacktoberfest? aiming for October first :)

@matt-aitken
Copy link
Member

matt-aitken commented Sep 27, 2022 via email

@Suven-p
Copy link
Contributor

Suven-p commented Sep 28, 2022

Deployed to https://json.nevus.workers.dev/ from Suven-p@1b16beb

@ericallam
Copy link
Member

This looks great! Would love a PR when you get a chance

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

Successfully merging a pull request may close this issue.

4 participants