ljos / jq-mode

Emacs major mode for editing jq queries.
GNU General Public License v3.0
110 stars 12 forks source link

Indented JSON #8

Closed mcraveiro closed 8 years ago

mcraveiro commented 8 years ago

Hi,

Thanks very much for a great mode, I was using jq from the command line and this is much better! One small question though: when I use jq-interactively on a indented buffer, the output buffer appears to be un-indented. Is there some option I can set for the output to become indented?

Thanks for your time.

Marco

ljos commented 8 years ago

If you set jq-interactive-default-options to "" it should indent. I will make a commit to make that the default.

ljos commented 8 years ago

it will however not keep the indentation that you had before. It just uses the indentation from jq directly.

mcraveiro commented 8 years ago

works like a charm, thanks very much! One more question - my buffer was originally in JSON mode, but when I apply jq-interactively I can't see the font-lock (although emacs does say JSON mode). Is this expected? It's not a problem really, more of a question in case there is something i can toggle to get font-lock to come out.

Cheers

ljos commented 8 years ago

This is the problem I describe in #7. I haven't figured out how to get the font-lock to apply to text in an overlay. I am thinking about a different way of doing it, but for now you will have to live without colours.

mcraveiro commented 8 years ago

Aha, now I understand your comments! great, thanks, not a major issue - mode is extremely useful as it is, thanks very much!