Documentation ¶
Overview ¶
Package duitfiles provides a file picker for use with duit, the developer ui toolkit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Select ¶
Select creates a new window with the file picker and returns the selected filename or an error.
The window shows favoites on the left. The user's home directory and the file system root are always listed. Along with any entries from $appdata/duitfiles/favorites (each line is a directory listed in the favorites). The +/- button adds/removes a favorite from the list.
On the right side, you'll see at least one column with the files in the directory, the selected favorite. Typing in the search box above the files filters by substring. Hitting ctrl-f completes the text, making it the longest common prefix of the files still visible. After having typed/completed/clicked an exact match for a file, that file is selected. For directories, this opens a new columns and warps the pointer to its search box.
The currently selected path is shown at the top. Hitting the "select"-button, or return, returns the selected path.
Types ¶
This section is empty.