Add VIMs hi/mid/lo-screen commands (#824)

* add hi/mid/lo-screen commands and default keybindings

* doc
This commit is contained in:
Christian Zangl authored and GitHub committed 2022-05-08 13:58:56 +03:00
1 parent 50f11ad3de
commit 01fe12b2ce
6 files changed
+103

No files matched your search

+24
View File
@@ -963,6 +963,30 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.loadFile(app.nav, true)
app.ui.loadFileInfo(app.nav)
}
case "hi-screen":
if !app.nav.init {
return
}
if app.nav.hiScreen() {
app.ui.loadFile(app.nav, true)
app.ui.loadFileInfo(app.nav)
}
case "mid-screen":
if !app.nav.init {
return
}
if app.nav.midScreen() {
app.ui.loadFile(app.nav, true)
app.ui.loadFileInfo(app.nav)
}
case "lo-screen":
if !app.nav.init {
return
}
if app.nav.loScreen() {
app.ui.loadFile(app.nav, true)
app.ui.loadFileInfo(app.nav)
}
case "toggle":
if !app.nav.init {
return