rename 'cmd-beg' to 'cmd-home'
This commit is contained in:
parent
de39594a46
commit
980a89c908
2
doc.go
2
doc.go
@ -63,7 +63,7 @@ keybindings:
|
|||||||
cmd-delete-back (default '<bs>' and '<bs2>')
|
cmd-delete-back (default '<bs>' and '<bs2>')
|
||||||
cmd-left (default '<c-b>' and '<left>')
|
cmd-left (default '<c-b>' and '<left>')
|
||||||
cmd-right (default '<c-f>' and '<right>')
|
cmd-right (default '<c-f>' and '<right>')
|
||||||
cmd-beg (default '<c-a>' and '<home>')
|
cmd-home (default '<c-a>' and '<home>')
|
||||||
cmd-end (default '<c-e>' and '<end>')
|
cmd-end (default '<c-e>' and '<end>')
|
||||||
cmd-delete-beg (default '<c-u>')
|
cmd-delete-beg (default '<c-u>')
|
||||||
cmd-delete-end (default '<c-k>')
|
cmd-delete-end (default '<c-k>')
|
||||||
|
@ -67,7 +67,7 @@ keybindings:
|
|||||||
cmd-delete-back (default '<bs>' and '<bs2>')
|
cmd-delete-back (default '<bs>' and '<bs2>')
|
||||||
cmd-left (default '<c-b>' and '<left>')
|
cmd-left (default '<c-b>' and '<left>')
|
||||||
cmd-right (default '<c-f>' and '<right>')
|
cmd-right (default '<c-f>' and '<right>')
|
||||||
cmd-beg (default '<c-a>' and '<home>')
|
cmd-home (default '<c-a>' and '<home>')
|
||||||
cmd-end (default '<c-e>' and '<end>')
|
cmd-end (default '<c-e>' and '<end>')
|
||||||
cmd-delete-beg (default '<c-u>')
|
cmd-delete-beg (default '<c-u>')
|
||||||
cmd-delete-end (default '<c-k>')
|
cmd-delete-end (default '<c-k>')
|
||||||
|
2
eval.go
2
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.cmdAccLeft = append(app.ui.cmdAccLeft, app.ui.cmdAccRight[0])
|
||||||
app.ui.cmdAccRight = app.ui.cmdAccRight[1:]
|
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.cmdAccRight = append(app.ui.cmdAccLeft, app.ui.cmdAccRight...)
|
||||||
app.ui.cmdAccLeft = nil
|
app.ui.cmdAccLeft = nil
|
||||||
case "cmd-end":
|
case "cmd-end":
|
||||||
|
4
opts.go
4
opts.go
@ -132,8 +132,8 @@ func init() {
|
|||||||
gOpts.cmdkeys["<c-b>"] = &callExpr{"cmd-left", nil, 1}
|
gOpts.cmdkeys["<c-b>"] = &callExpr{"cmd-left", nil, 1}
|
||||||
gOpts.cmdkeys["<right>"] = &callExpr{"cmd-right", nil, 1}
|
gOpts.cmdkeys["<right>"] = &callExpr{"cmd-right", nil, 1}
|
||||||
gOpts.cmdkeys["<c-f>"] = &callExpr{"cmd-right", nil, 1}
|
gOpts.cmdkeys["<c-f>"] = &callExpr{"cmd-right", nil, 1}
|
||||||
gOpts.cmdkeys["<home>"] = &callExpr{"cmd-beg", nil, 1}
|
gOpts.cmdkeys["<home>"] = &callExpr{"cmd-home", nil, 1}
|
||||||
gOpts.cmdkeys["<c-a>"] = &callExpr{"cmd-beg", nil, 1}
|
gOpts.cmdkeys["<c-a>"] = &callExpr{"cmd-home", nil, 1}
|
||||||
gOpts.cmdkeys["<end>"] = &callExpr{"cmd-end", nil, 1}
|
gOpts.cmdkeys["<end>"] = &callExpr{"cmd-end", nil, 1}
|
||||||
gOpts.cmdkeys["<c-e>"] = &callExpr{"cmd-end", nil, 1}
|
gOpts.cmdkeys["<c-e>"] = &callExpr{"cmd-end", nil, 1}
|
||||||
gOpts.cmdkeys["<c-u>"] = &callExpr{"cmd-delete-beg", nil, 1}
|
gOpts.cmdkeys["<c-u>"] = &callExpr{"cmd-delete-beg", nil, 1}
|
||||||
|
Loading…
Reference in New Issue
Block a user