From 980a89c9081e2b2fbe0d7dcc9f09b69566eda003 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 16 May 2018 00:00:20 +0300 Subject: [PATCH] rename 'cmd-beg' to 'cmd-home' --- doc.go | 2 +- docstring.go | 2 +- eval.go | 2 +- opts.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc.go b/doc.go index 3643b82..ad00eb8 100644 --- a/doc.go +++ b/doc.go @@ -63,7 +63,7 @@ keybindings: cmd-delete-back (default '' and '') cmd-left (default '' and '') cmd-right (default '' and '') - cmd-beg (default '' and '') + cmd-home (default '' and '') cmd-end (default '' and '') cmd-delete-beg (default '') cmd-delete-end (default '') diff --git a/docstring.go b/docstring.go index ccabf39..46c3c1d 100644 --- a/docstring.go +++ b/docstring.go @@ -67,7 +67,7 @@ keybindings: cmd-delete-back (default '' and '') cmd-left (default '' and '') cmd-right (default '' and '') - cmd-beg (default '' and '') + cmd-home (default '' and '') cmd-end (default '' and '') cmd-delete-beg (default '') cmd-delete-end (default '') diff --git a/eval.go b/eval.go index 1c3b245..8b303b3 100644 --- a/eval.go +++ b/eval.go @@ -577,7 +577,7 @@ func (e *callExpr) eval(app *app, args []string) { app.ui.cmdAccLeft = append(app.ui.cmdAccLeft, app.ui.cmdAccRight[0]) app.ui.cmdAccRight = app.ui.cmdAccRight[1:] } - case "cmd-beg": + case "cmd-home": app.ui.cmdAccRight = append(app.ui.cmdAccLeft, app.ui.cmdAccRight...) app.ui.cmdAccLeft = nil case "cmd-end": diff --git a/opts.go b/opts.go index 5b032cb..89f6411 100644 --- a/opts.go +++ b/opts.go @@ -132,8 +132,8 @@ func init() { gOpts.cmdkeys[""] = &callExpr{"cmd-left", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-right", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-right", nil, 1} - gOpts.cmdkeys[""] = &callExpr{"cmd-beg", nil, 1} - gOpts.cmdkeys[""] = &callExpr{"cmd-beg", nil, 1} + gOpts.cmdkeys[""] = &callExpr{"cmd-home", nil, 1} + gOpts.cmdkeys[""] = &callExpr{"cmd-home", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-end", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-end", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-delete-beg", nil, 1}