diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-01 23:07:34 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-01 23:07:34 +0200 |
commit | 574bcd9ad1b75a649c4b82b55dcb9e96283b936e (patch) | |
tree | 22b11febdebb343229fee19a857dfb7f2d1ed126 /src/mode.rs | |
parent | aaaf48697033700d430114e4142c75d06ebedb58 (diff) |
documentation for every public item
Diffstat (limited to 'src/mode.rs')
-rw-r--r-- | src/mode.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mode.rs b/src/mode.rs index 21032f2..0aad464 100644 --- a/src/mode.rs +++ b/src/mode.rs @@ -1,19 +1,35 @@ use std::fmt; +/// Different mode in which the application can be. +/// It dictates the reaction to event and what to display. #[derive(Clone)] pub enum Mode { + /// Default mode: display the files Normal, + /// Rename the selected file Rename, + /// Change permissions of the selected file Chmod, + /// Touch a new file Newfile, + /// Mkdir a new directory Newdir, + /// Execute a command on the file Exec, + /// Display the help Help, + /// Search in current directory for a string Search, + /// cd into a directory Goto, + /// Flag files matching a regex RegexMatch, + /// Jump to a flagged file Jump, + /// Confirmation is required before modification is made to files : + /// delete, move, copy NeedConfirmation, + /// Change the type of sort Sort, } |