context.vim icon indicating copy to clipboard operation
context.vim copied to clipboard

[Question] is there a way to show a "header" when the matched line is a single `{`

Open FederAndInk opened this issue 1 year ago • 0 comments

I am dealing with big json files looking like so:

[
{
  "type": "a type",
  "info": "additionnal info",
  "big array with values": [
    {},
    {},
    ...
   ]
},
{
  "type": "another type",
  "info": "additionnal info",
  "big array with values": [
    {},
    {},
    ...
   ]
},
...
]

when I am editing this json file (editing the "big array with values") I would like to know what is the "type" where I am, but the context window only shows a single {, is there a way to add context/join at least the line after this { ? and get something like { "type": "another type",

FederAndInk avatar Oct 24 '23 11:10 FederAndInk