duitfiles

package module
v0.0.0-...-05205d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 10 Imported by: 0

README

# duitfiles - file picker for use with duit

Documentation at https://godoc.org/github.com/mjl-/duitfiles

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

func Select() (filename string, err error)

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.

Directories

Path Synopsis
cmd
duitfiles
Duitfiles is a demo program that calls duitfiles.Select and prints the selected filename.
Duitfiles is a demo program that calls duitfiles.Select and prints the selected filename.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL