Repository: ynqa/jnv (language: rust)

Issue:
Fails to execute jq query when the key starts with `@` symbol
The problem occurs when `@` symbol is present as a key in a json file, I get autocompletion when I press Tab but then it fails to get the value for the specified key.
![reproduction](https://github.com/ynqa/jnv/assets/36114668/57091900-c8b3-401c-a0b6-f653b96f5fdb)



Discussion / hints:
Easy repro:

```bash
$ echo '{ "@ynqa": "need double quotation for query" }' | jnv

❯❯ .@ynqa
Failed to execute jq query '.@ynqa'
  .
❯ .@ynqa
{
  "@ynqa": "need double quotation for query"
}

# put double quote myself
❯❯ ."name@ynqa"
"need double quotation for query"
```

@Faroukhamadi Thank you for the report. It seems that if there is an `@` present, it needs to be escaped with double quotes. This is something that hadn't been addressed, and will be fixed 👍 

Fix patch:
diff --git a/src/jnv.rs b/src/jnv.rs
index 645838d..739e745 100644
--- a/src/jnv.rs
+++ b/src/jnv.rs
@@ -53,7 +53,7 @@ impl Jnv {
                     .iter()
                     .map(|segment| match segment {
                         JsonPathSegment::Key(key) => {
-                            if key.contains('.') || key.contains('-') {
+                            if key.contains('.') || key.contains('-') || key.contains('@') {
                                 format!(".\"{}\"", key)
                             } else {
                                 format!(".{}", key)


Test patch: