mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 22:07:09 +09:00
Add horizontal splits
This commit is contained in:
@@ -19,6 +19,7 @@ var commandActions = map[string]func([]string){
|
||||
"Save": Save,
|
||||
"Replace": Replace,
|
||||
"VSplit": VSplit,
|
||||
"HSplit": HSplit,
|
||||
}
|
||||
|
||||
// InitCommands initializes the default commands
|
||||
@@ -58,12 +59,16 @@ func DefaultCommands() map[string]string {
|
||||
"save": "Save",
|
||||
"replace": "Replace",
|
||||
"vsplit": "VSplit",
|
||||
"hsplit": "HSplit",
|
||||
}
|
||||
}
|
||||
|
||||
func VSplit(args []string) {
|
||||
CurView().VSplit()
|
||||
}
|
||||
func HSplit(args []string) {
|
||||
CurView().HSplit()
|
||||
}
|
||||
|
||||
// Set sets an option
|
||||
func Set(args []string) {
|
||||
|
||||
Reference in New Issue
Block a user