kritzware / json.pizza

Online JSON formatter and prettifier
https://json.pizza
80 stars 15 forks source link

Open the app with JSON content selected #17

Open rijkvanzanten opened 4 years ago

rijkvanzanten commented 4 years ago

When you open the app, the previous JSON you used is still there and the cursor is focussed inside the editor. However, I often find myself pasting the JSON i'd like to format before the JSON that was already there, because the JSON isn't selected yet.

Right now, the flow of formatting a JSON structure is:

  1. Open json.pizza
  2. Select all (CMD+A)
  3. Delete (backspace)
  4. Paste new JSON (CMD+V)
  5. Hit format (CMD+Enter)

I'd argue that the flow should be

  1. Open json.pizza
  2. Paste new JSON (CMD+V)
  3. Hit format (CMD+Enter)

We can achieve this while maintaining the persistance feature by pre-selecting all the JSON in the editor when opening the app

rijkvanzanten commented 4 years ago

Liking my own post