-
Notifications
You must be signed in to change notification settings - Fork 2
/
definition_sublimemerge.go
44 lines (41 loc) · 1.3 KB
/
definition_sublimemerge.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package diff
func defineSublimeMerge() *ToolDefinition {
leftArgs := func(temp, target string) []string {
return []string{"mergetool", target, temp}
}
rightArgs := func(temp, target string) []string {
return []string{"mergetool", temp, target}
}
return &ToolDefinition{
Kind: SublimeMerge,
Url: "https://www.sublimemerge.com/",
Cost: Paid,
AutoRefresh: false,
IsMdi: true,
SupportsText: true,
RequiresTarget: true,
BinaryExtensions: []string{},
Osx: OsSettings{
TargetLeftArguments: leftArgs,
TargetRightArguments: rightArgs,
ExePaths: []string{
"/Applications/smerge.app/Contents/MacOS/smerge",
},
},
Windows: OsSettings{
TargetLeftArguments: leftArgs,
TargetRightArguments: rightArgs,
ExePaths: []string{
"%ProgramFiles%\\Sublime Merge\\smerge.exe",
},
},
Linux: OsSettings{
TargetLeftArguments: leftArgs,
TargetRightArguments: rightArgs,
ExePaths: []string{
"/usr/bin/smerge",
},
},
Notes: "While SublimeMerge is not MDI, it is treated as MDI since it uses a single shared process to managing multiple windows. As such it is not possible to close a Sublime merge process for a specific diff. [Vote for this feature](https://github.com/sublimehq/sublime_merge/issues/1168)",
}
}