Added jumpnext and jumpprevious as commands
This commit is contained in:
@@ -292,6 +292,8 @@ pub fn parse(input: &str) -> Option<Vec<Command>> {
|
|||||||
})
|
})
|
||||||
.map(Command::Open),
|
.map(Command::Open),
|
||||||
"jump" => Some(Command::Jump(JumpMode::Query(args.join(" ")))),
|
"jump" => Some(Command::Jump(JumpMode::Query(args.join(" ")))),
|
||||||
|
"jumpnext" => Some(Command::Jump(JumpMode::Next)),
|
||||||
|
"jumpprevious" => Some(Command::Jump(JumpMode::Previous)),
|
||||||
"search" => Some(Command::Search(args.join(" "))),
|
"search" => Some(Command::Search(args.join(" "))),
|
||||||
"shift" => {
|
"shift" => {
|
||||||
let amount = args.get(1).and_then(|amount| amount.parse().ok());
|
let amount = args.get(1).and_then(|amount| amount.parse().ok());
|
||||||
|
|||||||
Reference in New Issue
Block a user