add scrollup scrolldown builtin cmd (#764)
* add scrollup scrolldown builtin cmd Scrollup/down move window pane without moving current cursor position. Default keybinding would be <c-y> for scrollup and <c-e> for scrolldown just like in vim. * limit scrolldown when reached bottom scrolodown will not allow empty space Fix typo
This commit is contained in:
1 parent
7005815671
commit
b4637f91aa
7 files changed
+84
No files matched your search
@@ -807,6 +807,11 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "scrollup":
|
||||
if app.nav.scrollup(e.count) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "down":
|
||||
if app.nav.down(e.count) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
@@ -822,6 +827,11 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "scrolldown":
|
||||
if app.nav.scrolldown(e.count) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "updir":
|
||||
resetIncCmd(app)
|
||||
preChdir(app)
|
||||
|
||||
Reference in new issue
Block a user