|
75 | 75 | "fontPath": "dist/assets/icons.woff2",
|
76 | 76 | "fontCharacter": "\\e65b"
|
77 | 77 | }
|
| 78 | + }, |
| 79 | + "vscode-cnb-posts-list-search": { |
| 80 | + "description": "posts list search", |
| 81 | + "default": { |
| 82 | + "fontPath": "dist/assets/icons.woff2", |
| 83 | + "fontCharacter": "\\e610" |
| 84 | + } |
| 85 | + }, |
| 86 | + "vscode-cnb-posts-list-search-result-summary": { |
| 87 | + "description": "posts list search result summary", |
| 88 | + "default": { |
| 89 | + "fontPath": "dist/assets/icons.woff2", |
| 90 | + "fontCharacter": "\\e674" |
| 91 | + } |
78 | 92 | }
|
79 | 93 | },
|
80 | 94 | "commands": [
|
|
254 | 268 | "title": "提取图片",
|
255 | 269 | "category": "Cnblogs",
|
256 | 270 | "enablement": "vscode-cnb.isAuthorized"
|
| 271 | + }, |
| 272 | + { |
| 273 | + "command": "vscode-cnb.search-posts", |
| 274 | + "title": "搜索博文", |
| 275 | + "category": "Cnblogs", |
| 276 | + "icon": "$(vscode-cnb-posts-list-search)", |
| 277 | + "enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing" |
| 278 | + }, |
| 279 | + { |
| 280 | + "command": "vscode-cnb.clear-posts-search-results", |
| 281 | + "title": "清除随笔搜索结果", |
| 282 | + "category": "Cnblogs", |
| 283 | + "icon": "$(clear-all)", |
| 284 | + "enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing" |
| 285 | + }, |
| 286 | + { |
| 287 | + "command": "vscode-cnb.refresh-posts-search-results", |
| 288 | + "title": "刷新随笔搜索结果", |
| 289 | + "category": "Cnblogs", |
| 290 | + "icon": "$(refresh)", |
| 291 | + "enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list-refreshing" |
257 | 292 | }
|
258 | 293 | ],
|
259 | 294 | "configuration": [
|
|
400 | 435 | "when": "view == cnblogs-posts-list || view == cnblogs-posts-list-another",
|
401 | 436 | "group": "navigation@4"
|
402 | 437 | },
|
| 438 | + { |
| 439 | + "command": "vscode-cnb.search-posts", |
| 440 | + "when": "view == cnblogs-posts-list || view == cnblogs-posts-list-another", |
| 441 | + "group": "navigation@5" |
| 442 | + }, |
403 | 443 | {
|
404 | 444 | "command": "vscode-cnb.create-local-draft",
|
405 |
| - "group": "navigation@5", |
| 445 | + "group": "navigation@6", |
406 | 446 | "when": "view == cnblogs-posts-list || view == cnblogs-posts-list-another"
|
407 | 447 | },
|
408 | 448 | {
|
|
581 | 621 | {
|
582 | 622 | "command": "vscode-cnb.update-post-category",
|
583 | 623 | "when": "viewItem == cnb-post-category"
|
| 624 | + }, |
| 625 | + { |
| 626 | + "command": "vscode-cnb.refresh-posts-search-results", |
| 627 | + "when": "viewItem == cnblogs-posts-search-results-entry", |
| 628 | + "group": "inline@1" |
| 629 | + }, |
| 630 | + { |
| 631 | + "command": "vscode-cnb.clear-posts-search-results", |
| 632 | + "when": "viewItem == cnblogs-posts-search-results-entry", |
| 633 | + "group": "inline@2" |
| 634 | + }, |
| 635 | + { |
| 636 | + "command": "vscode-cnb.refresh-posts-search-results", |
| 637 | + "when": "viewItem == cnblogs-posts-search-results-entry", |
| 638 | + "group": "cnblogs-posts-search-results-entry@1" |
| 639 | + }, |
| 640 | + { |
| 641 | + "command": "vscode-cnb.clear-posts-search-results", |
| 642 | + "when": "viewItem == cnblogs-posts-search-results-entry", |
| 643 | + "group": "cnblogs-posts-search-results-entry@2" |
584 | 644 | }
|
585 | 645 | ],
|
586 | 646 | "editor/context": [
|
|
0 commit comments