mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Quick first try at vertical splits
This commit is contained in:
@@ -18,6 +18,7 @@ var commandActions = map[string]func([]string){
|
||||
"Quit": Quit,
|
||||
"Save": Save,
|
||||
"Replace": Replace,
|
||||
"VSplit": VSplit,
|
||||
}
|
||||
|
||||
// InitCommands initializes the default commands
|
||||
@@ -56,9 +57,14 @@ func DefaultCommands() map[string]string {
|
||||
"quit": "Quit",
|
||||
"save": "Save",
|
||||
"replace": "Replace",
|
||||
"vsplit": "VSplit",
|
||||
}
|
||||
}
|
||||
|
||||
func VSplit(args []string) {
|
||||
CurView().VSplit()
|
||||
}
|
||||
|
||||
// Set sets an option
|
||||
func Set(args []string) {
|
||||
// Set an option and we have to set it for every view
|
||||
|
||||
Reference in New Issue
Block a user