Skip to main content

Module file_picker

Module file_picker 

Source
Expand description

File picker widget for browsing and selecting files.

Provides a TUI file browser with keyboard navigation. The widget renders a directory listing with cursor selection and supports entering subdirectories and navigating back to parents.

§Architecture

  • FilePicker — stateless configuration and rendering
  • FilePickerState — mutable navigation state (cursor, directory, entries)
  • DirEntry — a single file/directory entry

The widget uses StatefulWidget so the application owns the state and can read the selected path.

Structs§

DirEntry
A single entry in a directory listing.
FilePicker
Configuration and rendering for the file picker widget.
FilePickerState
Mutable state for the file picker.