mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Rearranges context menu commands
This commit is contained in:
100
package.json
100
package.json
@@ -593,25 +593,25 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"explorer/context": [
|
"explorer/context": [
|
||||||
{
|
|
||||||
"command": "gitlens.showQuickFileHistory",
|
|
||||||
"when": "gitlens:enabled",
|
|
||||||
"group": "gitlens@1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "gitlens.openFileInRemote",
|
|
||||||
"when": "gitlens:enabled && gitlens:hasRemotes",
|
|
||||||
"group": "gitlens@2"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithPrevious",
|
"command": "gitlens.diffWithPrevious",
|
||||||
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "gitlens_diff"
|
"group": "1_gitlens@1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithWorking",
|
"command": "gitlens.diffWithWorking",
|
||||||
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "gitlens_diff"
|
"group": "1_gitlens@2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.showQuickFileHistory",
|
||||||
|
"when": "gitlens:enabled",
|
||||||
|
"group": "1_gitlens_1@1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.openFileInRemote",
|
||||||
|
"when": "gitlens:enabled && gitlens:hasRemotes",
|
||||||
|
"group": "1_gitlens_1@2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"editor/title": [
|
"editor/title": [
|
||||||
@@ -620,42 +620,57 @@
|
|||||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||||
"group": "navigation@100"
|
"group": "navigation@100"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"command": "gitlens.showQuickFileHistory",
|
|
||||||
"when": "editorFocus && gitlens:enabled",
|
|
||||||
"group": "gitlens"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "gitlens.showQuickRepoHistory",
|
|
||||||
"when": "!editorFocus && gitlens:enabled",
|
|
||||||
"group": "gitlens"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "gitlens.showQuickRepoStatus",
|
|
||||||
"when": "gitlens:enabled",
|
|
||||||
"group": "gitlens"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithPrevious",
|
"command": "gitlens.diffWithPrevious",
|
||||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "gitlens_diff"
|
"group": "2_gitlens"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithWorking",
|
"command": "gitlens.diffWithWorking",
|
||||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "gitlens_diff"
|
"group": "2_gitlens"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.showQuickFileHistory",
|
||||||
|
"when": "editorFocus && gitlens:enabled",
|
||||||
|
"group": "2_gitlens_1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.showQuickRepoHistory",
|
||||||
|
"when": "!editorFocus && gitlens:enabled",
|
||||||
|
"group": "2_gitlens_1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.showQuickRepoStatus",
|
||||||
|
"when": "gitlens:enabled",
|
||||||
|
"group": "2_gitlens_1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"editor/title/context": [
|
"editor/title/context": [
|
||||||
{
|
{
|
||||||
"command": "gitlens.toggleBlame",
|
"command": "gitlens.diffWithPrevious",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "gitlens@1"
|
"group": "1_gitlens@1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.diffWithWorking",
|
||||||
|
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
|
"group": "1_gitlens@2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showQuickFileHistory",
|
"command": "gitlens.showQuickFileHistory",
|
||||||
"when": "gitlens:enabled",
|
"when": "gitlens:enabled",
|
||||||
"group": "gitlens@2"
|
"group": "1_gitlens_1@1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.toggleBlame",
|
||||||
|
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||||
|
"group": "1_gitlens_1@2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.openFileInRemote",
|
||||||
|
"when": "gitlens:enabled && gitlens:hasRemotes",
|
||||||
|
"group": "1_gitlens_1@3"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"editor/context": [
|
"editor/context": [
|
||||||
@@ -677,23 +692,28 @@
|
|||||||
{
|
{
|
||||||
"command": "gitlens.diffWithPrevious",
|
"command": "gitlens.diffWithPrevious",
|
||||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "1_gitlens-file@1"
|
"group": "1_gitlens_1@1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithWorking",
|
"command": "gitlens.diffWithWorking",
|
||||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||||
"group": "1_gitlens-file@2"
|
"group": "1_gitlens_1@2"
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "gitlens.toggleBlame",
|
|
||||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
|
||||||
"group": "2_gitlens@1"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showQuickFileHistory",
|
"command": "gitlens.showQuickFileHistory",
|
||||||
"when": "gitlens:enabled",
|
"when": "gitlens:enabled",
|
||||||
|
"group": "2_gitlens@1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.toggleBlame",
|
||||||
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||||
"group": "2_gitlens@2"
|
"group": "2_gitlens@2"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "gitlens.openFileInRemote",
|
||||||
|
"when": "editorTextFocus && gitlens:enabled && gitlens:hasRemotes",
|
||||||
|
"group": "2_gitlens@3"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.copyShaToClipboard",
|
"command": "gitlens.copyShaToClipboard",
|
||||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||||
|
|||||||
Reference in New Issue
Block a user