vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Navigating sequences of mappings by property value

Open gorkem opened this issue 2 years ago • 2 comments

Discussed in https://github.com/redhat-developer/vscode-yaml/discussions/862

Originally posted by cutecycle December 28, 2022 I was wondering: is this a thing that makes sense to want, or should I rethink my schema?

Say I have a file that is a list of objects:

- name: do the thing
  priority: 0
- name: do the other thing
  priority: 1

If I want to navigate to "do the thing," I'd have to Ctrl-F since the outline just shows the list with no other information:

image image

Though the property value is listed in the outline image

gorkem avatar Feb 01 '23 16:02 gorkem

It is likely that we are not sending some information as part of the symbols that makes the values to be navigatable.

gorkem avatar Feb 01 '23 16:02 gorkem

Note that the vscode-xml extension has this feature. It’s called xml.symbols.filters there.

claui avatar Sep 02 '25 08:09 claui