Skip to content

Commit b77b0c5

Browse files
authored
ui(editor-context-menu): default not show publish selection to ing (#99)
1 parent 4841905 commit b77b0c5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,12 @@
150150

151151
<kbd><img src="https://img2022.cnblogs.com/blog/35695/202211/35695-20221123154326567-493446022.png" alt="" height="550"></kbd>
152152

153-
本插件支持对闪存进行**查看**, **发布**, **评论**等操作, 在侧边栏博客园视图中, 展开 `闪存` 即可
153+
本插件支持对闪存进行**查看**, **发布**, **评论**等操作, 在侧边栏博客园视图中, 展开 `闪存` 即可; 点击闪存标题栏中的加号图标可以发布新闪存;
154154

155-
点击闪存标题栏中的加号图标可以发布新闪存; 也可以在编辑器中选中一段文本或代码, 然后鼠标右键唤起上下文菜单, 可以将选中的内容发到闪存
155+
也可以在编辑器中选中一段文本或代码, 然后鼠标右键唤起上下文菜单, 可以将选中的内容发到闪存;
156+
157+
> PS: 上下文菜单的"将选中内容发到闪存"功能默认处于禁用, 您可以在vscode设置中启用此功能
158+
> <kbd><img src="https://img2023.cnblogs.com/blog/35695/202212/35695-20221215181640273-687396599.png" alt="demo-settings-enable-publish-selection-to-ing" height="550"></kbd>
156159
157160
<kbd><img src="https://img2022.cnblogs.com/blog/35695/202211/35695-20221115143017664-1504226894.png" alt="" height="550"></kbd>
158161

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@
455455
"default": true,
456456
"editPresentation": "singlelineText",
457457
"markdownDescription": "博客园markdown语法扩展: 代码块指定行高亮\n\n&nbsp;\n\n使用示例:\n\n```markdown\n\n```typescript {1, 3-4}\nconsole.log(1)\nconsole.log(2)\nconsole.log(3)\nconsole.log(4)\nconsole.log(5)\n```\n\n```"
458+
},
459+
"cnblogsClientForVSCode.ing.enablePublishSelectionToIng": {
460+
"order": 9,
461+
"type": "boolean",
462+
"scope": "application",
463+
"default": false,
464+
"markdownDescription": "是否允许将选中内容发到闪存\n\n启用后, 编辑上下文菜单将包含\"将选中内容发到闪存\""
458465
}
459466
}
460467
}
@@ -860,7 +867,8 @@
860867
},
861868
{
862869
"command": "vscode-cnb.ing.publish-selection",
863-
"group": "cnblogs@10"
870+
"group": "cnblogs@10",
871+
"when": "config.cnblogsClientForVSCode.ing.enablePublishSelectionToIng"
864872
}
865873
],
866874
"editor/title": [

0 commit comments

Comments
 (0)