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", "open",
"quit", "quit",
"top", "top",
"bot", "bottom",
"toggle", "toggle",
"invert", "invert",
"unmark", "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>') open (default 'l' and '<right>')
quit (default 'q') quit (default 'q')
top (default 'gg') top (default 'gg')
bot (default 'G') bottom (default 'G')
toggle (default '<space>') toggle (default '<space>')
invert (default 'v') invert (default 'v')
unmark (default 'u') unmark (default 'u')

View File

@ -26,7 +26,7 @@ The following commands are provided by lf with default keybindings:
open (default 'l' and '<right>') open (default 'l' and '<right>')
quit (default 'q') quit (default 'q')
top (default 'gg') top (default 'gg')
bot (default 'G') bottom (default 'G')
toggle (default '<space>') toggle (default '<space>')
invert (default 'v') invert (default 'v')
unmark (default 'u') unmark (default 'u')

View File

@ -316,8 +316,8 @@ func (e *callExpr) eval(app *app, args []string) {
app.nav.top() app.nav.top()
app.ui.loadFile(app.nav) app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav) app.ui.loadFileInfo(app.nav)
case "bot": case "bottom":
app.nav.bot() app.nav.bottom()
app.ui.loadFile(app.nav) app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav) app.ui.loadFileInfo(app.nav)
case "toggle": case "toggle":

2
nav.go
View File

@ -503,7 +503,7 @@ func (nav *nav) top() {
dir.pos = 0 dir.pos = 0
} }
func (nav *nav) bot() { func (nav *nav) bottom() {
dir := nav.currDir() dir := nav.currDir()
dir.ind = len(dir.fi) - 1 dir.ind = len(dir.fi) - 1

View File

@ -82,7 +82,7 @@ func init() {
gOpts.keys["<right>"] = &callExpr{"open", nil, 1} gOpts.keys["<right>"] = &callExpr{"open", nil, 1}
gOpts.keys["q"] = &callExpr{"quit", nil, 1} gOpts.keys["q"] = &callExpr{"quit", nil, 1}
gOpts.keys["gg"] = &callExpr{"top", 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["<space>"] = &callExpr{"toggle", nil, 1}
gOpts.keys["v"] = &callExpr{"invert", nil, 1} gOpts.keys["v"] = &callExpr{"invert", nil, 1}
gOpts.keys["u"] = &callExpr{"unmark", nil, 1} gOpts.keys["u"] = &callExpr{"unmark", nil, 1}