Search
If search is enabled, a search input will be visible in the header.
Typing a query and hitting enter will index the inspected values, search it and highlight any paths with keys, paths and values that matches the query.
If highlightMatches is enabled, matching text will be highlighted when you type your query.
Text highlighting also respects prefixes like path and type.
Search Modes
Section titled “Search Modes”The search setting / prop can set three different search modes:
'filter' | true- children and siblings of matching nodes will be visible'filter-strict'- only matches will be visible'highlight'- no nodes will be hidden, but matches will be highlighted
Narrowing
Section titled “Narrowing”Search results can be narrowed by using multiple terms and the following prefixes:
value:to search the content of the value, e.g.true/'foo'/12356ntype:to search for values that matches a specific type, e.g.number/boolean/datekey:to search within a values keypath:to search within the path to a value, e.g.people.3.contact.email
Wrapping terms in quotes will require an exact match. With a prefix it would look like value:"1234".
Multiple Terms
Section titled “Multiple Terms”If multiple terms are entered (separated by space) a mode-selector appears letting you choose between and / or-mode. The initial mode can be set with the searchMode-prop.
For example, querying type:"string" path:foo would match all string values and / or values with 'foo' in their path / key.
Expanding Matches
Section titled “Expanding Matches”All matching paths will be expanded. To keep highlighted matching paths expanded after clearing the search results, hit Enter again without changing the query.
The Esc-button will clear the input and search results when the search field is focused, and if the search field was focused using the keyboard shortcut, the last focused node will be re-focused.