Skip to content

lusingander/topi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

topi

Terminal OpenAPI documentation viewer 🐐

About

topi is still under development... 🐐

topi is the documentation viewer for OpenAPI v3 definitions in the terminal.

(This image show https://github.com/github/rest-api-description)

Installation

$ go install github.com/lusingander/topi@latest

(require Go 1.18+)

Usage

$ topi <path>

path can be local file path or remote URL.

Keybindings

Common

common keybindings for all pages

Key Description
Backspace back to perv page
Ctrl+c quit
? show help page

List page

keybindings for list-syle pages

Key Description
j cursor down
k cursor up
f l next page
b h prev page
g go to start
G go to end
/ Enter filtering mode
Enter (default) select item, (filtering) apply filter
Esc (filtering) cancel filter, (filter applied) remove filter

Document page

keybindings for document pages

Key Description
j page down one line
k page up one line
f page down
b page up
d half page down
u half page up
Tab select link
x open selecting link

specific to the credits page

Key Description
t toggle credits list

License

MIT

Releases

No releases published

Languages