parent
01fe12b2ce
commit
7feb42db34
14
doc.go
14
doc.go
@ -31,9 +31,9 @@ The following commands are provided by lf:
|
||||
jump-prev (default '[')
|
||||
top (default 'gg' and '<home>')
|
||||
bottom (default 'G' and '<end>')
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
toggle
|
||||
invert (default 'v')
|
||||
unselect (default 'u')
|
||||
@ -298,11 +298,11 @@ Change the current working directory to the next/previous jumplist item.
|
||||
|
||||
Move the current file selection to the top/bottom of the directory.
|
||||
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
|
||||
Move the current file selection to the top/middle/bottom of the screen.
|
||||
Move the current file selection to the high/middle/low of the screen.
|
||||
|
||||
toggle
|
||||
|
||||
|
14
docstring.go
14
docstring.go
@ -35,9 +35,9 @@ The following commands are provided by lf:
|
||||
jump-prev (default '[')
|
||||
top (default 'gg' and '<home>')
|
||||
bottom (default 'G' and '<end>')
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
toggle
|
||||
invert (default 'v')
|
||||
unselect (default 'u')
|
||||
@ -310,11 +310,11 @@ Change the current working directory to the next/previous jumplist item.
|
||||
|
||||
Move the current file selection to the top/bottom of the directory.
|
||||
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
|
||||
Move the current file selection to the top/middle/bottom of the screen.
|
||||
Move the current file selection to the high/middle/low of the screen.
|
||||
|
||||
toggle
|
||||
|
||||
|
12
eval.go
12
eval.go
@ -963,27 +963,27 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "hi-screen":
|
||||
case "high":
|
||||
if !app.nav.init {
|
||||
return
|
||||
}
|
||||
if app.nav.hiScreen() {
|
||||
if app.nav.high() {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "mid-screen":
|
||||
case "middle":
|
||||
if !app.nav.init {
|
||||
return
|
||||
}
|
||||
if app.nav.midScreen() {
|
||||
if app.nav.middle() {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
case "lo-screen":
|
||||
case "low":
|
||||
if !app.nav.init {
|
||||
return
|
||||
}
|
||||
if app.nav.loScreen() {
|
||||
if app.nav.low() {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
|
14
lf.1
14
lf.1
@ -46,9 +46,9 @@ The following commands are provided by lf:
|
||||
jump-prev (default '[')
|
||||
top (default 'gg' and '<home>')
|
||||
bottom (default 'G' and '<end>')
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
toggle
|
||||
invert (default 'v')
|
||||
unselect (default 'u')
|
||||
@ -347,12 +347,12 @@ Change the current working directory to the next/previous jumplist item.
|
||||
Move the current file selection to the top/bottom of the directory.
|
||||
.PP
|
||||
.EX
|
||||
hi-screen (default 'H')
|
||||
mid-screen (default 'M')
|
||||
lo-screen (default 'L')
|
||||
high (default 'H')
|
||||
middle (default 'M')
|
||||
low (default 'L')
|
||||
.EE
|
||||
.PP
|
||||
Move the current file selection to the top/middle/bottom of the screen.
|
||||
Move the current file selection to the high/middle/low of the screen.
|
||||
.PP
|
||||
.EX
|
||||
toggle
|
||||
|
6
nav.go
6
nav.go
@ -943,7 +943,7 @@ func (nav *nav) bottom() bool {
|
||||
return old != dir.ind
|
||||
}
|
||||
|
||||
func (nav *nav) hiScreen() bool {
|
||||
func (nav *nav) high() bool {
|
||||
dir := nav.currDir()
|
||||
|
||||
old := dir.ind
|
||||
@ -959,7 +959,7 @@ func (nav *nav) hiScreen() bool {
|
||||
return old != dir.ind
|
||||
}
|
||||
|
||||
func (nav *nav) midScreen() bool {
|
||||
func (nav *nav) middle() bool {
|
||||
dir := nav.currDir()
|
||||
|
||||
old := dir.ind
|
||||
@ -973,7 +973,7 @@ func (nav *nav) midScreen() bool {
|
||||
return old != dir.ind
|
||||
}
|
||||
|
||||
func (nav *nav) loScreen() bool {
|
||||
func (nav *nav) low() bool {
|
||||
dir := nav.currDir()
|
||||
|
||||
old := dir.ind
|
||||
|
6
opts.go
6
opts.go
@ -146,9 +146,9 @@ func init() {
|
||||
gOpts.keys["<home>"] = &callExpr{"top", nil, 1}
|
||||
gOpts.keys["G"] = &callExpr{"bottom", nil, 1}
|
||||
gOpts.keys["<end>"] = &callExpr{"bottom", nil, 1}
|
||||
gOpts.keys["H"] = &callExpr{"hi-screen", nil, 1}
|
||||
gOpts.keys["M"] = &callExpr{"mid-screen", nil, 1}
|
||||
gOpts.keys["L"] = &callExpr{"lo-screen", nil, 1}
|
||||
gOpts.keys["H"] = &callExpr{"high", nil, 1}
|
||||
gOpts.keys["M"] = &callExpr{"middle", nil, 1}
|
||||
gOpts.keys["L"] = &callExpr{"low", nil, 1}
|
||||
gOpts.keys["["] = &callExpr{"jump-prev", nil, 1}
|
||||
gOpts.keys["]"] = &callExpr{"jump-next", nil, 1}
|
||||
gOpts.keys["<space>"] = &listExpr{[]expr{&callExpr{"toggle", nil, 1}, &callExpr{"down", nil, 1}}, 1}
|
||||
|
Loading…
Reference in New Issue
Block a user