Skip to main content

find_sessions_filtered

Function find_sessions_filtered 

Source
pub fn find_sessions_filtered(
    pattern: &str,
    workspace_filter: Option<&str>,
    title_only: bool,
    search_content: bool,
    after: Option<&str>,
    before: Option<&str>,
    limit: usize,
) -> Result<()>
Expand description

Optimized session search with filtering

This function is optimized for speed by:

  1. Filtering workspaces first (by name/path)
  2. Filtering by file modification date before reading content
  3. Only parsing JSON when needed
  4. Content search is opt-in (expensive)
  5. Parallel file scanning with rayon