mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 20:48:28 +00:00
wip (#261)
This commit is contained in:
parent
b809739113
commit
5423cd8ccb
1 changed files with 6 additions and 4 deletions
10
src/fzf.rs
10
src/fzf.rs
|
@ -152,13 +152,15 @@ fn parse_output_single(mut text: String, suggestion_type: SuggestionType) -> Str
|
|||
match (lines.get(0), lines.get(1), lines.get(2)) {
|
||||
(Some(one), Some(termination), Some(two)) if *termination == "enter" => {
|
||||
if two.is_empty() {
|
||||
one.to_string()
|
||||
(*one).to_string()
|
||||
} else {
|
||||
two.to_string()
|
||||
(*two).to_string()
|
||||
}
|
||||
}
|
||||
(Some(one), Some(termination), None) if *termination == "enter" => one.to_string(),
|
||||
(Some(one), Some(termination), _) if *termination == "tab" => one.to_string(),
|
||||
(Some(one), Some(termination), None) if *termination == "enter" => {
|
||||
(*one).to_string()
|
||||
}
|
||||
(Some(one), Some(termination), _) if *termination == "tab" => (*one).to_string(),
|
||||
_ => "".to_string(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue