| Crates.io | barkdocs |
| lib.rs | barkdocs |
| version | 1.1.5 |
| created_at | 2025-12-04 16:41:57.112804+00 |
| updated_at | 2025-12-04 18:28:17.806318+00 |
| description | A keyboard-driven TUI markdown viewer, companion to barklog |
| homepage | |
| repository | https://github.com/lance0/barkdocs |
| max_upload_size | |
| id | 1966691 |
| size | 346,179 |
A keyboard-driven TUI markdown viewer, companion to barklog.

/, regex supportcargo install barkdocs
Or build from source:
git clone https://github.com/lance0/barkdocs
cd barkdocs
cargo build --release
# View a local file
barkdocs README.md
# Open GitHub repo README
barkdocs https://github.com/vercel/next.js
# Open specific GitHub file
barkdocs https://github.com/rust-lang/rust/blob/master/README.md
# Auto-open README.md in current directory
barkdocs
| Key | Action |
|---|---|
j/k, ↑/↓ |
Scroll up/down |
h/l, ←/→ |
Scroll left/right |
g/G |
Go to top/bottom |
Ctrl+u/d |
Half page up/down |
Enter/f |
Follow link |
y |
Yank (copy) current line |
| Key | Action |
|---|---|
/ |
Start search |
n/N |
Next/prev match |
Ctrl+r |
Toggle regex mode |
| Key | Action |
|---|---|
b |
Toggle outline panel |
< > or [ ] |
Resize outline panel |
w |
Toggle line wrap |
# |
Toggle line numbers |
Ctrl+s |
Toggle syntax highlighting |
R |
Toggle auto-reload |
Tab |
Switch panel focus |
| Key | Action |
|---|---|
Ctrl+W, v |
Split vertical |
Ctrl+W, s |
Split horizontal |
Ctrl+W, q |
Close pane |
Ctrl+W, w |
Cycle panes |
| Key | Action |
|---|---|
o |
Open file picker |
O |
Open URL prompt |
H |
View history |
m |
View bookmarks |
M |
Add bookmark |
| Key | Action |
|---|---|
B |
Open buffer list |
Ctrl+n/p |
Next/prev buffer |
Ctrl+x |
Close buffer |
| Key | Action |
|---|---|
S |
Settings |
? |
Help |
q |
Quit |
Barkdocs can fetch and display markdown from GitHub:
# Repository root (fetches README)
barkdocs https://github.com/user/repo
# Specific file (blob URL)
barkdocs https://github.com/user/repo/blob/main/docs/guide.md
# Raw URL
barkdocs https://raw.githubusercontent.com/user/repo/main/README.md
Supported branch names: HEAD, main, master, canary, develop, dev, trunk
Links to GitHub URLs within documents can be followed directly with Enter or f.
Config file: ~/.config/barkdocs/config.toml
theme = "dracula"
line_wrap = true
show_outline = true
outline_width = 24
show_line_numbers = false
syntax_highlighting = true
auto_reload = true
~/.local/share/barkdocs/history.json~/.local/share/barkdocs/bookmarks.json11 built-in themes:
| Theme | Description |
|---|---|
default |
Clean dark theme |
dracula |
Popular dark purple theme |
gruvbox |
Retro groove colors |
nord |
Arctic, north-bluish palette |
solarized-dark |
Precision dark colors |
solarized-light |
Precision light colors |
monokai |
Sublime-inspired colors |
catppuccin |
Soothing pastel theme |
tokyo-night |
Dark theme from Tokyo |
onedark |
Atom One Dark colors |
matrix |
Green on black hacker style |
Change theme with S (Settings) or set in config file.
| Variable | Description |
|---|---|
BARKDOCS_THEME |
Override theme |
BARKDOCS_LINE_WRAP |
Override line wrap (1/0) |
BARKDOCS_OUTLINE |
Override outline panel (1/0) |
BARKDOCS_LINE_NUMBERS |
Override line numbers (1/0) |
BARKDOCS_SYNTAX_HIGHLIGHTING |
Override syntax highlighting (1/0) |
BARKDOCS_AUTO_RELOAD |
Override auto-reload (1/0) |
MIT OR Apache-2.0