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

Open the app with JSON content selected #17

Open
rijkvanzanten opened this issue Dec 4, 2019 · 1 comment
Open

Open the app with JSON content selected #17

rijkvanzanten opened this issue Dec 4, 2019 · 1 comment

Comments

@rijkvanzanten
Copy link
Contributor

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
Copy link
Contributor Author

Liking my own post

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

1 participant