Copy the path of deeply nested keys from JSON/YAML files.
With lazy.nvim:
{ "olrtg/nvim-copy-deep-path", config = true }
This will add the :CopyDeepPath
command to your Neovim.
Let's say you have a JSON file with the following structure:
{
"foo": {
"bar": {
"baz": "qux"
}
}
}
With the cursor on the baz
key, you can run :CopyDeepPath
to copy the path
foo.bar.baz
to the clipboard.