Skip to Content

Key bindings

In the preview, press ? to see the full list. The bottom row also shows hints for some keys. Click a hint to run its key.

Scroll

KeyDoes
j k, Down Up, Ctrl-e Ctrl-yScroll down or up one row
d u, Ctrl-d Ctrl-uScroll down or up half a screen
Space f, PageDownScroll down a full screen
b, Ctrl-b, PageUpScroll up a full screen
g or gg, HomeGo to the top
G, EndGo to the bottom
h l, Left RightScroll the wide code blocks and tables on screen left or right
Mouse wheelScroll 3 rows
Shift + wheelScroll the code block or table under the pointer sideways
Backspace, Ctrl-oGo back to where you were before a jump, or to the file before

Mouse

ActionDoes
Click a linkOpen it in the browser. A # link scrolls to its heading
Click a buttonCopy a code block, open or close a <details>, or zoom or expand a diagram
Drag, double-clickSelect text, select a word
Cmd-cCopy the selected text
Drag a scroll barScroll that code block or table sideways
Click the bottom rowRun the key named where you click

See Mouse support for what each click does.

KeyDoes
/, Ctrl-fOpen the search prompt. Enter searches. Esc, or Backspace in an empty prompt, cancels
n N, EnterGo to the next or previous match
EscClear the search, or close the table of contents
Ctrl-u Ctrl-wIn the prompt: clear the text, or delete the last word

A query in all lowercase ignores case. A query with any uppercase letter matches case exactly.

Table of contents

KeyDoes
tShow or hide the table of contents
1 to 9Jump to the Nth section. Press the same digit again to step through its subsections
0Make the next repeated digit step backward through subsections
J K, ]] [[Go to the next or previous section
D U, wheel over the listScroll the list in the table of contents. You can also drag its scroll bar
Click an entryJump to that section

Other

KeyDoes
wWrap or unwrap long lines in code blocks
e, vOpen the file in $EDITOR (vi if it's not set), then reload it
cCopy the file's Markdown source
?Show the key list. Press ? or Esc to go back to the page
Ctrl-pOpen the file list for the file's repo, or the current folder
Ctrl-zPause mddog and go back to the shell. Run fg to come back
q, Q, Ctrl-cQuit

File list

KeyDoes
TypeFilter the list
Up Down, Ctrl-p Ctrl-nMove the selection
PageUp PageDown, Home End, wheelMove the selection further
Enter, click a rowOpen the file
Backspace, Ctrl-u, Ctrl-wDelete a letter, clear the filter, delete a word
EscGo back to the file you had open, or quit if mdd started with the list
Ctrl-cQuit

On this page