rename 'bot' to 'bottom'

This commit is contained in:
Gokcehan 2018-05-16 00:20:05 +03:00
parent d9761d2dc8
commit ed8137a79c
6 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ var (
"open",
"quit",
"top",
"bot",
"bottom",
"toggle",
"invert",
"unmark",

2
doc.go
View File

@ -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')

View File

@ -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')

View File

@ -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
View File

@ -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

View File

@ -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}