Skip to content

[FEATURE] Interactive Log Filtering with FZF#2

Description

@Sho0pi

馃攳 Interactive Log Filtering with FZF

Objective

Add an interactive log filtering mode using fuzzy finder (fzf) to dynamically filter ongoing log streams.

Proposed Feature

gocat --fzf

Requirements

  • Open regular gocat output with interactive filtering
  • Real-time log stream filtering
  • Preserve original log coloration and formatting
  • Support multiple filter criteria
  • Smooth, responsive interface

Filtering Capabilities

  • Filter by:
    • Log levels
    • Tags
    • Process names
    • Custom search terms
  • Live update of filtered results
  • Ability to combine multiple filters

Implementation Approach

  • Integrate with github.com/junegunn/fzf library
  • Create a concurrent log processing pipeline
  • Implement a terminal UI overlay
  • Ensure minimal performance overhead

Example Interaction

[Live Log Stream]
> Filter: network    # Only show logs containing "network"
> Filter: !error     # Exclude error level logs
> Filter: MyApp      # Show only logs from MyApp

Stretch Goals

  • Save and load filter presets
  • Export filtered logs to file
  • Highlight matched filter terms

Additional Considerations

  • Ensure compatibility with different terminal emulators
  • Provide fallback for systems without fzf

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions