class

Term::Prompt::FileSelect

Inherits Reference / Object

A class responsible for rendering file/directory selection prompt Used by {Prompt} to display interactive file browser.

@api private

Constants

HELP = "(↑/↓ to navigate, Enter to select, ← to go up, → to enter directory)"

Constructors

new(prompt : Prompt, **options)
Source

Instance methods

call(question : String, &block : FileSelect -> )

Call the file select prompt

Source
entries

Get current directory entries

Source
help

Default help text

Source
help=(help : String | Nil)
Source
keydown
Source
keyenter
Source
keyleft
Source
keyreturn
Source
keyright
Source
keyup
Source
symbols
Source
symbols=(symbols : Hash(Symbol, String))
Source