Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add page up and page down to for scrolling pages #228

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/gotop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ func eventLoop(c gotop.Config, grid *layout.MyGrid) {
grid.Proc.ScrollHalfPageUp()
ui.Render(grid.Proc)
}
case "<C-f>":
case "<C-f>", "<PageDown>":
if grid.Proc != nil {
grid.Proc.ScrollPageDown()
ui.Render(grid.Proc)
}
case "<C-b>":
case "<C-b>", "<PageUp>":
if grid.Proc != nil {
grid.Proc.ScrollPageUp()
ui.Render(grid.Proc)
Expand Down
4 changes: 2 additions & 2 deletions dicts/de_DE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Prozessnavigation:
- j und <Down>: Zeile nach unten
- <C-u>: halbe Seite nach oben
- <C-d>: halbe Seite nach unten
- <C-b>: ganze Seite nach oben
- <C-f>: ganze Seite nach unten
- <C-b> und <PageUp>: ganze Seite nach oben
- <C-f> und <PageDown>: ganze Seite nach unten
- gg und <Home>: an den Anfang springen
- G und <End>: an das Ende springen

Expand Down
4 changes: 2 additions & 2 deletions dicts/en_US.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Process navigation:
- j and <Down>: down
- <C-u>: half page up
- <C-d>: half page down
- <C-b>: full page up
- <C-f>: full page down
- <C-b> and <PageUp>: full page up
- <C-f> and <PageDown> : full page down
- gg and <Home>: jump to top
- G and <End>: jump to bottom

Expand Down
4 changes: 2 additions & 2 deletions dicts/eo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Proceza navigadoj:
- j kaj <Malsupren>: malsupren
- <C-u>: duona paĝo supren
- <C-d>: duona paĝo malsupren
- <C-b>: plena paĝo supren
- <C-f>: plena paĝo malsupren
- <C-b> kaj <PageUp>: plena paĝo supren
- <C-f> kaj <PageDown>: plena paĝo malsupren
- gg kaj <Hejmo>: salti al supron
- G kaj <Fino>: salti al malsupron

Expand Down
4 changes: 2 additions & 2 deletions dicts/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Navegación de procesos:
- j y <Down>: abajo
- <C-u>: media página arriba
- <C-d>: media página abajo
- <C-b>: página completa arriba
- <C-f>: página completa abajo
- <C-b> y <PageUp>: página completa arriba
- <C-f> y <PageDown>: página completa abajo
- gg y <Home>: saltar al principio
- G y <End>: saltar al final

Expand Down
4 changes: 2 additions & 2 deletions dicts/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Navigation dans les processus:
- j et <Down>: vers le bas
- <C-u>: une demi-page vers le haut
- <C-d>: une demi-page vers le bas
- <C-b>: une page entière vers le haut
- <C-f>: une page entière vers le bas
- <C-b> et <PageUp>: une page entière vers le haut
- <C-f> et <PageDown>: une page entière vers le bas
- gg et <Home>: saut au début
- G et <End>: saut à la fin

Expand Down
4 changes: 2 additions & 2 deletions dicts/ru_RU.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ help="""
- j и <Down>: вниз
- <C-u>: вверх на пол страницы
- <C-d>: вниз на пол страницы
- <C-b>: вверх на всю страницу
- <C-f>: вниз на всю страницу
- <C-b> и <PageUp>: вверх на всю страницу
- <C-f> и <PageDown>: вниз на всю страницу
- gg and <Home>: наверх
- G and <End>: вниз
Действия с процессами:
Expand Down
4 changes: 2 additions & 2 deletions dicts/tt_TT.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pu :>pU< dna k -
nwod :>nwoD< dna j -
pu egap flah :>u-C< -
nwod egap flah :>d-C< -
pu egap lluf :>b-C< -
nwod egap lluf :>f-C< -
pu egap lluf :>pUegaP< dna >b-C< -
nwod egap lluf :>nwoDegaP< dna >f-C< -
pot ot pmuj :>emoH< dna gg -
mottob ot pmuj :>dnE< dna G -

Expand Down
4 changes: 2 additions & 2 deletions dicts/zh_CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ help="""
- j 或 <Down>: 下一行
- <C-u>: 上半页
- <C-d>: 下半页
- <C-b>: 上一页
- <C-f>: 下一页
- <C-b> 或 <PageUp>: 上一页
- <C-f> 或 <PageDown>: 下一页
- gg 或 <Home>: 到顶部
- G 或 <End>: 到底部

Expand Down