diff --git a/doc/man/man1/tfman.1.md b/doc/man/man1/tfman.1.md index fbdc450e0..ad460fcf0 100644 --- a/doc/man/man1/tfman.1.md +++ b/doc/man/man1/tfman.1.md @@ -45,6 +45,7 @@ The following keypresses are recognized: * **j**/**down**: Move down by one line. * **f**/**pgdown**: Move down by one page. * **l**/**right**: Move down by one section. +* **g**/**home**: Go to first line in file. * **s**: Toggle the structure browser's visibility. The mouse wheel can also be used to move up and down within the active browser. diff --git a/src/man/main.c b/src/man/main.c index 024497933..5a88688f8 100644 --- a/src/man/main.c +++ b/src/man/main.c @@ -613,6 +613,9 @@ manloop(struct notcurses* nc, const char* arg, unsigned noui){ newy = ncplane_y(page) - (int)ncplane_dim_y(stdn) + 1; movedown = true; break; + case 'g': case NCKEY_HOME: + newy = 1; + break; }case 'q': ret = 0; goto done;