diff --git a/src/base-config/keyboard.json b/src/base-config/keyboard.json index 94b44cd21c..6516c802d0 100644 --- a/src/base-config/keyboard.json +++ b/src/base-config/keyboard.json @@ -330,7 +330,7 @@ "file.rename": [ "Shift-F2" ], - "help.support": [ + "help.docs": [ "Shift-F1" ], "recentProjects.toggle": [ diff --git a/src/command/Commands.js b/src/command/Commands.js index fbf9a1b68e..5b36e19538 100644 --- a/src/command/Commands.js +++ b/src/command/Commands.js @@ -155,12 +155,14 @@ define(function (require, exports, module) { // HELP exports.HELP_HOW_TO_USE_BRACKETS = "help.howToUseBrackets"; // HelpCommandHandlers.js _handleLinkMenuItem() + exports.HELP_DOCS = "help.docs"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_SUPPORT = "help.support"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_SUGGEST = "help.suggest"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_RELEASE_NOTES = "help.releaseNotes"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_GET_INVOLVED = "help.getInvolved"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_SHOW_EXT_FOLDER = "help.showExtensionsFolder"; // HelpCommandHandlers.js _handleShowExtensionsFolder() exports.HELP_HOMEPAGE = "help.homepage"; // HelpCommandHandlers.js _handleLinkMenuItem() + exports.HELP_YOUTUBE = "help.youtube"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_TWITTER = "help.twitter"; // HelpCommandHandlers.js _handleLinkMenuItem() exports.HELP_TOGGLE_SHORTCUTS_PANEL = "help.toggleShortcuts"; // shortcuts integrated extension exports.HELP_CHECK_UPDATES = "help.checkUpdates"; // shortcuts integrated extension diff --git a/src/command/DefaultMenus.js b/src/command/DefaultMenus.js index d0aaf9d582..821fd67ddd 100644 --- a/src/command/DefaultMenus.js +++ b/src/command/DefaultMenus.js @@ -246,9 +246,8 @@ define(function (require, exports, module) { * Help menu */ menu = Menus.addMenu(Strings.HELP_MENU, Menus.AppMenuBar.HELP_MENU); - if (brackets.config.support_url) { - menu.addMenuItem(Commands.HELP_SUPPORT); - } + menu.addMenuItem(Commands.HELP_DOCS); + menu.addMenuItem(Commands.HELP_SUPPORT); if (brackets.config.suggest_feature_url) { menu.addMenuItem(Commands.HELP_SUGGEST); } @@ -263,9 +262,8 @@ define(function (require, exports, module) { menu.addMenuDivider(); } - if (brackets.config.twitter_url) { - menu.addMenuItem(Commands.HELP_TWITTER); - } + menu.addMenuItem(Commands.HELP_YOUTUBE); + menu.addMenuItem(Commands.HELP_TWITTER); if (brackets.config.homepage_url) { menu.addMenuItem(Commands.HELP_HOMEPAGE); } diff --git a/src/config.json b/src/config.json index b3fd0544d1..1c0f6f620e 100644 --- a/src/config.json +++ b/src/config.json @@ -4,6 +4,7 @@ "app_name_about": "Phoenix Code", "about_icon": "styles/images/phoenix-icon.svg", "how_to_use_url": "https://github.com/adobe/brackets/wiki/How-to-Use-Brackets", + "docs_url": "https://docs.phcode.dev/", "support_url": "https://github.com/phcode-dev/phoenix/discussions", "suggest_feature_url": "https://github.com/phcode-dev/phoenix/discussions/categories/ideas", "get_involved_url": "https://github.com/phcode-dev/phoenix/discussions/77", @@ -11,6 +12,7 @@ "homepage_url": "https://phcode.io", "update_download_page": "https://phcode.io/", "twitter_url": "https://twitter.com/phcodedev", + "youtube_url": "https://www.youtube.com/channel/UCNK2a8DKqPQQe3GlfTk-RHg", "troubleshoot_url": "https://github.com/adobe/brackets/wiki/Troubleshooting#wiki-livedev", "twitter_name": "@phcodedev", "contributors_url": "https://api.github.com/repos/phcode-dev/phoenix/contributors?per_page={0}&page={1}", diff --git a/src/extensions/default/DebugCommands/main.js b/src/extensions/default/DebugCommands/main.js index 628eb81437..1124c1ec2b 100644 --- a/src/extensions/default/DebugCommands/main.js +++ b/src/extensions/default/DebugCommands/main.js @@ -838,7 +838,7 @@ define(function (require, exports, module) { _updateLogToConsoleMenuItemChecked(); const helpMenu = Menus.getMenu(Menus.AppMenuBar.HELP_MENU); - helpMenu.addMenuItem(DEBUG_SWITCH_LANGUAGE, "", Menus.BEFORE, Commands.HELP_TWITTER); + helpMenu.addMenuItem(DEBUG_SWITCH_LANGUAGE, "", Menus.BEFORE, Commands.HELP_YOUTUBE); helpMenu.addMenuDivider(Menus.AFTER, DEBUG_SWITCH_LANGUAGE); const fileMenu = Menus.getMenu(Menus.AppMenuBar.FILE_MENU); diff --git a/src/help/HelpCommandHandlers.js b/src/help/HelpCommandHandlers.js index 9a68d6d487..6200a43d39 100644 --- a/src/help/HelpCommandHandlers.js +++ b/src/help/HelpCommandHandlers.js @@ -161,6 +161,7 @@ define(function (require, exports, module) { }); CommandManager.register(Strings.CMD_HOW_TO_USE_BRACKETS, Commands.HELP_HOW_TO_USE_BRACKETS, _handleLinkMenuItem(brackets.config.how_to_use_url)); + CommandManager.register(Strings.CMD_DOCS, Commands.HELP_DOCS, _handleLinkMenuItem(brackets.config.docs_url)); CommandManager.register(Strings.CMD_SUPPORT, Commands.HELP_SUPPORT, _handleLinkMenuItem(brackets.config.support_url)); CommandManager.register(Strings.CMD_SUGGEST, Commands.HELP_SUGGEST, _handleLinkMenuItem(brackets.config.suggest_feature_url)); CommandManager.register(Strings.CMD_RELEASE_NOTES, Commands.HELP_RELEASE_NOTES, _handleLinkMenuItem(brackets.config.release_notes_url)); @@ -168,5 +169,6 @@ define(function (require, exports, module) { CommandManager.register(Strings.CMD_SHOW_EXTENSIONS_FOLDER, Commands.HELP_SHOW_EXT_FOLDER, _handleShowExtensionsFolder); CommandManager.register(Strings.CMD_HOMEPAGE, Commands.HELP_HOMEPAGE, _handleLinkMenuItem(brackets.config.homepage_url)); CommandManager.register(Strings.CMD_TWITTER, Commands.HELP_TWITTER, _handleLinkMenuItem(brackets.config.twitter_url)); + CommandManager.register(Strings.CMD_YOUTUBE, Commands.HELP_YOUTUBE, _handleLinkMenuItem(brackets.config.youtube_url)); CommandManager.register(Strings.CMD_ABOUT, Commands.HELP_ABOUT, _handleAboutDialog); }); diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 5108d0e23d..4dc1341984 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -576,6 +576,7 @@ define({ "CMD_AUTO_UPDATE": "Auto Update", "CMD_HOW_TO_USE_BRACKETS": "How to Use {APP_NAME}", "CMD_SUPPORT": "{APP_NAME} Support", + "CMD_DOCS": "Help, Getting Started", "CMD_SUGGEST": "Suggest a Feature", "CMD_RELEASE_NOTES": "Release Notes", "CMD_GET_INVOLVED": "Get Involved", @@ -583,6 +584,7 @@ define({ "CMD_HEALTH_DATA_STATISTICS": "Health Report\u2026", "CMD_HOMEPAGE": "Download Apps - Home Page", "CMD_TWITTER": "{TWITTER_NAME} on Twitter", + "CMD_YOUTUBE": "Youtube Channel", "CMD_ABOUT": "About {APP_TITLE}", "CMD_OPEN_PREFERENCES": "Open Preferences File", "CMD_OPEN_KEYMAP": "Open User Key Map File",