mirror of
https://github.com/felixangell/phi.git
synced 2024-09-11 15:55:25 +03:00
20 lines
872 B
Go
20 lines
872 B
Go
package buff
|
|
|
|
var register = map[string]BufferAction{
|
|
"page_down": NewBufferAction("page_down", pageDown),
|
|
"page_up": NewBufferAction("page_up", pageUp),
|
|
"undo": NewBufferAction("undo", Undo),
|
|
"redo": NewBufferAction("redo", Redo),
|
|
"focus_left": NewBufferAction("focus_left", focusLeft),
|
|
"focus_right": NewBufferAction("focus_right", focusRight),
|
|
"goto": NewBufferAction("goto", GotoLine),
|
|
"new": NewBufferAction("new", NewFile),
|
|
"open": NewBufferAction("open", OpenFile),
|
|
"save": NewBufferAction("save", Save),
|
|
"delete_line": NewBufferAction("delete_line", DeleteLine),
|
|
"close_buffer": NewBufferAction("close_buffer", CloseBuffer),
|
|
"paste": NewBufferAction("paste", Paste),
|
|
"show_palette": NewBufferAction("show_palette", ShowPalette),
|
|
"exit": NewBufferAction("exit", ExitPhi),
|
|
}
|