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

Auto-format request JSON on es-execute-request-dwim #54

Open
drewr opened this issue Jul 21, 2017 · 1 comment
Open

Auto-format request JSON on es-execute-request-dwim #54

drewr opened this issue Jul 21, 2017 · 1 comment

Comments

@drewr
Copy link
Contributor

drewr commented Jul 21, 2017

Given:

POST /_search
{"query":{"match":{"f":1}}}

It'd be great if upon C-c C-c, it would transform into:

POST /_search
{
  "query": {
    "match": {
      "f": 1
    }
  }
}
@dakrone
Copy link
Owner

dakrone commented Jan 11, 2018

I looked into this, I was thinking this might be better handled with json-mode, in fact, highlighting an expression and doing M-x json-mode-beautify does exactly what I think you want. Would that work for you? I can consider making json-mode an optional dependency and add a keybinding for it, if you think that would work.

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

No branches or pull requests

2 participants