/nvim-copy-deep-path

🪆 Copy the path of deeply nested keys from JSON/YAML files

Primary LanguageLuaMIT LicenseMIT

nvim-copy-deep-path

Copy the path of deeply nested keys from JSON/YAML files.

Installation

With lazy.nvim:

{ "olrtg/nvim-copy-deep-path", config = true }

This will add the :CopyDeepPath command to your Neovim.

Usage

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.