Skip to content

Show the path for the match #108

@yarikoptic

Description

@yarikoptic

Problem Statement

I am surprised we do not have a nice good tool to show the path to the match.

I asked chatgpt and it told me to try xq 'path(.. | select(. == "your_search_value"))' file.xml and obviously that did not work since there seems to be no such "advanced" search options in xq.

I wondered if there could be some "search" mode which also would depict the path to the hit or may be you would recommend alternatives?

Thanks in advance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions