Add center action to center the view on the cursor

This commit is contained in:
Zachary Yedidia
2016-08-24 15:48:11 -07:00
parent b818011715
commit dbdfef632e
3 changed files with 21 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ var bindingActions = map[string]func(*View, bool) bool{
"Find": (*View).Find,
"FindNext": (*View).FindNext,
"FindPrevious": (*View).FindPrevious,
"Center": (*View).Center,
"Undo": (*View).Undo,
"Redo": (*View).Redo,
"Copy": (*View).Copy,