Jelajahi Sumber

Move shortcuts for docmanager.

Afshin Darian 6 tahun lalu
induk
melakukan
75076bff30

+ 25 - 2
packages/docmanager-extension/schema/plugin.json

@@ -1,8 +1,31 @@
 {
-  "jupyter.lab.setting-icon-class": "jp-FileIcon",
-  "jupyter.lab.setting-icon-label": "Document Manager",
   "title": "Document Manager",
   "description": "Document Manager settings.",
+  "jupyter.lab.setting-icon-class": "jp-FileIcon",
+  "jupyter.lab.setting-icon-label": "Document Manager",
+  "jupyter.lab.shortcuts": [
+    {
+      "command": "docmanager:close",
+      "keys": ["Ctrl Q"],
+      "selector": ".jp-Activity",
+      "title": "Close Activity",
+      "category": "File Operations"
+    },
+    {
+      "command": "docmanager:save",
+      "keys": ["Accel S"],
+      "selector": "body",
+      "title": "Save",
+      "category": "File Operations"
+    },
+    {
+      "command": "docmanager:save-as",
+      "keys": ["Accel Shift S"],
+      "selector": "body",
+      "title": "Save As",
+      "category": "File Operations"
+    }
+  ],
   "properties": {
     "autosave": {
       "type": "boolean",

+ 0 - 33
packages/shortcuts-extension/schema/plugin.json

@@ -4,39 +4,6 @@
   "title": "Keyboard Shortcuts",
   "description": "Keyboard shortcut settings for JupyterLab.",
   "properties": {
-    "docmanager:close": {
-      "default": {},
-      "properties": {
-        "command": { "default": "docmanager:close" },
-        "keys": { "default": ["Ctrl Q"] },
-        "selector": { "default": ".jp-Activity" },
-        "title": { "default": "Close Activity" },
-        "category": { "default": "File Operations" }
-      },
-      "type": "object"
-    },
-    "docmanager:save": {
-      "default": {},
-      "properties": {
-        "command": { "default": "docmanager:save" },
-        "keys": { "default": ["Accel S"] },
-        "selector": { "default": "body" },
-        "title": { "default": "Save" },
-        "category": { "default": "File Operations" }
-      },
-      "type": "object"
-    },
-    "docmanager:save-as": {
-      "default": {},
-      "properties": {
-        "command": { "default": "docmanager:save-as" },
-        "keys": { "default": ["Accel Shift S"] },
-        "selector": { "default": "body" },
-        "title": { "default": "Save As" },
-        "category": { "default": "File Operations" }
-      },
-      "type": "object"
-    },
     "filebrowser:create-main-launcher": {
       "default": {},
       "properties": {