summaryrefslogtreecommitdiffstats
path: root/src/key_command/impl_comment.rs
diff options
context:
space:
mode:
authorLzzzzzt <101313294+Lzzzzzt@users.noreply.github.com>2023-08-05 06:36:38 +0800
committerGitHub <noreply@github.com>2023-08-04 18:36:38 -0400
commita97ca3027bf66dbf16db7737ad5288fa9aaa89f2 (patch)
tree0dbf25b3c658d109d195ca753e9b941c36e332f4 /src/key_command/impl_comment.rs
parent48e42e21dd0c0774cdee649b2134a12ea9c5960e (diff)
feat: add user & group on foot and make linemode configturable and more options (#385)
* add user & group on footer * linemode have more options * linemode have more options * linemode have more options
Diffstat (limited to 'src/key_command/impl_comment.rs')
-rw-r--r--src/key_command/impl_comment.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/key_command/impl_comment.rs b/src/key_command/impl_comment.rs
index 82806f7..a7f373f 100644
--- a/src/key_command/impl_comment.rs
+++ b/src/key_command/impl_comment.rs
@@ -7,10 +7,13 @@ impl CommandComment for Command {
// These comments are displayed at the help page
fn comment(&self) -> &'static str {
match self {
- Self::SetLineMode(linemode) => match linemode {
- LineMode::Size => "Show files with size",
- LineMode::MTime => "Show files with modified time",
- LineMode::SizeMTime => "Show files with size and modified time",
+ Self::SetLineMode(linemode) => match *linemode {
+ LineMode::size => "Show files with size",
+ LineMode::mtime => "Show files with modified time",
+ LineMode::user => "Show files with user",
+ LineMode::group => "Show files with group",
+ LineMode::perm => "Show files with permission",
+ _ => "Show files with multi-attribution",
},
Self::Escape => "Escape from visual mode (cancel)",
Self::BulkRename => "Bulk rename",