-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add option to configure path seperator #69
Comments
What is the context in which you would prefer If you are referring to the query box (for example, using If you are asking for a fourth option for the Path to current position command, with a configurable path separator defined in the settings, I would be willing to implement that. |
Sorry I didn't work on your issue for a while; I'm still game to work on it if you're still interested. The main reason I've been anxious about working on your issue is the question of what to do with array indices and keys that contain the separator. This is only a reasonable thing to add to my plugin if I can come up with a simple general-purpose algorithm; it is not really reasonable for me to fill JsonTools with reverse-engineered application logic from any other arbitrary software that some user happens to use. What I was currently thinking was this:
So the path (key Would that implementation work? |
Hmmm, I am not sure, if you are thinking too complicated for all that matter ... why don't you have a problem with a dot, because that is way more a parsing problem when you create a path like "path.to.my.key". why is there no problem in "way.to.502.33" - this is way more difficult as it could be 502 and 33 or a float 502.33. I still think, you did not understand really what my request is, i try again with a simple structure {
"hello" : "world",
"hey" : {
"dude": 42
}
} currently, if i click on "dude" and get the path, you generate "hey.dude". All I want is, that you generate "hey/dude". I do not really understand that complicated parsing, string-representation construct you showed me up there. I hope, this explanation is easier to understand thanks! |
You're welcome to test out my most recent commit, which I believe addresses your issue. Follow the instructions here to download the GH artifact for the commit. You can also read the documentation for the new |
You do a very good job here - well documented! |
You're welcome! If you ever see an opportunity to improve the documentation, feel free to create an issue. The fix to this issue is now in v8.1, which I will try to get listed in the Notepad++ Plugin List ASAP. Once the next version of Notepad++ is released that lists that version of JsonTools, I will wait a little while and then close this issue. |
Hi,
I know, it is pretty standard to use the
.
as seperator for json paths (likestrings.legal.copyright
), however I also have systems which would prefer a/
as path seperator, likestrings/legal/copyright
.Could you add an option to set a character as the path seperator? Leave it as
.
as default, so nothing changes for the current default behaviorThanks!
The text was updated successfully, but these errors were encountered: