mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 14:10:23 +09:00
@@ -33,6 +33,9 @@ Ctrl-d: Half page down
|
||||
PageUp: Page up
|
||||
PageDown: Page down
|
||||
|
||||
Home: Go to beginning
|
||||
End: Go to end
|
||||
|
||||
Ctrl-e: Execute a command
|
||||
|
||||
Possible commands:
|
||||
|
||||
@@ -485,6 +485,12 @@ func (v *View) HandleEvent(event tcell.Event) {
|
||||
v.OpenFile()
|
||||
// Rehighlight the entire buffer
|
||||
v.UpdateLines(v.topline, v.topline+v.height)
|
||||
case tcell.KeyHome:
|
||||
v.topline = 0
|
||||
relocate = false
|
||||
case tcell.KeyEnd:
|
||||
v.topline = len(v.buf.lines) - 1 - v.height
|
||||
relocate = false
|
||||
case tcell.KeyPgUp:
|
||||
v.PageUp()
|
||||
relocate = false
|
||||
|
||||
Reference in New Issue
Block a user