rename 'cmd-put' to 'cmd-yank'

This commit is contained in:
Gokcehan 2018-05-16 00:28:11 +03:00
parent ed8137a79c
commit 42d57121f7
4 changed files with 4 additions and 4 deletions

2
doc.go
View File

@ -68,7 +68,7 @@ keybindings:
cmd-delete-home (default '<c-u>') cmd-delete-home (default '<c-u>')
cmd-delete-end (default '<c-k>') cmd-delete-end (default '<c-k>')
cmd-delete-unix-word (default '<c-w>') cmd-delete-unix-word (default '<c-w>')
cmd-put (default '<c-y>') cmd-yank (default '<c-y>')
cmd-transpose (default '<c-t>') cmd-transpose (default '<c-t>')
cmd-interrupt (default '<c-c>') cmd-interrupt (default '<c-c>')
cmd-word (default '<a-f>') cmd-word (default '<a-f>')

View File

@ -72,7 +72,7 @@ keybindings:
cmd-delete-home (default '<c-u>') cmd-delete-home (default '<c-u>')
cmd-delete-end (default '<c-k>') cmd-delete-end (default '<c-k>')
cmd-delete-unix-word (default '<c-w>') cmd-delete-unix-word (default '<c-w>')
cmd-put (default '<c-y>') cmd-yank (default '<c-y>')
cmd-transpose (default '<c-t>') cmd-transpose (default '<c-t>')
cmd-interrupt (default '<c-c>') cmd-interrupt (default '<c-c>')
cmd-word (default '<a-f>') cmd-word (default '<a-f>')

View File

@ -597,7 +597,7 @@ func (e *callExpr) eval(app *app, args []string) {
ind := strings.LastIndex(strings.TrimRight(string(app.ui.cmdAccLeft), " "), " ") + 1 ind := strings.LastIndex(strings.TrimRight(string(app.ui.cmdAccLeft), " "), " ") + 1
app.ui.cmdBuf = app.ui.cmdAccLeft[ind:] app.ui.cmdBuf = app.ui.cmdAccLeft[ind:]
app.ui.cmdAccLeft = app.ui.cmdAccLeft[:ind] app.ui.cmdAccLeft = app.ui.cmdAccLeft[:ind]
case "cmd-put": case "cmd-yank":
app.ui.cmdAccLeft = append(app.ui.cmdAccLeft, app.ui.cmdBuf...) app.ui.cmdAccLeft = append(app.ui.cmdAccLeft, app.ui.cmdBuf...)
case "cmd-transpose": case "cmd-transpose":
if len(app.ui.cmdAccLeft) > 1 { if len(app.ui.cmdAccLeft) > 1 {

View File

@ -139,7 +139,7 @@ func init() {
gOpts.cmdkeys["<c-u>"] = &callExpr{"cmd-delete-home", nil, 1} gOpts.cmdkeys["<c-u>"] = &callExpr{"cmd-delete-home", nil, 1}
gOpts.cmdkeys["<c-k>"] = &callExpr{"cmd-delete-end", nil, 1} gOpts.cmdkeys["<c-k>"] = &callExpr{"cmd-delete-end", nil, 1}
gOpts.cmdkeys["<c-w>"] = &callExpr{"cmd-delete-unix-word", nil, 1} gOpts.cmdkeys["<c-w>"] = &callExpr{"cmd-delete-unix-word", nil, 1}
gOpts.cmdkeys["<c-y>"] = &callExpr{"cmd-put", nil, 1} gOpts.cmdkeys["<c-y>"] = &callExpr{"cmd-yank", nil, 1}
gOpts.cmdkeys["<c-t>"] = &callExpr{"cmd-transpose", nil, 1} gOpts.cmdkeys["<c-t>"] = &callExpr{"cmd-transpose", nil, 1}
gOpts.cmdkeys["<c-c>"] = &callExpr{"cmd-interrupt", nil, 1} gOpts.cmdkeys["<c-c>"] = &callExpr{"cmd-interrupt", nil, 1}
gOpts.cmdkeys["<a-f>"] = &callExpr{"cmd-word", nil, 1} gOpts.cmdkeys["<a-f>"] = &callExpr{"cmd-word", nil, 1}