|
@@ -52,6 +52,9 @@ function resolve(container: Container): Promise<void> {
|
|
|
// This requires an id and an instance of a command object.
|
|
|
let newTextFileId = 'file-operations:new-text-file';
|
|
|
let newTextFileCommand = new SimpleCommand({
|
|
|
+ category: 'File Operations',
|
|
|
+ text: 'New Text File',
|
|
|
+ caption: 'Create a new text file',
|
|
|
handler: () => {
|
|
|
browser.newUntitled('file', '.txt').then(
|
|
|
contents => opener.open(contents.path)
|
|
@@ -84,6 +87,9 @@ function resolve(container: Container): Promise<void> {
|
|
|
// Add the command for a new notebook.
|
|
|
let newNotebookId = 'file-operations:new-notebook';
|
|
|
let newNotebookCommand = new SimpleCommand({
|
|
|
+ category: 'File Operations',
|
|
|
+ text: 'New Notebook',
|
|
|
+ caption: 'Create a new Jupyter Notebook',
|
|
|
handler: () => {
|
|
|
browser.newUntitled('notebook').then(
|
|
|
contents => opener.open(contents.path)
|