Skip to content

ZachVec/cppref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cppref

A cli cpp manual pages for Linux/MacOS!

Demostration

✨ Features

  • 📁 XDG base directories support.
  • 🔎 Interactive lookup powered by fzf.
  • 💻 Properly rendered contents.
  • 💪 Async download for improved performance.
  • ⏳ Pretty progress bar for downloading.

⚡️ Requirements

  • fzf for interactive lookup.
  • playwright chromium driver for subcommands fetch and cache, i.e., not offline mode.

🚀 Getting Started

Install by uv

uv tool install cppref

Downloading manual page database.

dbdir="${XDG_DATA_HOME:-$HOME/.local/share}/cppref"
mkdir -p "$dbdir"
wget -O "$dbdir/index.db" https://github.com/ZachVec/cppref/releases/latest/download/index.db

Downloading processed manual pages if cppref is going to be used in offline mode.

man3dir="${XDG_DATA_HOME:-$HOME/.local/share}/man/man3"
mkdir -p "$man3dir"
wget -O /tmp/man3_archive.tar.gz https://github.com/ZachVec/cppref/releases/latest/download/man3_archive.tar.gz
tar xzf /tmp/man3_archive.tar.gz -C "$man3dir"

About

A cli program to lookup cppreference inspired by cppman!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages