Search Mode
Search Mode provides real-time fuzzy search functionality to quickly find datasets and groups in your HDF5 file. As you type, the tree filters in real-time to show only matching nodes and their parent hierarchy.
Purpose
Search Mode is designed for:
- Quickly finding specific datasets or groups by name
- Filtering large hierarchies to focus on relevant items
- Exploring files with deep or complex structures
Entering Search Mode
From Normal Mode:
- Press
sto enter Search Mode
The search input box will appear at the bottom of the screen and receive focus.
Keyboard Reference
| Key | Action | Description |
|---|---|---|
Enter |
Accept Results | Keep filtered tree and return to Normal Mode |
Escape |
Cancel Search | Restore original tree and return to Normal Mode |
How It Works
Real-time Filtering
As you type in Search Mode:
- The tree filters in real-time using fuzzy matching
- Matching nodes are automatically expanded and highlighted
- Parent nodes are shown to provide context
- Up to 100 best matches are displayed
Fuzzy Matching
The search uses intelligent fuzzy matching:
- Case-insensitive: "mass" matches "Mass", "MASS", "MaSs"
- Subsequence matching: All query characters must appear in order
- Smart scoring: Shorter paths with consecutive matches rank higher
Searching Attributes
Start the query with @ to search attributes instead of paths. Groups
and datasets with a matching attribute are shown just like path matches.
@name: fuzzy matches attribute names, e.g.@redshiftfinds every object with aRedshiftattribute@name=value: fuzzy matches the attribute's name and value as text, e.g.@Redshift=0.5or@Units=Msun(@=0.5matches the value alone)- A bare
@leaves the tree unfiltered
Only small attribute values (up to 16 elements, first 64 characters of their text) are searchable; larger array attributes are matched by name only. Attributes on the file's root are not indexed.
Using The Search Results
Accept Results (Enter):
- Keeps the filtered tree visible and returns to Normal Mode
- All mode commands (d, g, w, p, H) work on filtered results
- Navigate the filtered tree normally
- Press
n/Nto jump to the next / previous match (wrapping around); the mini buffer shows which match you are on, e.g.Match 2/5. Matches stay correct if you expand or collapse groups in the filtered view (matches inside a collapsed group are skipped). These keys only work while a filtered view is shown
Cancel Search (Escape):
- Restores the tree to its state before search
- Returns to Normal Mode
- Maintains any previously expanded nodes
Restore to Initial (r in Normal Mode):
- Press
rin Normal Mode to reset tree completely - Collapses all nodes except root
- Clears any filtered results
- Returns tree to state when file was first opened