Add boolean option to actions to disable the lua callback

This commit is contained in:
Zachary Yedidia
2016-08-17 14:16:27 -04:00
parent 8a58506c72
commit d17cc0f628
11 changed files with 395 additions and 250 deletions

View File

@@ -142,7 +142,7 @@ func HSplit(args []string) {
// NewTab opens the given file in a new tab
func NewTab(args []string) {
if len(args) == 0 {
CurView().AddTab()
CurView().AddTab(true)
} else {
filename := args[0]
home, _ := homedir.Dir()
@@ -191,13 +191,13 @@ func Run(args []string) {
// Quit closes the main view
func Quit(args []string) {
// Close the main view
CurView().Quit()
CurView().Quit(true)
}
// Save saves the buffer in the main view
func Save(args []string) {
// Save the main view
CurView().Save()
CurView().Save(true)
}
// Replace runs search and replace