5#ifndef MIDDAY_COMMANDER_FILEVIEW_H
6#define MIDDAY_COMMANDER_FILEVIEW_H
31 std::filesystem::path
wd;
39 [[nodiscard]] std::vector<std::shared_ptr<Entry>>
getCurrent(
bool recursive =
false);
44 void cd(std::filesystem::path);
Represents a file view of the Application.
Definition: FileView.h:16
size_t cursor
Definition: FileView.h:33
std::filesystem::path wd
Working directory.
Definition: FileView.h:31
void cd(std::filesystem::path)
Change directory.
Definition: FileView.cpp:31
FileView()
Constructs a FileView with wd set as the current directory.
Definition: FileView.cpp:9
size_t scroll_cursor
Definition: FileView.h:34
std::vector< std::shared_ptr< Entry > > getCurrent(bool recursive=false)
Get Entries representing all files/folders in wd.
Definition: FileView.cpp:15