class

FFF::FileManager

Inherits FFF::ViewHandlers < FFF::FileOpHandlers < FFF::NavigationHandlers < Reference < Object

FileManager - Core TUI file manager coordinator

Constants

EMPTY_STRING_ARRAY = [] of String
KEY_GROUPS = {"Navigation" => ["j", "k", "h", "l", "G", "g", "\e[A", "\e[B", "\e[C", "\e[D"], "File ops" => [" ", "m", "y", "v", "p", "d", "n", "f", "r", "b", "i", "S", "X"], "View/system" => ["s", "/", ".", "t", "x", ":", "~", "-", "e", "=", "+", "?", "q"], "Bookmarks" => ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}
TEXT_EXTS = {".txt", ".cr", ".sh", ".py", ".js", ".ts", ".json", ".yaml", ".yml", ".md", ".html", ".css", ".xml", ".rb", ".go", ".rs", ".c", ".h", ".cpp", ".hpp", ".java", ".php", ".swift", ".kt"}

Constructors

new(config : Config, start_dir : String, picker_mode : Bool = false, term : Terminal | Nil = nil)
Source

Instance methods

clamp_scroll
Source
clear_state
Source
clipboard
Source
clipboard=(clipboard : Array(String))
Source
clipboard_mode
Source
clipboard_mode=(clipboard_mode : Symbol)
Source
config
Source
dir_manager
Source
dir_manager=(dir_manager : DirectoryManager)
Source
ensure_dirs
Source
error_expires
Source
error_expires=(t : Time | Nil)
Source
error_msg

Backward compatibility for tests that use error_msg

Source
error_msg=(msg : String | Nil)
Source
event_loop
Source
fff_level
Source
file_ops
Source
force_full_redraw
Source
force_full_redraw=(force_full_redraw : Bool)
Source
git_branch
Source
git_branch=(git_branch : String)
Source
git_dir_cache
Source
git_status
Source
git_status=(git_status : String)
Source
handle_input_mode(key : String)
Source
handle_key(key : String)
Source
handle_rename_complete
Source
handle_resize
Source
handle_search_complete
Source
input_mode
Source
input_mode=(input_mode : InputMode)
Source
live_search
Source
loading
Source
loading=(loading : Bool)
Source
marked
Source
marked=(marked : Set(String))
Source
marked_or_current
Source
message_bus
Source
message_bus=(message_bus : MessageBus)
Source
mime_is_text?(path : String) : Bool
Source
open_in_editor(path : String)
Source
open_with_opener(path : String)
Source
page_offset
Source
page_offset=(page_offset : Int32)
Source
perform_shutdown
Source
picker_mode
Source
prev_child
Source
prev_dir
Source
prev_list_size
Source
prev_page_offset
Source
prev_scroll
Source
quit
Source
redraw(full = false)
Source
renderer

read/write

Source
renderer=(renderer : UIRenderer)

read/write

Source
route_keypress(key : String)
Source
running
Source
save_cd_on_exit
Source
scroll

── Public access (used by tests & handler mixins) ──────────────────────── read/write

Source
scroll=(scroll : Int32)

── Public access (used by tests & handler mixins) ──────────────────────── read/write

Source
show_error(message : String | Nil)
Source
show_help
Source
show_help=(show_help : Bool)
Source
show_info(message : String | Nil)
Source
show_success(message : String | Nil)
Source
show_warning(message : String | Nil)
Source
start_rename
Source
start_search
Source
term
Source
text_file?(path : String) : Bool
Source
toggle_help
Source
update_git_branch
Source
update_git_status(dir : String)
Source
with_tui_restored
Source
write_picker_file
Source