We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b21cc commit 5cb67eaCopy full SHA for 5cb67ea
python/jupytercad_core/src/jcadplugin/plugins.ts
@@ -126,7 +126,7 @@ const activate = (
126
});
127
128
app.commands.addCommand(CommandIDs.createNew, {
129
- label: args => 'CAD File',
+ label: args => (args['label'] as string) ?? 'CAD file',
130
caption: 'Create a new JCAD Editor',
131
icon: logoIcon,
132
execute: async args => {
@@ -180,6 +180,14 @@ const activate = (
180
181
}
182
183
+
184
+ // Inject “New JupyterCAD file” into the File Browser context menu
185
+ app.contextMenu.addItem({
186
+ command: CommandIDs.createNew,
187
+ selector: '.jp-DirListing',
188
+ rank: 55,
189
+ args: { label: 'New JupyterCAD file' }
190
+ });
191
};
192
193
const jcadPlugin: JupyterFrontEndPlugin<void> = {
0 commit comments