Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/API-Reference/command/CommandManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ use \uXXXX instead of an HTML entity.
| Param | Type | Description |
| --- | --- | --- |
| name | <code>string</code> | |
| htmlName | <code>string</code> | If set, this will be displayed in ui menus instead of the name given. Eg. "Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>" |
| htmlName | <code>string</code> | If set, this will be displayed in ui menus instead of the name given. Example: `"Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"` |

<a name="Command+getName"></a>

Expand Down Expand Up @@ -164,7 +164,7 @@ Registers a global command.
| commandFn | <code>function</code> | the function to call when the command is executed. Any arguments passed to execute() (after the id) are passed as arguments to the function. If the function is asynchronous, it must return a jQuery promise that is resolved when the command completes. Otherwise, the CommandManager will assume it is synchronous, and return a promise that is already resolved. |
| [options] | <code>Object</code> | |
| options.eventSource | <code>boolean</code> | If set to true, the commandFn will be called with the first argument `event` with details about the source(invoker) as event.eventSource(one of the `CommandManager.SOURCE_*`) and event.sourceType(Eg. Ctrl-K) parameter. |
| options.htmlName | <code>string</code> | If set, this will be displayed in ui menus instead of the name given. Eg. "Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>" |
| options.htmlName | <code>string</code> | If set, this will be displayed in ui menus instead of the name given. Example: `"Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"` |

<a name="registerInternal"></a>

Expand Down
22 changes: 11 additions & 11 deletions src/assets/default-project/en/Newly_added_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We are continuously adding features every week to improve the life of web develo

Here's a list of top features recently added to Phoenix:

<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/git">Git for Desktop</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/git">Git for Desktop</a></h2>

`Added on January, 2025`

Expand All @@ -21,7 +21,7 @@ Now available in the Windows, Mac and Linux desktop apps of Phoenix code.
![Image](https://github.com/user-attachments/assets/6e7b9faf-d57b-448b-a5bb-a111c67489b5)


<h2><a target="_blank" href="https://docs.phcode.dev/docs/editing-colors#color-preview">Color Previews</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/color-preview">Color Previews</a></h2>

`Added on December, 2024`

Expand All @@ -39,7 +39,7 @@ Windows, macOS, and Linux desktop apps!

![Image](https://github.com/user-attachments/assets/710330ae-8b34-4a51-a1f9-4c02736ed9bd)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/editing-text#line-height">Customizable Editor Line Height</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/extn-line-height">Customizable Editor Line Height</a></h2>

`Added on November, 2024`

Expand All @@ -50,7 +50,7 @@ Also added a `Get More...` button to the Themes dialog, linking directly to the

![image](https://github.com/user-attachments/assets/97a46d9a-e971-401d-8a77-015afa6d5972)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/editing-text#indent-guide-lines">Indent Guide Lines</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/indent-guide-lines">Indent Guide Lines</a></h2>

`Added on October, 2024`

Expand All @@ -59,15 +59,15 @@ be toggled via `View > Indent Guide Lines`.

![image](https://github.com/user-attachments/assets/3d9d0c55-3c9e-4ab3-bbc0-53b563d19e39)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/editing-text/#auto-space-detection">Auto Tab and Spacing Detection</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/auto-space-detection">Auto Tab and Spacing Detection</a></h2>

`Added on August, 2024`

Phoenix Code can now automatically detect and apply the indentation style (tabs or spaces) based on the existing code in the file.

![image](https://github.com/user-attachments/assets/0adc47c5-a561-4002-bffb-d7bcde999b9d)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/editing-text/#auto-rename-tag">Auto rename start and end of HTML/XML/SVG tags</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/auto-rename-tag">Auto rename start and end of HTML/XML/SVG tags</a></h2>

`Added on July, 2024`

Expand Down Expand Up @@ -101,7 +101,7 @@ Code to open individual files. Drop a folder to open it as a project.

![drag and drop](https://github.com/phcode-dev/phoenix/assets/5336369/ddd96ff7-bc99-46a6-a62d-6f6f5b78438b)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/Problems%20Panel/html-lint/">HTML Validation</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/html-lint">HTML Validation</a></h2>

`Added on June, 2024`

Expand All @@ -110,7 +110,7 @@ unrecognized tags, and more.

![HTML validate](https://github.com/phcode-dev/phoenix/assets/5336369/5bc4a1cc-2429-477c-83ca-91f19dcc0b0f)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/Problems%20Panel/ESLint/">ESLint Support</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/ESLint">ESLint Support</a></h2>

`Added on June, 2024`

Expand All @@ -130,7 +130,7 @@ CSS files and inline CSS styles/class names in HTML files. This provides an inst

![classLiveHints](https://github.com/phcode-dev/phoenix/assets/5336369/502c8751-5269-4c34-9178-5ad08f8ad837)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/Live%20Preview/live-preview-settings">Custom Live Preview Servers</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/live-preview-settings">Custom Live Preview Servers</a></h2>

`Added on April, 2024`

Expand All @@ -154,7 +154,7 @@ detection for CSS, SCSS, and LESS files.
![image](https://github.com/phcode-dev/phoenix/assets/5336369/9c083bd3-9e34-418d-a1c8-c152393c37b2)


<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/editor-rulers/">Editor Rulers</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/editor-rulers">Editor Rulers</a></h2>

`Added on April, 2024`

Expand All @@ -163,7 +163,7 @@ lengths.

![image](https://github.com/phcode-dev/phoenix/assets/5336369/71b8b04c-d2ca-47b8-84bb-53cd0fb4593c)

<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/find-in-files/">Search Filters - Advanced find in files</a></h2>
<h2><a target="_blank" href="https://docs.phcode.dev/app-links/find-in-files">Search Filters - Advanced find in files</a></h2>

`Added on March, 2024`

Expand Down
5 changes: 3 additions & 2 deletions src/command/CommandManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ define(function (require, exports, module) {
*
* @param {string} name
* @param {string} htmlName If set, this will be displayed in ui menus instead of the name given.
* Eg. "Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"
* Example: `"Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"`
*/
Command.prototype.setName = function (name, htmlName) {
let changed = this._name !== name;
Expand Down Expand Up @@ -249,7 +249,8 @@ define(function (require, exports, module) {
* with details about the source(invoker) as event.eventSource(one of the `CommandManager.SOURCE_*`) and
* event.sourceType(Eg. Ctrl-K) parameter.
* @param {string} options.htmlName If set, this will be displayed in ui menus instead of the name given.
* Eg. "Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"
* Example: `"Phoenix menu<i class='fa fa-car' style='margin-left: 4px;'></i>"`
*
* @return {?Command}
*/
function register(name, id, commandFn, options={}) {
Expand Down
12 changes: 12 additions & 0 deletions src/extensions/default/DefaultExtensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
"github-Pluto-custom-line-height"
]
},
"deprecatedExtensions": {
"description": "list extension ids that you want to show a dialog once that the extension is deprecated when installed from extension store or has already been installed.",
"note": "use this only is we add support for the extension in core directly and has an alternative. dialog says: The following installed extensions are natively supported by phoenix and is recommended to remove it. The url is the documentation link for the feature replacing the extension feature.",
"extensionIDsAndDocs": {
"bib-locked-live-preview": "https://docs.phcode.dev/app-links/live-preview",
"brackets-display-shortcuts": "https://docs.phcode.dev/app-links/keyboard-shortcuts",
"changing-tags": "https://docs.phcode.dev/app-links/auto-rename-tag",
"brackets-indent-guides": "https://docs.phcode.dev/app-links/indent-guide-lines",
"brackets-emmet": "https://docs.phcode.dev/app-links/emmet",
"github-Pluto-custom-line-height": "https://docs.phcode.dev/app-links/extn-line-height"
}
},
"dontLoadExtensions": {
"note": "To take down any compromised extensions, see `extensionTakedownURL` in repo"
}
Expand Down
2 changes: 1 addition & 1 deletion src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ define({
"ERROR_FETCH_REMOTE": "Fetching remote information failed",
"ERROR_PREPARING_COMMIT_DIALOG": "Preparing commit dialog failed",
"GIT_TOAST_TITLE": "Explore Git Features in Phoenix Code",
"GIT_TOAST_MESSAGE": "Click the Git panel icon to manage your repository. Easily commit, push, pull, and view your project history—all in one place.<br><a href='https://docs.phcode.dev/docs/Features/git'>Learn more about the Git panel →</a>",
"GIT_TOAST_MESSAGE": "Click the Git panel icon to manage your repository. Easily commit, push, pull, and view your project history—all in one place.<br><a href='https://docs.phcode.dev/app-links/git'>Learn more about the Git panel →</a>",

// surveys
"SURVEY_TITLE_VOTE_FOR_FEATURES_YOU_WANT": "Vote for the features you want to see next!",
Expand Down
Loading