fix: update filter_plugin import paths
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -8,6 +8,7 @@ use crate::services::types::{ItemWithContent, ItemWithMeta};
|
||||
use crate::db::{self, Meta};
|
||||
use crate::compression_engine::{get_compression_engine, CompressionType};
|
||||
use crate::modes::common::settings_compression_type;
|
||||
use crate::keep::filter_plugin;
|
||||
use clap::Command;
|
||||
use log::debug;
|
||||
use rusqlite::Connection;
|
||||
@@ -19,13 +20,13 @@ use std::path::PathBuf;
|
||||
/// A reader that applies a filter chain to the data as it's read
|
||||
struct FilteringReader<R: Read> {
|
||||
reader: R,
|
||||
filter_chain: Option<crate::filter_plugin::FilterChain>,
|
||||
filter_chain: Option<filter_plugin::FilterChain>,
|
||||
buffer: Vec<u8>,
|
||||
buffer_pos: usize,
|
||||
}
|
||||
|
||||
impl<R: Read> FilteringReader<R> {
|
||||
pub fn new(reader: R, filter_chain: Option<crate::filter_plugin::FilterChain>) -> Self {
|
||||
pub fn new(reader: R, filter_chain: Option<filter_plugin::FilterChain>) -> Self {
|
||||
Self {
|
||||
reader,
|
||||
filter_chain,
|
||||
@@ -178,7 +179,7 @@ impl ItemService {
|
||||
tail_bytes: Option<usize>,
|
||||
tail_lines: Option<usize>,
|
||||
filter: Option<String>,
|
||||
) -> Result<Option<crate::filter_plugin::FilterChain>, CoreError> {
|
||||
) -> Result<Option<filter_plugin::FilterChain>, CoreError> {
|
||||
// Build filter string from individual parameters (for backward compatibility)
|
||||
let mut filter_parts = Vec::new();
|
||||
if let Some(pattern) = grep {
|
||||
|
||||
Reference in New Issue
Block a user