mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: re-enable filtering
This commit is contained in:
parent
e4411082bb
commit
964a3b7b7e
2 changed files with 10 additions and 9 deletions
|
|
@ -1,15 +1,16 @@
|
|||
use std::path::Path;
|
||||
use colored::Colorize;
|
||||
use inquire::*;
|
||||
use ui::Color;
|
||||
|
||||
use pay_respects_utils::evals::best_matches_path;
|
||||
use pay_respects_utils::files::best_match_file;
|
||||
|
||||
use crate::shell::{shell_evaluated_commands, Data};
|
||||
use crate::style::highlight_difference;
|
||||
use crate::suggestions;
|
||||
use crate::suggestions::suggest_candidates;
|
||||
use crate::system;
|
||||
use colored::Colorize;
|
||||
use inquire::*;
|
||||
use pay_respects_utils::evals::best_matches_path;
|
||||
use pay_respects_utils::files::best_match_file;
|
||||
use ui::Color;
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
pub fn suggestion(data: &mut Data) {
|
||||
let mut last_command;
|
||||
|
|
|
|||
|
|
@ -121,11 +121,11 @@ pub fn select_candidate(data: &mut Data) {
|
|||
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
||||
let hint = format!("{} {} {}", "[↑/↓/j/k]".blue(), confirm, "[ESC]".red());
|
||||
eprintln!("{}", msg);
|
||||
eprintln!("{}", hint);
|
||||
eprint!("{}", hint);
|
||||
|
||||
let ans = Select::new("\n", highlight_candidates.clone())
|
||||
.with_vim_mode(true)
|
||||
.without_filtering()
|
||||
// .without_filtering()
|
||||
.without_help_message()
|
||||
.with_render_config(render_config)
|
||||
.prompt()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue