diff options
author | Lzzzzzt <101313294+Lzzzzzt@users.noreply.github.com> | 2023-08-12 20:50:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-12 08:50:20 -0400 |
commit | 0eec61eb82d10b8b9f76c8b5c9e2a0fae0514a1e (patch) | |
tree | 7195f1d89bc046597feb76b7d8d875b116b61071 /src/key_command/impl_comment.rs | |
parent | fc2fdf3ca79cbfba18350dd5faaf548d7a98f96f (diff) |
feat: tab bar can show current dir name (#390)
* add user & group on footer
* linemode have more options
* linemode have more options
* linemode have more options
* make tarbar title not hardcoded
* topbar width with modified tab width
* change the ellipsis
Diffstat (limited to 'src/key_command/impl_comment.rs')
-rw-r--r-- | src/key_command/impl_comment.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/key_command/impl_comment.rs b/src/key_command/impl_comment.rs index a7f373f..4635cdf 100644 --- a/src/key_command/impl_comment.rs +++ b/src/key_command/impl_comment.rs @@ -1,4 +1,4 @@ -use crate::config::option::{LineMode, SortType}; +use crate::config::option::{LineMode, SortType, TabBarDisplayMode}; use crate::io::FileOperationOptions; use super::{Command, CommandComment}; @@ -117,6 +117,15 @@ impl CommandComment for Command { Self::Filter { .. } => "Filter directory list", + Self::SetTabBarDisplayMode(mode) => match mode { + TabBarDisplayMode::Number => "TabBar only display with number ( 1 | 2 | 3 )", + TabBarDisplayMode::Directory => { + "TabBar only display with directory ( dir1 | dir2 | dir3 )" + } + TabBarDisplayMode::All => { + "TabBar display with numbar and directory ( 1: dir1 | 2: dir2 )" + } + }, Self::TabSwitch { .. } => "Switch to the next tab", Self::TabSwitchIndex { .. } => "Switch to a given tab", Self::Help => "Open this help page", |