Giter Site home page Giter Site logo

intellij-json-sorter-plugin's People

Contributors

ivanovych666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

intellij-json-sorter-plugin's Issues

Execute on selected node only.

Sometimes you have the parent nodes of a json object sorted in a specific order.

My specific example is order the eslint rules: I want extends, globals, env and parserOptions to always stay at the top, and overrides at the bottom. But I want the rules to be sorted alphabetically.

Plugin does not sort correct

Good day!
I have json like this one.
[ { "_id": "AD", ... },
{ "_id": "AT", ... },
{ "_id": "IT", ...},
{ "_id": "BE", ... }, ... ]

And after sorting, nothing is happened.
The "_id=IT" is still above of "_id=BE".
I have tried all sorting modes.

Thanks in advance.

test json for parser error

{
  "a": [],
  "b": {
    "\" breaking test": "\"  hard test",
    "\" and you failed": "sorry"
  }
}

inside "" escaping " breaks parser

ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon.

com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'com.ivanovych666.intellij.plugin.jsonsorter.JSONSorterGroup' must override getActionUpdateThread and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.ivanovych666.intellij.plugin.jsonsorter]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)

Problem with sort order

I think there may be a small problem with sorting:

When I sort alphabetically (or actually any of the forward sort options), I get the following result:

{
    "Add aaaa": "1",
    "Add bbbb": "2",
    "Add zzzz": "3",
    "Add": "4"
}

I believe, at least for proper alphabetical sorting, "Add" should be at the top of all strings starting with "Add".
This problem seems to appear in all offered sort options.

https://en.wikipedia.org/wiki/Alphabetical_order

"If a position is reached where one string has no more letters to compare while the other does, then the first (shorter) string is deemed to come first in alphabetical order."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.