Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 78eb8cf

Browse files
committed
Merge branch 'master' into alf_localization_1.14
2 parents 950e72a + b4abc5a commit 78eb8cf

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/extensions/default/OpenWithExternalApplication/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@ define(function (require, exports, module) {
4848

4949
var extensionToExtApplicationMap = {};
5050

51+
function convertUnixPathToWindowsPath(path) {
52+
if (brackets.platform === "win" && path && path[1] === ":" && path[2] === "/") {
53+
path = path.replace(RegExp('/','g'), '\\');
54+
}
55+
return path;
56+
}
57+
5158
function _openWithExternalApplication(event, path) {
5259
_nodeDomain.exec("open", {
53-
path: path,
60+
path: convertUnixPathToWindowsPath(path),
5461
app: extensionToExtApplicationMap[FileUtils.getFileExtension(path).toLowerCase()]
5562
});
5663
}

src/nls/root/strings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,11 @@ define({
906906
"REMOTE_DEBUGGING_PORT_INVALID" : "Cannot enable remote debugging on port {0}. Port numbers should be between {1} and {2}.",
907907

908908
//Associate File Type to External App
909-
"DESCRIPTION_EXTERNAL_APPLICATION_ASSOCIATE" : "Associate File type to external App settings. e.g { \"<file_type>\": \"<app_name>\" } app_name is OS dependant, for example \"google chrome\" on macOS and \"chrome\" on Windows. app_name can also be given as \"default\" for OS default application.",
909+
"DESCRIPTION_EXTERNAL_APPLICATION_ASSOCIATE" : "Mappings for file extension to external applications. Syntax: \"<file_type>\": \"<default|applicationName|ApplicationPath>\", Use \"default\" to open files in system default application for the file type.",
910910

911911
"ASSOCIATE_GRAPHICS_FILE_TO_DEFAULT_APP_TITLE" : "Open Graphic Files in External Editors.",
912-
"ASSOCIATE_GRAPHICS_FILE_TO_DEFAULT_APP_MSG" : "Your current folder has graphic file types which are not supported by Brackets.<br/>You can now associate specific file types with external editors. Once associated, you can open graphic files like .xd, .psd, .jpg, .png, .ai, .svg in their default applications by double clicking on the files in File Tree.<br/><br/>Please click on ‘Ok’ button to associate the graphic file types with their respective default applications.",
913-
"ASSOCIATE_GRAPHICS_FILE_TO_DEFAULT_APP_CNF_MSG" : "Following file types have been successfully associated with default applications.<br/>{0} You can further add new file type associations or customize in brackets.json by going to “Debug->Open Preferences File” menu."
912+
"ASSOCIATE_GRAPHICS_FILE_TO_DEFAULT_APP_MSG" : "Your current folder has graphic file types which are not supported by {APP_NAME}.<br/>You can now associate specific file types with external editors. Once associated, you can open graphic files like .xd, .psd, .jpg, .png, .ai, .svg in their default applications by double clicking on the files in File Tree.<br/><br/>Please click on ‘Ok’ button to associate the graphic file types with their respective default applications.",
913+
"ASSOCIATE_GRAPHICS_FILE_TO_DEFAULT_APP_CNF_MSG" : "Following file types have been successfully associated with default applications.<br/>{0} You have the option to change your preference on whether you delete/add new file type associations in brackets.json by going to “Debug->Open Preferences File” menu."
914914

915915

916916
});

0 commit comments

Comments
 (0)