Skip to content

Commit

Permalink
docs: Add info about inserting keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed May 1, 2024
1 parent 6661188 commit b7ac8e8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ It's completely customizable and even supports highlighting of the values.
## Features

* 🔍 Search for deeply nested keys - `expo.android.imageAsset.0.uri`
* ⏎ Insert keys quickly into your buffer
* 🎨 See values with their correct syntax highlighting (numbers, strings, booleans, null; configurable)
* 💻 Use your LSP or the built-in JSON parser
* 🗑 Values automatically cached for faster navigation
Expand Down Expand Up @@ -67,6 +68,21 @@ Go to a JSON file and run:
```lua
:Telescope jsonfly


Now you can search for keys, subkeys, part of keys etc.

### Inserting Keys

If you search for a key that doesn't exist you can add it to your buffer by pressing `<C-a>` (CTRL + a).

You can enter nested keys, arrays, indices, subkeys etc. JSON(fly) will automatically manage everything for you.

The following schemas are valid:

* Nested keys: `expo.android.imageAssets.`
* Array indices: `expo.android.imageAssets.0.uri`, `expo.android.imageAssets.3.uri`, `expo.android.imageAssets.[3].uri`
* Escaping: `expo.android.tests.\0.name` -> Will not create an array but a key with the name `0`

## See also

* [jsonpath.nvim](https://github.com/phelipetls/jsonpath.nvim) - Copy JSON paths to your clipboard
Expand Down

0 comments on commit b7ac8e8

Please sign in to comment.