Add VIMs hi/mid/lo-screen commands (#824)
* add hi/mid/lo-screen commands and default keybindings * doc
This commit is contained in:
1 parent
50f11ad3de
commit
01fe12b2ce
6 files changed
+103
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user