summaryrefslogtreecommitdiffstats
path: root/src/key_command/command.rs
diff options
context:
space:
mode:
authorVinegret43 <67828321+Vinegret43@users.noreply.github.com>2021-12-05 20:32:07 +0000
committerGitHub <noreply@github.com>2021-12-05 15:32:07 -0500
commit5f7bd3889dfc054308c19f655aa951946cfb299c (patch)
tree433c697d73dc286d008631e8feb8e2c5032fafe3 /src/key_command/command.rs
parentebda106855d360b0adc449adf6eed33af7fabcbe (diff)
add line numbers (#109)
* add line numbers add command to change line numbers displaying * refactor line numbering code * add navigating by line numbers add NumberedExecute trait for Command * fix line numbering margin bug * add documentation for numbered commands
Diffstat (limited to 'src/key_command/command.rs')
-rw-r--r--src/key_command/command.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/key_command/command.rs b/src/key_command/command.rs
index 1eddfd6..d088c0d 100644
--- a/src/key_command/command.rs
+++ b/src/key_command/command.rs
@@ -1,6 +1,6 @@
use std::path;
-use crate::config::option::{SelectOption, SortType};
+use crate::config::option::{LineNumberStyle, SelectOption, SortType};
use crate::io::IoWorkerOptions;
#[derive(Clone, Debug)]
@@ -62,6 +62,8 @@ pub enum Command {
ToggleHiddenFiles,
+ SwitchLineNums(LineNumberStyle),
+
Sort(SortType),
SortReverse,