Skip to main content

MultiFilePicker

MultiFilePicker widgetMultiFilePicker widget

Like the file picker, but several paths accumulate as you browse between directories. It collects a list<string> of the chosen paths.

$p->multiFilePicker('lists', 'Price lists')
->startIn(getcwd()) // Directory to open in (and the floor for ←).
->extensions(['csv']); // Limit selectable files to these extensions.

Options

It shares the file picker's options, plus a default().

NameDescriptionRequiredDefault
startIn()Directory the browser opens in, and the floor it cannot ascend above.NoCurrent directory
filesOnly()Only files are selectable; directories stay navigable.NoFiles and directories
directoriesOnly()Only directories are selectable.NoFiles and directories
extensions()Restrict selectable files to these extensions (dot-less, case-insensitive).NoAll
showHidden()Show hidden (dot) entries when the browser opens.NoOff
default()Paths pre-selected when the browser opens.No[] (none)
pageSize()Entries shown before the list pages around the cursor.No10

Keyboard

KeyAction
/ Move the highlight
Descend into the highlighted directory
Ascend to the parent (never above the start directory)
SpaceToggle the highlighted selectable entry (selections accumulate across directories)
printable keysFilter the current directory
TabToggle hidden entries
BackspaceDelete a filter character, or ascend when the filter is empty
EnterAccept the accumulated selection
EscCancel

Display modes

In all four display modes - Unicode or ASCII, colour on or off:

ANSINo ANSI
UnicodeMulti file picker: Unicode + ANSIMulti file picker: Unicode + ANSIMulti file picker: Unicode + No ANSIMulti file picker: Unicode + No ANSI
ASCIIMulti file picker: ASCII + ANSIMulti file picker: ASCII + ANSIMulti file picker: ASCII + No ANSIMulti file picker: ASCII + No ANSI