Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sig

> 云原生
Open source

Interactive grep (for streaming)

757 stars0 likes1 views
WebsiteGitHub

About

Interactive grep (for streaming)

sig

Interactive grep

Features

  • Interactive grep (for streaming)
    • sig allows users to interactively search through (streaming) data, updating results in real-time.
  • Re-execute command
    • If --cmd is specified instread of piping data to sig, the command will be executed on initial and retries.
    • This feature is designed to address the issue where data streams past while the user is fine-tuning the search criteria. In other words, even if the data has already passed, executing the command again allows the retrieval of the data for re-evaluation.
  • Archived mode
    • In archived mode, since there is no seeking capability for streaming data received through a pipe, it is not possible to search backwards without exiting the process. Therefore, in sig, the latest N entries of streaming data are saved, and it is possible to switch to a mode where you can grep through these N entries based on key inputs at any given moment.
    • For static data such as files, sig automatically switches to archived mode when the input reaches EOF.
      • like ugrep with -Q option.

Installation

Homebrew

bash
brew install ynqa/tap/sigrs

Cargo

bash
cargo install sigrs

X-CMD

If you're an x-cmd user, you can install it with the following command:

bash
x install sig

Arch Linux

bash
pacman -S sig

Nix (flakes)

Add it as an input to your flake:

nix
inputs = {
  sig.url = 'github:ynqa/sig/'
}

Create a shell with it:

nix
nix shell github:ynqa/sig

Or run it directly:

nix
cat README.md | nix run github:ynqa/sig

Nix (classic)

Fetch the source and use it, e.g. in your shell:

nix
let
  # At the time of writing this, pkgs need to be unstable for the package to build properly
  # (requires Rust 1.74, stable has 1.73)
  pkgs = import  {};

  sig = pkgs.callPackage (pkgs.fetchFromGitHub {
    owner = "ynqa";
    repo = "sig";
    rev = "";
    hash = ""; # Build first, put proper hash in place
  }) {};
in
  pkgs.mkShell {
    packages = [sig];
  }

Examples

bash
stern --context kind-kind etcd |& sig
# or
sig --cmd "stern --context kind-kind etcd" # this is able to retry command by ctrl+r.

# or static input (switches to archived view after EOF)
cat README.md |& sig

Keymap

Key Action
Ctrl + C Exit sig
Ctrl + R Retry command if --cmd is specified
Ctrl + S Pause/Resume stream ingestion
Ctrl + F Enter Archived mode
← Move the cursor one character to the left
→ Move the cursor one character to the right
Ctrl + A Move the cursor to the start of the filter
Ctrl + E Move the cursor to the end of the filter
Backspace Delete a character of filter at the cursor position
Ctrl + U Delete all characters of filter

(Archived mode)

Key Action
Ctrl + C Exit Archived mode
← Move the cursor one character to the left
→ Move the cursor one character to the right
Ctrl + A Move the cursor to the start of the filter
Ctrl + E Move the cursor to the end of the filter
Backspace Delete a character of filter at the cursor position
Ctrl + U Delete all characters of filter

Usage

…

Configuration

The following settings are available in config.toml

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustclicommand-linegrepinteractive

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,