From ed8137a79c3641ba5f98c3492fe16e9a7c37ae67 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 16 May 2018 00:20:05 +0300 Subject: [PATCH] rename 'bot' to 'bottom' --- complete.go | 2 +- doc.go | 2 +- docstring.go | 2 +- eval.go | 4 ++-- nav.go | 2 +- opts.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/complete.go b/complete.go index 91956e1..9b5e960 100644 --- a/complete.go +++ b/complete.go @@ -24,7 +24,7 @@ var ( "open", "quit", "top", - "bot", + "bottom", "toggle", "invert", "unmark", diff --git a/doc.go b/doc.go index bb6ddeb..0eed22f 100644 --- a/doc.go +++ b/doc.go @@ -22,7 +22,7 @@ The following commands are provided by lf with default keybindings: open (default 'l' and '') quit (default 'q') top (default 'gg') - bot (default 'G') + bottom (default 'G') toggle (default '') invert (default 'v') unmark (default 'u') diff --git a/docstring.go b/docstring.go index 41a1ab5..da50f84 100644 --- a/docstring.go +++ b/docstring.go @@ -26,7 +26,7 @@ The following commands are provided by lf with default keybindings: open (default 'l' and '') quit (default 'q') top (default 'gg') - bot (default 'G') + bottom (default 'G') toggle (default '') invert (default 'v') unmark (default 'u') diff --git a/eval.go b/eval.go index f7c096f..054be25 100644 --- a/eval.go +++ b/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": diff --git a/nav.go b/nav.go index 783c5f9..1bb80f1 100644 --- a/nav.go +++ b/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 diff --git a/opts.go b/opts.go index a5b317e..751a8fa 100644 --- a/opts.go +++ b/opts.go @@ -82,7 +82,7 @@ func init() { gOpts.keys[""] = &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[""] = &callExpr{"toggle", nil, 1} gOpts.keys["v"] = &callExpr{"invert", nil, 1} gOpts.keys["u"] = &callExpr{"unmark", nil, 1}