No description
Find a file
Jeremie Fraeys c1fde4ff77
All checks were successful
Create Release / release (push) Successful in 43s
Simplify build.zig to Zig 0.15 best practices
2026-02-10 20:33:13 -05:00
.github/workflows Add release workflow 2026-02-10 18:13:08 -05:00
src Simplify manwhere to minimal version - remove interactive mode, descriptions, verbose flags. Keep only -s section filter. Output plain names for piping to fzf. 2026-02-10 20:26:18 -05:00
.gitignore Simplify manwhere to minimal version - remove interactive mode, descriptions, verbose flags. Keep only -s section filter. Output plain names for piping to fzf. 2026-02-10 20:26:18 -05:00
build.zig Simplify build.zig to Zig 0.15 best practices 2026-02-10 20:33:13 -05:00
README.md Update README for simplified version 2026-02-10 20:31:40 -05:00

manwhere

A fast, simple command-line tool to search man pages by keyword, written in Zig.

Usage

manwhere sleep              # Find all man pages mentioning "sleep"
# Output:
# sleep
# appsleepd

Interactive Selection with fzf

manwhere sleep | fzf | xargs man    # Select and open a man page

Section Filtering

manwhere -s 1 sleep         # Find only commands (section 1)
manwhere --section 3 sleep  # Find only library functions (section 3)
manwhere -s 1 -s 3 sleep    # Search sections 1 and 3

Help

manwhere -h                 # Show help message

Building

Prerequisites

  • Zig 0.15.1 or later

Build Commands

# Debug build (for development)
zig build

# Release build (installs to ~/.local/bin)
zig build release

Example Workflows

Find and open a man page

manwhere printf | fzf | xargs man

Quick lookup with preview

manwhere sleep | fzf --preview 'man {}'

Scripting

# Find all SSL-related functions
manwhere ssl | while read name; do
    man 3 "$name" 2>/dev/null && break
done

POSIX Compatibility

Works reliably on:

  • Linux: Standard /usr/share/man and /usr/local/share/man
  • macOS: Standard paths plus Homebrew (/opt/homebrew/share/man) and MacPorts (/opt/local/share/man)
  • Other Unix-like systems: Standard man page directory structures

License

This project is open source. See the source code for license details.