diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 10:05:39 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 10:21:53 +1000 |
commit | 9f4433d8b55e1878610fd06d39ffd3ffaa623e79 (patch) | |
tree | 602370b2f03da4004ee77948170f1db2a0aaa40b /pkg/gui/files_panel.go | |
parent | 2d8f7d2a7b9efa2767a4ec00878c8027e267d045 (diff) |
allow opening merge tool
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 7d73f3d5b..f84d0c492 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -879,3 +879,15 @@ func (gui *Gui) handleToggleFileTreeView() error { return nil } + +func (gui *Gui) handleOpenMergeTool() error { + return gui.ask(askOpts{ + title: gui.Tr.MergeToolTitle, + prompt: gui.Tr.MergeToolPrompt, + handleConfirm: func() error { + return gui.runSubprocessWithSuspenseAndRefresh( + gui.OSCommand.ExecutableFromString(gui.GitCommand.OpenMergeToolCmd()), + ) + }, + }) +} |