Skip to content

Commit

Permalink
✨ Added support for Sublime Text 4
Browse files Browse the repository at this point in the history
  • Loading branch information
thom1606 committed Feb 19, 2025
1 parent 41f8ca8 commit bd6447b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
20 changes: 10 additions & 10 deletions Astrix.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
path = Resources;
sourceTree = "<group>";
};
844A9EDF2CEA435A00617787 /* Configuration */ = {
844CFC2E2D6496C800AAD0A0 /* Configuration */ = {
isa = PBXGroup;
children = (
844A9EE02CEA438600617787 /* Global.xcconfig */,
Expand All @@ -131,9 +131,9 @@
84A106402CE60CFD0081261A = {
isa = PBXGroup;
children = (
844CFC2E2D6496C800AAD0A0 /* Configuration */,
849AF73D2CEBC42D0095B2B1 /* .swiftlint.yml */,
842C8F132CEB332D0055DB9C /* Resources */,
844A9EDF2CEA435A00617787 /* Configuration */,
84A1064B2CE60CFD0081261A /* Astrix */,
84A1067B2CE623DA0081261A /* FinderTools */,
84A1064A2CE60CFD0081261A /* Products */,
Expand Down Expand Up @@ -441,7 +441,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = U6WA8YA735;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -455,7 +455,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.4;
MARKETING_VERSION = 1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thom1606.Astrix;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -475,7 +475,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = U6WA8YA735;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -489,7 +489,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.4;
MARKETING_VERSION = 1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thom1606.Astrix;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -507,7 +507,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = U6WA8YA735;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -522,7 +522,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thom1606.Astrix.FinderTools;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -541,7 +541,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = U6WA8YA735;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -556,7 +556,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thom1606.Astrix.FinderTools;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
6 changes: 4 additions & 2 deletions Astrix/Sources/Utilities/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ struct Constants {
(.vsCode, "Visual Studio Code"),
(.vsCodeInsiders, "Visual Studio Code (Insiders)"),
(.atom, "Atom"),
(.sublime, "Sublime Text"),
(.sublime4, "Sublime Text 4"),
(.sublime3, "Sublime Text 3"),
(.cursor, "Cursor"),
(.intelliJ, "IntelliJ IDEA"),
(.phpStorm, "PhpStorm"),
Expand Down Expand Up @@ -69,7 +70,8 @@ public enum SupportedApps: String, CaseIterable {
case vsCode = "com.microsoft.VSCode"
case vsCodeInsiders = "com.microsoft.VSCodeInsiders"
case atom = "com.github.atom"
case sublime = "com.sublimetext.3"
case sublime4 = "com.sublimetext.4"
case sublime3 = "com.sublimetext.3"
case cursor = "com.todesktop.230313mzl4w4u92"
case intelliJ = "com.jetbrains.intellij"
case phpStorm = "com.jetbrains.PhpStorm"
Expand Down
2 changes: 1 addition & 1 deletion Astrix/Sources/Utilities/Scripting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Scripting {
}

public func getFirstInstalledEditor() -> SupportedApps {
let editors: [SupportedApps] = [.cursor, .zed, .vsCodeInsiders, .vsCode, .atom, .sublime, .intelliJ, .phpStorm, .pyCharm, .rubyMine, .webStorm, .xcode, .androidStudio]
let editors: [SupportedApps] = [.cursor, .zed, .vsCodeInsiders, .vsCode, .atom, .sublime4, .sublime3, .intelliJ, .phpStorm, .pyCharm, .rubyMine, .webStorm, .xcode, .androidStudio]
for editor in editors where isAppInstalled(bundleIdentifier: editor.rawValue) {
return editor
}
Expand Down

0 comments on commit bd6447b

Please sign in to comment.