Skip to content
jpcrsPublic

About

Not exactly a telescope, but it's useful sometimes. Extension to search/navigate through files and workspaces.

Resources

Stars

39 stars

Watchers

1 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

Repository files navigation

Binocular

Not as useful as a telescope, but helps in some situations.

Platform License Build

If you're looking for the vscode integration, check out vscode/README.md.

Overview

Yet another TUI fuzzy finder. Fast and yada yada...

binocular.mp4

Motivation

Not needing to configure my rg+fzf scripts in every new machine.

Features

  • Kinda fast — How fast? No idea. Faster than others? No idea. It uses nucleo for fuzzy search and SIMD accelerated substring search for exact serch.
  • Rich previews — Syntax highlighting via tree-sitter, image rendering, PDF text extraction, archive listings, SQLite schema inspection, media metadata, hex dumps, etc.
  • Structured log viewer — Real-time tailing of JSONL/logfmt streams with filtering, field discovery, and follow mode.
  • Vim-like navigation — Some vim motions when in text preview, including visual mode, text objects, search, and editing.
  • Headless mode — No TUI, straight to stdout.
  • Custom preview commands — Plug in your own preview tool (bat, cat, etc).

Built-in previewers:

  • Source code — Tree-sitter syntax highlighting for Rust, Python, JavaScript/TypeScript, Go, C/C++, C#, JSON, TOML, YAML, HTML, CSS...
  • Images — JPEG, PNG, GIF, WebP, BMP, TIFF, ICO rendered inline in the terminal.
  • Archives — ZIP, TAR (with deflate, bzip2, zstd) file listings.
  • PDFs — Text extraction for content search and preview.
  • SQLite — Schema and row preview for .db and .sqlite files.
  • Media — Audio/video metadata (ID3, FLAC, Spotlight on macOS).
  • Binary — Hex dump, entropy analysis, and printable string extraction.
  • Structured logs — JSONL and logfmt parsing with live tail.

Other Options

  • television Mature, more customizable, probably no reason to use binocular over television at all.
  • rg+fzf+whatever - Be creative, no limits.

Installation

Cargo

cargo install binocular-cli

From source

git clone https://github.com/jpcrs/Binocular.git
cd Binocular/tui
cargo build --release

Documentation

Credits

Telescope - Inspired the first version of binocular Television - Inspired the second version of binocular Nucleo - Fuzzy search Ratatui - TUI Framework

License

MIT © jpcrs

About

Not exactly a telescope, but it's useful sometimes. Extension to search/navigate through files and workspaces.

Resources

Stars

39 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages