mirror of
https://github.com/Myzel394/jsonfly.nvim.git
synced 2025-06-18 12:15:25 +02:00
docs: Add info about inserting keys
This commit is contained in:
parent
66611884e0
commit
b7ac8e81ed
16
README.md
16
README.md
@ -11,6 +11,7 @@ It's completely customizable and even supports highlighting of the values.
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
* 🔍 Search for deeply nested keys - `expo.android.imageAsset.0.uri`
|
* 🔍 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)
|
* 🎨 See values with their correct syntax highlighting (numbers, strings, booleans, null; configurable)
|
||||||
* 💻 Use your LSP or the built-in JSON parser
|
* 💻 Use your LSP or the built-in JSON parser
|
||||||
* 🗑 Values automatically cached for faster navigation
|
* 🗑 Values automatically cached for faster navigation
|
||||||
@ -67,6 +68,21 @@ Go to a JSON file and run:
|
|||||||
```lua
|
```lua
|
||||||
:Telescope jsonfly
|
: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
|
## See also
|
||||||
|
|
||||||
* [jsonpath.nvim](https://github.com/phelipetls/jsonpath.nvim) - Copy JSON paths to your clipboard
|
* [jsonpath.nvim](https://github.com/phelipetls/jsonpath.nvim) - Copy JSON paths to your clipboard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user