Expand description
§gravityfile-tui
The interactive explorer of gravityfile, built with ratatui: a size-sorted tree and Miller columns with previews, file operations with undo, duplicates, age analysis, search, tabs, themes, a configurable keymap, read-only snapshot browsing and Lua plugins.
This crate exists for the grav binary. Its API follows the binary’s needs
and can change in any minor release. The keys, settings and commands are
documented in the gravityfile README.
use gravityfile_tui::TuiConfig;
// Explore the current directory with sizes as file lengths. `run_with_config`
// takes over the terminal and restores it on exit, including after a panic.
let config = TuiConfig::new().with_apparent_size(true);
gravityfile_tui::run_with_config(".".into(), config)?;§Licence
MIT or Apache-2.0, at your option.
Structs§
- Exit
Data - Data collected at exit for shell integration.
- Snapshot
- A saved scan opened read-only in the explorer.
- TuiConfig
- Configuration for the TUI application.
Functions§
- run
- Run the TUI application with default configuration.
- run_
with_ config - Run the TUI application with custom configuration.
Type Aliases§
- AppResult
- Application result type.