Expand description
A filesystem path picker modal.
Browses directories: Up/Down move (cyclic), Right descends into a
folder, Left/Backspace (empty filter) ascends, typing filters the
entries, Ctrl+H toggles hidden (dot-prefixed) entries (hidden by default),
Enter selects the highlighted entry (a folder, or a file when
allow_files), Esc cancels.
An optional confinement root (PathPickerConfig::root) bounds navigation:
the picker never ascends above it and never follows a symlinked folder out
of it (both are checked with canonicalize + starts_with).
Structs§
- Path
Picker Config - How to open the
path_picker: the modaltitle, thestartdirectory, whether files (not just folders) are selectable, and an optional confinementrootthat navigation may not leave.
Functions§
- path_
picker - Opens the picker per
config. ReturnsValue(path)on selection,CancelledonEsc,Quiton the global quit chord.