diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-28 21:12:10 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-28 21:12:10 +0100 |
commit | d6f9e85181d63fda6be55a69ebda0d5e4103278d (patch) | |
tree | c86cc3f112ac99b83ed64804331bf54e363eeba1 /src/app/tab.rs | |
parent | 0f28d763b339e7ec7d794c264a1acc42cb3ebacc (diff) |
reorder tabs attributes
Diffstat (limited to 'src/app/tab.rs')
-rw-r--r-- | src/app/tab.rs | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/app/tab.rs b/src/app/tab.rs index e978b99..f951277 100644 --- a/src/app/tab.rs +++ b/src/app/tab.rs @@ -26,37 +26,43 @@ use crate::modes::{Display, Edit}; pub struct Tab { /// Kind of display: `Preview, Normal, Tree` pub display_mode: Display, + /// Files in current path + pub path_content: PathContent, + /// Tree representation of the same path + pub tree: Tree, + /// Lines of the previewed files. + /// Empty if not in preview mode. + pub preview: Preview, + /// The edit mode the application is currenty in. /// Most of the time is spent in `EditMode::Nothing` pub edit_mode: Edit, + /// The indexes of displayed file pub window: ContentWindow, - /// Files in current path - pub path_content: PathContent, /// Height of the terminal window pub height: usize, + /// read from command line pub show_hidden: bool, - /// True if the user issued a quit event (`Key::Char('q')` by default). - /// It's used to exit the main loop before reseting the cursor. - pub must_quit: bool, - /// Lines of the previewed files. - /// Empty if not in preview mode. - pub preview: Preview, + /// The filter use before displaying files + pub filter: FilterKind, + /// The kind of sort used to display the files. + pub sort_kind: SortKind, + /// Predefined shortcuts pub shortcut: Shortcut, + /// Last searched string pub searched: Option<String>, - /// The filter use before displaying files - pub filter: FilterKind, /// Visited directories pub history: History, /// Users & groups pub users: Users, - /// Tree representation of the same path - pub tree: Tree, - /// The kind of sort used to display the files. - pub sort_kind: SortKind, + + /// True if the user issued a quit event (`Key::Char('q')` by default). + /// It's used to exit the main loop before reseting the cursor. + pub must_quit: bool, } impl Tab { |