Hacker News new | past | comments | ask | show | jobs | submit login

Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was just sample JSON.

Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use.

I think this should probably just auto-format all the time. It's only for formatting, so that wouldn't get in the way.




CTRL for the shortcuts overlaps with the browser. You need to either completely take this over, or completely leave it be, and in this case, probably the latter. Otherwise I get shocked when I hit CTRL-w to see if it erases a word and it closes my window without warning.

There's also apparently some other things going on; CTRL-u uppercases the word you're on. A link to more docs or something may be helpful.


Do what https://prettier.io/playground/ does and have two windows so one autoformats.


I second this, I too expected this to auto-format - the only purpose of this tool is to prettify the JSON and rarely would anyone paste and then edit there.


Interestingly, some of the macOS shortcuts work but not others. I can kill text, for example, but yanking it back doesn't seem to work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: