Favicon of peco

peco

Interactive filtering tool for command-line that enables real-time search, multiple selection, and customizable keybindings. Filter logs, processes, and files with incremental search and fuzzy matching.

peco is a lightweight interactive filtering tool designed for command-line workflows. Written in Go, it provides a single binary solution for searching and selecting items from input streams in real-time, eliminating the need for external scripts or dependencies.

The tool excels at filtering various data types including process statistics, logs, and files. As you type your query, results update instantly, allowing you to narrow down exactly what you need. Key capabilities include:

  • Incremental search with real-time result filtering as you type
  • Multiple selection to choose several items at once
  • Negative matching to exclude unwanted results using - prefix
  • Multiple filter types: case-insensitive, case-sensitive, SmartCase, regular expressions, and fuzzy search
  • Multi-stage filtering to freeze results and continue filtering on narrowed datasets
  • Customizable keybindings for personalized workflows
  • Horizontal scrolling for handling long lines

Pipe information from any command-line tool directly to peco for seamless filtering. Whether you're searching through process lists, finding specific files, or managing repositories, peco integrates naturally into existing command-line workflows. The fuzzy search feature is particularly useful for partial pattern matching, while the SmartCase filter intelligently switches between case-sensitive and case-insensitive modes based on your query.

Install

Brew
$ brew install peco

Features

Config fileScriptable

Media

Pros

4
  • Interactive filtering with real-time search
  • Supports multiple line selection and range selection
  • Offers various filtering modes including fuzzy and regex
  • Customizable keybindings for personalized workflow

Cons

1
  • Configuration requires manual setup of keybindings for advanced features like range selection.

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to peco

Favicon

 

  
 
Favicon

 

  
 
Favicon