mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 22:07:09 +09:00
Add default bindings for PreviousTab and NextTab
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user