Add default bindings for PreviousTab and NextTab

This commit is contained in:
Zachary Yedidia
2016-06-08 18:48:59 -04:00
parent a79e964cb6
commit 2c73e1c043
3 changed files with 11 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ var bindingActions = map[string]func(*View) bool{
"CommandMode": (*View).CommandMode,
"Quit": (*View).Quit,
"AddTab": (*View).AddTab,
"LastTab": (*View).LastTab,
"PreviousTab": (*View).PreviousTab,
"NextTab": (*View).NextTab,
}
@@ -384,6 +384,8 @@ func DefaultBindings() map[string]string {
"CtrlV": "Paste",
"CtrlA": "SelectAll",
"CtrlT": "AddTab",
"CtrlRightSq": "PreviousTab",
"CtrlBackslash": "NextTab",
"Home": "Start",
"End": "End",
"PageUp": "CursorPageUp",
@@ -1124,7 +1126,7 @@ func (v *View) AddTab() bool {
return true
}
func (v *View) LastTab() bool {
func (v *View) PreviousTab() bool {
if curTab > 0 {
curTab--
}

File diff suppressed because one or more lines are too long

View File

@@ -64,6 +64,8 @@ you can rebind them to your liking.
"CtrlV": "Paste",
"CtrlA": "SelectAll",
"CtrlT": "AddTab"
"CtrlRightSq": "PreviousTab",
"CtrlBackslash": "NextTab",
"Home": "Start",
"End": "End",
"PageUp": "CursorPageUp",