Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ynqa/sig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sig

ci

Interactive grep (for streamings).

sig.gif sig_archived.gif

Features

  • Interactive grep (for streaming)
    • sig allows users to interactively search through (streaming) data, updating results in real-time.
  • 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.
    • Additionally, by starting in this mode, it is also possible to grep through static data such as files.

Installation

Homebrew

brew install ynqa/tap/sig

Cargo

cargo install sigrs

Keymap

Key Action
Ctrl + C Exit sig
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

Interactive grep (for streaming)

Usage: sig [OPTIONS]

Options:
      --retrieval-timeout <RETRIEVAL_TIMEOUT_MILLIS>
          Timeout to read a next line from the stream in milliseconds. [default: 10]
      --render-interval <RENDER_INTERVAL_MILLIS>
          Interval to render a log line in milliseconds. [default: 10]
  -q, --queue-capacity <QUEUE_CAPACITY>
          Queue capacity to store the logs. [default: 1000]
      --archived
          Archived mode to grep through static data.
  -h, --help
          Print help (see more with '--help')
  -V, --version
          Print version

About

Interactive grep (for streaming)

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published