Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add "Copy YAML JSONPath" command #999

Open
rattrayalex opened this issue Dec 21, 2023 · 0 comments
Open

Feature request: add "Copy YAML JSONPath" command #999

rattrayalex opened this issue Dec 21, 2023 · 0 comments

Comments

@rattrayalex
Copy link

Is your enhancement related to a problem? Please describe.

My situation is that I work with OpenAPI specs frequently, and they are often described with YAML. We have tooling that lets us point at specific parts of the spec using a JSON Path.

When the spec is defined in JSON, I use the copy-json-path extension's Copy Json Path command to copy something like components.schemas.Foo to my clipboard.

Describe the solution you would like

A command like Copy YAML JSONPath, similar to the one mentioned above. I am not opinionated on the format, naming, etc.

The breadcrumbs at the top of the screen you already display are basically what I want, so just joining that with a . or something (and calling it something other than a "jsonpath", like perhaps "Copy YAML key path", if this would be meaningfully different from a compliant jsonpath) would be all that I really want/need.

Describe alternatives you have considered

Additional context

https://github.com/vmware-labs/yaml-jsonpath might be a useful library to help with this, if you don't already use it.

@rattrayalex rattrayalex changed the title Feature request: add "copy json path" command Feature request: add "Copy YAML JSONPath" command Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant