Window Mode
Window Mode provides control over panel focus and interface management. It allows you to navigate between different UI panels and resize them.
Purpose
Window Mode is designed for:
- Switching focus between different interface panels
- Managing interface layout and focus
- Optimizing screen real estate usage
Keyboard Reference
Panel Navigation
| Key | Action | Description |
|---|---|---|
t |
Focus Tree | Move input focus to the tree panel |
a |
Focus Attributes | Move input focus to the attributes panel |
v |
Focus Values | Move input focus to the values panel (when visible) |
p |
Focus Plot | Move input focus to plot panel (also enters Plotting Mode) |
h |
Focus Histogram | Move input focus to histogram panel (also enters Histogram Mode) |
Numbered Panes (Any Mode)
Each focusable pane shows its number in its title: [1] HDF5 File Tree,
[2] Attributes, [3] Values, [4] Plotting, [5] Histogram (Metadata
cannot be focused). These keys work from any mode, without entering Window
Mode, whenever you are not typing into a prompt or the search box:
| Key | Action | Description |
|---|---|---|
1-3 |
Focus Pane N | Focus the tree, attributes or values and return to Normal Mode |
4 / 5 |
Plot/Histogram | Open and focus the plot/histogram pane, entering its mode (like p/h here) |
Tab |
Next Pane | Focus the next visible pane, wrapping round |
Shift+Tab |
Previous Pane | Focus the previous visible pane, wrapping round |
3 is refused with a message while no values are shown, and Tab only
cycles through the panes currently on screen. Remap these keys under keymaps.pane_navigation in the
configuration file.
Panel Sizing
| Key | Action | Description |
|---|---|---|
> |
Widen Panel | Give the right-hand panel (values, plot, histogram, attributes) 10% more width |
< |
Narrow Panel | Give the right-hand panel 10% less width |
+ |
Taller Row | Make the metadata/attributes row two lines taller |
- |
Shorter Row | Make the metadata/attributes row two lines shorter |
= |
Reset Sizes | Restore the default sizes (50/50 split, 10-line metadata/attributes row) |
i |
Hide/Show Info | Hide the metadata/attributes row to give the tree the full height, or show it again |
Window Mode stays active after a resize so you can press a key repeatedly.
The right-hand panel takes between 20% and 80% of the width, and the
metadata/attributes row between 3 lines and half the terminal height. Sizes
last for the session. If no right-hand panel is open the tree keeps the full
width; the chosen split applies once a panel opens. While the row is hidden
2 is refused unless the attributes are expanded into the right-hand panel.
Mode Control
| Key | Action | Description |
|---|---|---|
q |
Exit Window Mode | Return to Normal Mode |
Escape |
Default Focus | Return focus to tree panel and exit Window Mode |
Entering Window Mode
From Normal Mode, press w to enter Window Mode. The hotkey display will update to show Window Mode commands.
Panel Focus Management
Understanding Focus
In h5forest, "focus" determines which panel receives keyboard input. Once focused you will see the cursor in the selected panel.