mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
Add support g/Home keys to tfman
This commit is contained in:
parent
142d3ab4e9
commit
7eb51cb456
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user