|
2958 | 2958 | "light": "images/light/icon-compare-refs.svg" |
2959 | 2959 | } |
2960 | 2960 | }, |
| 2961 | + { |
| 2962 | + "command": "gitlens.views.repositories.setBranchesLayoutToList", |
| 2963 | + "title": "Toggle Branch Layout (Tree)", |
| 2964 | + "category": "GitLens", |
| 2965 | + "icon": { |
| 2966 | + "dark": "images/dark/icon-view-tree.svg", |
| 2967 | + "light": "images/light/icon-view-tree.svg" |
| 2968 | + } |
| 2969 | + }, |
| 2970 | + { |
| 2971 | + "command": "gitlens.views.repositories.setBranchesLayoutToTree", |
| 2972 | + "title": "Toggle Branch Layout (List)", |
| 2973 | + "category": "GitLens", |
| 2974 | + "icon": { |
| 2975 | + "dark": "images/dark/icon-view-list.svg", |
| 2976 | + "light": "images/light/icon-view-list.svg" |
| 2977 | + } |
| 2978 | + }, |
2961 | 2979 | { |
2962 | 2980 | "command": "gitlens.views.repositories.setFilesLayoutToAuto", |
2963 | | - "title": "Automatic Layout", |
2964 | | - "category": "GitLens" |
| 2981 | + "title": "Toggle File Layout (Tree)", |
| 2982 | + "category": "GitLens", |
| 2983 | + "icon": { |
| 2984 | + "dark": "images/dark/icon-view-tree.svg", |
| 2985 | + "light": "images/light/icon-view-tree.svg" |
| 2986 | + } |
2965 | 2987 | }, |
2966 | 2988 | { |
2967 | 2989 | "command": "gitlens.views.repositories.setFilesLayoutToList", |
2968 | | - "title": "List Layout", |
2969 | | - "category": "GitLens" |
| 2990 | + "title": "Toggle File Layout (Auto)", |
| 2991 | + "category": "GitLens", |
| 2992 | + "icon": { |
| 2993 | + "dark": "images/dark/icon-view-auto.svg", |
| 2994 | + "light": "images/light/icon-view-auto.svg" |
| 2995 | + } |
2970 | 2996 | }, |
2971 | 2997 | { |
2972 | 2998 | "command": "gitlens.views.repositories.setFilesLayoutToTree", |
2973 | | - "title": "Tree Layout", |
2974 | | - "category": "GitLens" |
| 2999 | + "title": "Toggle File Layout (List)", |
| 3000 | + "category": "GitLens", |
| 3001 | + "icon": { |
| 3002 | + "dark": "images/dark/icon-view-list.svg", |
| 3003 | + "light": "images/light/icon-view-list.svg" |
| 3004 | + } |
2975 | 3005 | }, |
2976 | 3006 | { |
2977 | 3007 | "command": "gitlens.views.repositories.setAutoRefreshToOn", |
|
3105 | 3135 | { |
3106 | 3136 | "command": "gitlens.views.compare.setFilesLayoutToAuto", |
3107 | 3137 | "title": "Automatic Layout", |
3108 | | - "category": "GitLens" |
| 3138 | + "category": "GitLens", |
| 3139 | + "icon": { |
| 3140 | + "dark": "images/dark/icon-view-tree.svg", |
| 3141 | + "light": "images/light/icon-view-tree.svg" |
| 3142 | + } |
3109 | 3143 | }, |
3110 | 3144 | { |
3111 | 3145 | "command": "gitlens.views.compare.setFilesLayoutToList", |
3112 | 3146 | "title": "List Layout", |
3113 | | - "category": "GitLens" |
| 3147 | + "category": "GitLens", |
| 3148 | + "icon": { |
| 3149 | + "dark": "images/dark/icon-view-auto.svg", |
| 3150 | + "light": "images/light/icon-view-auto.svg" |
| 3151 | + } |
3114 | 3152 | }, |
3115 | 3153 | { |
3116 | 3154 | "command": "gitlens.views.compare.setFilesLayoutToTree", |
3117 | 3155 | "title": "Tree Layout", |
3118 | | - "category": "GitLens" |
| 3156 | + "category": "GitLens", |
| 3157 | + "icon": { |
| 3158 | + "dark": "images/dark/icon-view-list.svg", |
| 3159 | + "light": "images/light/icon-view-list.svg" |
| 3160 | + } |
3119 | 3161 | }, |
3120 | 3162 | { |
3121 | 3163 | "command": "gitlens.views.compare.setKeepResultsToOn", |
|
3192 | 3234 | { |
3193 | 3235 | "command": "gitlens.views.search.setFilesLayoutToAuto", |
3194 | 3236 | "title": "Automatic Layout", |
3195 | | - "category": "GitLens" |
| 3237 | + "category": "GitLens", |
| 3238 | + "icon": { |
| 3239 | + "dark": "images/dark/icon-view-tree.svg", |
| 3240 | + "light": "images/light/icon-view-tree.svg" |
| 3241 | + } |
3196 | 3242 | }, |
3197 | 3243 | { |
3198 | 3244 | "command": "gitlens.views.search.setFilesLayoutToList", |
3199 | 3245 | "title": "List Layout", |
3200 | | - "category": "GitLens" |
| 3246 | + "category": "GitLens", |
| 3247 | + "icon": { |
| 3248 | + "dark": "images/dark/icon-view-auto.svg", |
| 3249 | + "light": "images/light/icon-view-auto.svg" |
| 3250 | + } |
3201 | 3251 | }, |
3202 | 3252 | { |
3203 | 3253 | "command": "gitlens.views.search.setFilesLayoutToTree", |
3204 | 3254 | "title": "Tree Layout", |
3205 | | - "category": "GitLens" |
| 3255 | + "category": "GitLens", |
| 3256 | + "icon": { |
| 3257 | + "dark": "images/dark/icon-view-list.svg", |
| 3258 | + "light": "images/light/icon-view-list.svg" |
| 3259 | + } |
3206 | 3260 | }, |
3207 | 3261 | { |
3208 | 3262 | "command": "gitlens.views.search.setKeepResultsToOn", |
|
3838 | 3892 | "command": "gitlens.views.repositories.setBranchComparisonToBranch", |
3839 | 3893 | "when": "false" |
3840 | 3894 | }, |
| 3895 | + { |
| 3896 | + "command": "gitlens.views.repositories.setBranchesLayoutToList", |
| 3897 | + "when": "false" |
| 3898 | + }, |
| 3899 | + { |
| 3900 | + "command": "gitlens.views.repositories.setBranchesLayoutToTree", |
| 3901 | + "when": "false" |
| 3902 | + }, |
3841 | 3903 | { |
3842 | 3904 | "command": "gitlens.views.repositories.setFilesLayoutToAuto", |
3843 | 3905 | "when": "false" |
|
4312 | 4374 | "group": "navigation@12" |
4313 | 4375 | }, |
4314 | 4376 | { |
4315 | | - "command": "gitlens.views.repositories.refresh", |
4316 | | - "when": "view =~ /^gitlens\\.views\\.repositories:/", |
4317 | | - "group": "navigation@99" |
| 4377 | + "command": "gitlens.views.repositories.setFilesLayoutToList", |
| 4378 | + "when": "view =~ /^gitlens\\.views\\.repositories:/ && config.gitlens.views.repositories.files.layout == auto", |
| 4379 | + "group": "navigation@13" |
4318 | 4380 | }, |
4319 | 4381 | { |
4320 | | - "command": "gitlens.views.repositories.setFilesLayoutToAuto", |
4321 | | - "when": "view =~ /^gitlens\\.views\\.repositories:/", |
4322 | | - "group": "1_gitlens" |
| 4382 | + "command": "gitlens.views.repositories.setFilesLayoutToTree", |
| 4383 | + "when": "view =~ /^gitlens\\.views\\.repositories:/ && config.gitlens.views.repositories.files.layout == list", |
| 4384 | + "group": "navigation@13" |
4323 | 4385 | }, |
4324 | 4386 | { |
4325 | | - "command": "gitlens.views.repositories.setFilesLayoutToList", |
4326 | | - "when": "view =~ /^gitlens\\.views\\.repositories:/", |
4327 | | - "group": "1_gitlens" |
| 4387 | + "command": "gitlens.views.repositories.setFilesLayoutToAuto", |
| 4388 | + "when": "view =~ /^gitlens\\.views\\.repositories:/ && config.gitlens.views.repositories.files.layout == tree", |
| 4389 | + "group": "navigation@13" |
4328 | 4390 | }, |
4329 | 4391 | { |
4330 | | - "command": "gitlens.views.repositories.setFilesLayoutToTree", |
| 4392 | + "command": "gitlens.views.repositories.refresh", |
4331 | 4393 | "when": "view =~ /^gitlens\\.views\\.repositories:/", |
4332 | | - "group": "1_gitlens" |
| 4394 | + "group": "navigation@99" |
4333 | 4395 | }, |
4334 | 4396 | { |
4335 | 4397 | "command": "gitlens.views.repositories.setAutoRefreshToOn", |
|
4417 | 4479 | "group": "navigation@11" |
4418 | 4480 | }, |
4419 | 4481 | { |
4420 | | - "command": "gitlens.views.compare.clear", |
4421 | | - "when": "view =~ /^gitlens\\.views\\.compare:/", |
4422 | | - "group": "navigation@98" |
| 4482 | + "command": "gitlens.views.compare.setFilesLayoutToList", |
| 4483 | + "when": "view =~ /^gitlens\\.views\\.compare:/ && config.gitlens.views.compare.files.layout == auto", |
| 4484 | + "group": "navigation@12" |
4423 | 4485 | }, |
4424 | 4486 | { |
4425 | | - "command": "gitlens.views.compare.refresh", |
4426 | | - "when": "view =~ /^gitlens\\.views\\.compare:/", |
4427 | | - "group": "navigation@99" |
| 4487 | + "command": "gitlens.views.compare.setFilesLayoutToTree", |
| 4488 | + "when": "view =~ /^gitlens\\.views\\.compare:/ && config.gitlens.views.compare.files.layout == list", |
| 4489 | + "group": "navigation@12" |
4428 | 4490 | }, |
4429 | 4491 | { |
4430 | 4492 | "command": "gitlens.views.compare.setFilesLayoutToAuto", |
4431 | | - "when": "view =~ /^gitlens\\.views\\.compare:/", |
4432 | | - "group": "1_gitlens" |
| 4493 | + "when": "view =~ /^gitlens\\.views\\.compare:/ && config.gitlens.views.compare.files.layout == tree", |
| 4494 | + "group": "navigation@12" |
4433 | 4495 | }, |
4434 | 4496 | { |
4435 | | - "command": "gitlens.views.compare.setFilesLayoutToList", |
| 4497 | + "command": "gitlens.views.compare.clear", |
4436 | 4498 | "when": "view =~ /^gitlens\\.views\\.compare:/", |
4437 | | - "group": "1_gitlens" |
| 4499 | + "group": "navigation@98" |
4438 | 4500 | }, |
4439 | 4501 | { |
4440 | | - "command": "gitlens.views.compare.setFilesLayoutToTree", |
| 4502 | + "command": "gitlens.views.compare.refresh", |
4441 | 4503 | "when": "view =~ /^gitlens\\.views\\.compare:/", |
4442 | | - "group": "1_gitlens" |
| 4504 | + "group": "navigation@99" |
4443 | 4505 | }, |
4444 | 4506 | { |
4445 | 4507 | "command": "gitlens.views.search.searchCommits", |
|
4457 | 4519 | "group": "navigation@11" |
4458 | 4520 | }, |
4459 | 4521 | { |
4460 | | - "command": "gitlens.views.search.clear", |
4461 | | - "when": "view =~ /^gitlens\\.views\\.search:/", |
4462 | | - "group": "navigation@98" |
| 4522 | + "command": "gitlens.views.search.setFilesLayoutToList", |
| 4523 | + "when": "view =~ /^gitlens\\.views\\.search:/ && config.gitlens.views.search.files.layout == auto", |
| 4524 | + "group": "navigation@12" |
4463 | 4525 | }, |
4464 | 4526 | { |
4465 | | - "command": "gitlens.views.search.refresh", |
4466 | | - "when": "view =~ /^gitlens\\.views\\.search:/", |
4467 | | - "group": "navigation@99" |
| 4527 | + "command": "gitlens.views.search.setFilesLayoutToTree", |
| 4528 | + "when": "view =~ /^gitlens\\.views\\.search:/ && config.gitlens.views.search.files.layout == list", |
| 4529 | + "group": "navigation@12" |
4468 | 4530 | }, |
4469 | 4531 | { |
4470 | 4532 | "command": "gitlens.views.search.setFilesLayoutToAuto", |
4471 | | - "when": "view =~ /^gitlens\\.views\\.search:/", |
4472 | | - "group": "1_gitlens" |
| 4533 | + "when": "view =~ /^gitlens\\.views\\.search:/ && config.gitlens.views.search.files.layout == tree", |
| 4534 | + "group": "navigation@12" |
4473 | 4535 | }, |
4474 | 4536 | { |
4475 | | - "command": "gitlens.views.search.setFilesLayoutToList", |
| 4537 | + "command": "gitlens.views.search.clear", |
4476 | 4538 | "when": "view =~ /^gitlens\\.views\\.search:/", |
4477 | | - "group": "1_gitlens" |
| 4539 | + "group": "navigation@98" |
4478 | 4540 | }, |
4479 | 4541 | { |
4480 | | - "command": "gitlens.views.search.setFilesLayoutToTree", |
| 4542 | + "command": "gitlens.views.search.refresh", |
4481 | 4543 | "when": "view =~ /^gitlens\\.views\\.search:/", |
4482 | | - "group": "1_gitlens" |
| 4544 | + "group": "navigation@99" |
4483 | 4545 | }, |
4484 | 4546 | { |
4485 | 4547 | "command": "gitlens.supportGitLens", |
|
4513 | 4575 | } |
4514 | 4576 | ], |
4515 | 4577 | "view/item/context": [ |
| 4578 | + { |
| 4579 | + "command": "gitlens.views.repositories.setBranchesLayoutToList", |
| 4580 | + "when": "viewItem =~ /gitlens:branches\\b/ && config.gitlens.views.repositories.branches.layout == tree", |
| 4581 | + "group": "inline@1" |
| 4582 | + }, |
| 4583 | + { |
| 4584 | + "command": "gitlens.views.repositories.setBranchesLayoutToTree", |
| 4585 | + "when": "viewItem =~ /gitlens:branches\\b/ && config.gitlens.views.repositories.branches.layout == list", |
| 4586 | + "group": "inline@1" |
| 4587 | + }, |
4516 | 4588 | { |
4517 | 4589 | "command": "gitlens.openBranchesInRemote", |
4518 | 4590 | "when": "viewItem =~ /gitlens:branches\\b(?=.*?\\b\\+remotes\\b)/", |
|
0 commit comments