From 964a3b7b7eb3d4ef761661f200db3ef05d49795a Mon Sep 17 00:00:00 2001 From: iff Date: Tue, 22 Apr 2025 14:34:07 +0200 Subject: [PATCH] chore: re-enable filtering --- core/src/modes.rs | 15 ++++++++------- core/src/suggestions.rs | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/core/src/modes.rs b/core/src/modes.rs index d5e9a41..fe94a95 100644 --- a/core/src/modes.rs +++ b/core/src/modes.rs @@ -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; diff --git a/core/src/suggestions.rs b/core/src/suggestions.rs index c510c4d..94a24cf 100644 --- a/core/src/suggestions.rs +++ b/core/src/suggestions.rs @@ -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()