Skip to content

andykuszyk/noman.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noman

Noman (pronounced no-man) is a small package that tries to parse the help output from command line programs into an easy-to-navigate Emacs user interface.

I primarily wrote this package to navigate the command line help from kubectl and aws, both of which have nested sub-commands, and quite verbose (and helpful!) command line help.

Neither of these programs ships with man pages, or similar offline documentation. I find myself consulting the command line help often, but struggling to find the experience very ergonomic.

This package aims to make the experience of browsing command line help more pleasant.

Installation

Noman isn’t on MELPA yet, but it can be installed directly from this repo. First, clone the repo:

git clone https://github.com/andykuszyk/noman.el ~/noman.el

Then, add it to your load path:

(add-to-list 'load-path "~/noman.el")
(require 'noman)

Usage

The entrypoint for this package is the noman command:

M-x noman RET

When prompted for a command, enter a program in your PATH, e.g. kubectl.

Noman then tries to run the command with the --help or help suffixes, and parse the output. Parsing the output simply involves looking for subcommands, and turning them into links for subsequent invocations of noman.

The key-bindings are as follows:

KeyDescription
nNext line
pPrevious line
qQuit the window
g or mSelect a subcommand to display
GRun noman for a different command
lBack to the previous subcommand
TABForward button
<backtab>Backward button

Known to work with

  • kubectl
  • terraform
  • gh
  • aws