ยค filePickPopupF

Types

filePickPopupF :: F (a, (String, Maybe FilePath)) ((a, (String, Maybe FilePath)), FilePath)

Description

filePickPopupF provides a conventional popup window for file selection. The window contains a directory listing, a string entry field, some directory navigation buttons and OK/Cancel buttons. Files can be selected by clicking on them in the directory listing, or by entering their names in the string entry field. A file name completion mechanism is activated by pressing the space bar.

The file selection window has been designed to allow a file to be selected without having to switch between using the keyboard and the mouse.

Input

(tag,(oklbl,optpath), that is, a tag, a label for the OK button and an optional file path. The window will pop up when an input message is received. If a file path was included, the directory containing this file will be displayed.

Output

the input message that caused the window to pop up, paired with the path of the selected file.

See Also

filePickPopupF'

Bugs

File selection windows usually behave slightly differently depending on whether you want to open an existing file, save a file under a new name or select a directory. filePickPopupF currently makes no distinction between these cases.