h5v

Crates.ioh5v
lib.rsh5v
version0.2.0
created_at2025-07-04 12:29:40.790849+00
updated_at2025-09-17 16:39:33.734483+00
descriptionA terminal viewer for HDF5 files with chart, image, string, matrix, attributes support
homepage
repositoryhttps://github.com/DanielHauge/h5v
max_upload_size
id1737966
size1,634,693
Daniel Hauge (DanielHauge)

documentation

README

h5v

HDF5 Terminal Viewer.

It is a viewer for HDF5 files, allowing you to explore the contents of HDF5 files in a terminal with chart,string, matrix and image previews of the data including attributes.

Run h5v with the path to an HDF5 file:

h5v path/to/file.h5

Controls

  • j/k/up/down: Navigate through the items
  • enter/space/l/h: Open/close items
  • shift + navigate: shift focus
  • q / ctrl+c: Quit
  • y: Copy highlighted to clipboard
  • ctrl + navigate: Scroll through contents (image list or matrix)
  • PgUp/PgDown: Scroll through contents by half a page (image list or matrix)
  • ctrl + d/u: Navigate by half a page
  • alt + left/right: Change the pivot for incrementing constant indexes in matrix and preview modes.
  • alt + up/down: Increment or decrement index at highlighted index in matrix and preview modes.
  • c/C: Shift column axis in matrix mode.
  • r/R: Shift row axis in matrix mode.
  • x/X: Shift x-axis selector in preview mode.
  • g/Home: Go to the top
  • G/End: Go to the bottom
  • m: Add currently selected preview to multichart
  • M: Toggle multichart mode
  • : Enter command mode
  • . repeat last command
  • ?: Show help

Multichart mode

  • backspace/delete/d: Remove currently selected source from multichart
  • M: Toggle back to normal mode

Commands

  • :n Go the nth item
  • :+n Go down n items
  • :-n Go up n items

For example, :5 will go to the 5th item, :+3 will go down 3 items, and :-2 will go up 2 items. Use : to enter command mode, type the command, and press enter to execute it. Use . to repeat the last command.

Installation

cargo install h5v

Roadmap

  • Add multichart hint on dataset tree view
  • Add better search capabilities
  • Enable dataset values focus to copy values easily
  • Improve rendering UX -> Multithread -> Rendering spinner
  • Fix issue related to many attributes then ending up taking all space. Maybe constrain to 25% and then add browse mode thing to navigate attributes when many.
  • Add matrix support for compounds
  • Add preview support for compounds (select fields to preview)

Script ideas

  • Previewing (Like preview multiple datasets for a group for example)
  • Send data to External App or store or something else.
  • Scaling/Formatting data. (Add script to datasets, so data could be transformed before viewing Matrix + Preview.)
Commit count: 138

cargo fmt