Documentation
¶
Overview ¶
Package filepicker is a small modal file browser used by Host.PickFile — deliberately not the full Files app (apps/files): no clipboard, trash, mkdir, or drag/drop, just navigate and pick, so consumers like Amp/Vid ("open local file") don't have to pull in a second, heavier UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is a modal file browser: Up/Down move, Enter opens a directory or picks a file, Esc cancels. onResult fires exactly once.
func New ¶
New opens a picker rooted at startDir (falls back to the home directory if empty or unreadable), restricted to extensions (without the leading dot) if any are given.
func (*App) WantsClose ¶
Click to show internal directories.
Click to hide internal directories.