rename 'bot' to 'bottom'
This commit is contained in:
parent
d9761d2dc8
commit
ed8137a79c
@ -24,7 +24,7 @@ var (
|
||||
"open",
|
||||
"quit",
|
||||
"top",
|
||||
"bot",
|
||||
"bottom",
|
||||
"toggle",
|
||||
"invert",
|
||||
"unmark",
|
||||
|
2
doc.go
2
doc.go
@ -22,7 +22,7 @@ The following commands are provided by lf with default keybindings:
|
||||
open (default 'l' and '<right>')
|
||||
quit (default 'q')
|
||||
top (default 'gg')
|
||||
bot (default 'G')
|
||||
bottom (default 'G')
|
||||
toggle (default '<space>')
|
||||
invert (default 'v')
|
||||
unmark (default 'u')
|
||||
|
@ -26,7 +26,7 @@ The following commands are provided by lf with default keybindings:
|
||||
open (default 'l' and '<right>')
|
||||
quit (default 'q')
|
||||
top (default 'gg')
|
||||
bot (default 'G')
|
||||
bottom (default 'G')
|
||||
toggle (default '<space>')
|
||||
invert (default 'v')
|
||||
unmark (default 'u')
|
||||
|
4
eval.go
4
eval.go
@ -316,8 +316,8 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.nav.top()
|
||||
app.ui.loadFile(app.nav)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
case "bot":
|
||||
app.nav.bot()
|
||||
case "bottom":
|
||||
app.nav.bottom()
|
||||
app.ui.loadFile(app.nav)
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
case "toggle":
|
||||
|
2
nav.go
2
nav.go
@ -503,7 +503,7 @@ func (nav *nav) top() {
|
||||
dir.pos = 0
|
||||
}
|
||||
|
||||
func (nav *nav) bot() {
|
||||
func (nav *nav) bottom() {
|
||||
dir := nav.currDir()
|
||||
|
||||
dir.ind = len(dir.fi) - 1
|
||||
|
2
opts.go
2
opts.go
@ -82,7 +82,7 @@ func init() {
|
||||
gOpts.keys["<right>"] = &callExpr{"open", nil, 1}
|
||||
gOpts.keys["q"] = &callExpr{"quit", nil, 1}
|
||||
gOpts.keys["gg"] = &callExpr{"top", nil, 1}
|
||||
gOpts.keys["G"] = &callExpr{"bot", nil, 1}
|
||||
gOpts.keys["G"] = &callExpr{"bottom", nil, 1}
|
||||
gOpts.keys["<space>"] = &callExpr{"toggle", nil, 1}
|
||||
gOpts.keys["v"] = &callExpr{"invert", nil, 1}
|
||||
gOpts.keys["u"] = &callExpr{"unmark", nil, 1}
|
||||
|
Loading…
Reference in New Issue
Block a user