mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
@@ -55,6 +55,7 @@ func init() {
|
||||
"Open": Open,
|
||||
"TabSwitch": TabSwitch,
|
||||
"MemUsage": MemUsage,
|
||||
"Retab": Retab,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +111,7 @@ func DefaultCommands() map[string]StrCommand {
|
||||
"open": {"Open", []Completion{FileCompletion}},
|
||||
"tabswitch": {"TabSwitch", []Completion{NoCompletion}},
|
||||
"memusage": {"MemUsage", []Completion{NoCompletion}},
|
||||
"retab": {"Retab", []Completion{NoCompletion}},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,6 +198,10 @@ func PluginCmd(args []string) {
|
||||
}
|
||||
}
|
||||
|
||||
func Retab(args []string) {
|
||||
CurView().Retab(true)
|
||||
}
|
||||
|
||||
// TabSwitch switches to a given tab either by name or by number
|
||||
func TabSwitch(args []string) {
|
||||
if len(args) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user