Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize the use of ellipses in command and menu items #16237

Merged
merged 16 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
},
{
"id": "apputils:display-shortcuts",
"label": "Show Keyboard Shortcuts",
"label": "Show Keyboard Shortcuts",
"caption": "Show relevant keyboard shortcuts for the current active widget",
"shortcuts": [
"Ctrl Shift H"
Expand Down Expand Up @@ -1586,7 +1586,7 @@
},
{
"id": "notebook:close-and-shutdown",
"label": "Close and Shut Down Notebook",
"label": "Close and Shut Down Notebook",
"caption": "",
"shortcuts": []
},
Expand Down Expand Up @@ -2515,7 +2515,7 @@
},
{
"id": "workspace-ui:save",
"label": "Save Current Workspace",
"label": "Save Current Workspace",
"caption": "",
"shortcuts": []
},
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/apputils-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ const utilityCommands: JupyterFrontEndPlugin<void> = {
});

commands.addCommand(CommandIDs.displayShortcuts, {
label: trans.__('Show Keyboard Shortcuts'),
label: trans.__('Show Keyboard Shortcuts'),
caption: trans.__(
'Show relevant keyboard shortcuts for the current active widget'
),
Expand Down
2 changes: 1 addition & 1 deletion packages/notebook-extension/schema/export.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"rank": 10,
"submenu": {
"id": "jp-mainmenu-file-notebookexport",
"label": "Save and Export Notebook As"
"label": "Save and Export Notebook As"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,7 @@ function addCommands(
isEnabled
});
commands.addCommand(CommandIDs.closeAndShutdown, {
label: trans.__('Close and Shut Down Notebook'),
label: trans.__('Close and Shut Down Notebook'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is an ellipsis needed here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah because it shows a confirmation dialog.

execute: args => {
const current = getCurrent(tracker, shell, args);

Expand Down
2 changes: 1 addition & 1 deletion packages/workspaces-extension/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export const commandsPlugin: JupyterFrontEndPlugin<IWorkspaceCommands> = {
});

app.commands.addCommand(CommandIDs.save, {
label: trans.__('Save Current Workspace'),
label: trans.__('Save Current Workspace'),
execute: async () => {
const { contents } = app.serviceManager;
const data = app.serviceManager.workspaces.fetch(resolver.name);
Expand Down