rename 'cmd-put' to 'cmd-yank'
This commit is contained in:
parent
ed8137a79c
commit
42d57121f7
2
doc.go
2
doc.go
@ -68,7 +68,7 @@ keybindings:
|
||||
cmd-delete-home (default '<c-u>')
|
||||
cmd-delete-end (default '<c-k>')
|
||||
cmd-delete-unix-word (default '<c-w>')
|
||||
cmd-put (default '<c-y>')
|
||||
cmd-yank (default '<c-y>')
|
||||
cmd-transpose (default '<c-t>')
|
||||
cmd-interrupt (default '<c-c>')
|
||||
cmd-word (default '<a-f>')
|
||||
|
@ -72,7 +72,7 @@ keybindings:
|
||||
cmd-delete-home (default '<c-u>')
|
||||
cmd-delete-end (default '<c-k>')
|
||||
cmd-delete-unix-word (default '<c-w>')
|
||||
cmd-put (default '<c-y>')
|
||||
cmd-yank (default '<c-y>')
|
||||
cmd-transpose (default '<c-t>')
|
||||
cmd-interrupt (default '<c-c>')
|
||||
cmd-word (default '<a-f>')
|
||||
|
2
eval.go
2
eval.go
@ -597,7 +597,7 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
ind := strings.LastIndex(strings.TrimRight(string(app.ui.cmdAccLeft), " "), " ") + 1
|
||||
app.ui.cmdBuf = 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...)
|
||||
case "cmd-transpose":
|
||||
if len(app.ui.cmdAccLeft) > 1 {
|
||||
|
2
opts.go
2
opts.go
@ -139,7 +139,7 @@ func init() {
|
||||
gOpts.cmdkeys["<c-u>"] = &callExpr{"cmd-delete-home", 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-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-c>"] = &callExpr{"cmd-interrupt", nil, 1}
|
||||
gOpts.cmdkeys["<a-f>"] = &callExpr{"cmd-word", nil, 1}
|
||||
|
Loading…
Reference in New Issue
Block a user