Skip to content

Commit 9bcc02f

Browse files
committed
Evolves Visual File History into Visual History
- Adds visualization of files, folders, branches, etc - Changes to "scope"-based data over prior URI-based - Visualization of comparisons is still WIP - Improves visualization of working tree changes Adds new "Visualize" actions to the Home view
1 parent 74d0e5d commit 9bcc02f

31 files changed

+1497
-751
lines changed

contributions.json

Lines changed: 78 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3659,55 +3659,6 @@
36593659
"label": "Show File History View",
36603660
"commandPalette": "gitlens:enabled"
36613661
},
3662-
"gitlens.showFileInTimeline": {
3663-
"label": "Open Visual File History",
3664-
"icon": "$(graph-scatter)",
3665-
"commandPalette": "gitlens:enabled && resource in gitlens:tabs:tracked",
3666-
"menus": {
3667-
"gitlens/commit/file/history": [
3668-
{
3669-
"group": "1_gitlens",
3670-
"order": 2
3671-
}
3672-
],
3673-
"gitlens/editor/history": [
3674-
{
3675-
"group": "1_gitlens",
3676-
"order": 2
3677-
}
3678-
],
3679-
"gitlens/explorer/file/history": [
3680-
{
3681-
"group": "1_gitlens",
3682-
"order": 2
3683-
}
3684-
],
3685-
"gitlens/scm/resourceState/history": [
3686-
{
3687-
"group": "1_gitlens",
3688-
"order": 2
3689-
}
3690-
]
3691-
}
3692-
},
3693-
"gitlens.showFolderInTimeline": {
3694-
"label": "Open Visual Folder History",
3695-
"icon": "$(graph-scatter)",
3696-
"menus": {
3697-
"gitlens/explorer/folder/history": [
3698-
{
3699-
"group": "1_gitlens",
3700-
"order": 2
3701-
}
3702-
],
3703-
"gitlens/scm/resourceFolder/history": [
3704-
{
3705-
"group": "1_gitlens",
3706-
"order": 2
3707-
}
3708-
]
3709-
}
3710-
},
37113662
"gitlens.showGraph": {
37123663
"label": "Show Commit Graph",
37133664
"icon": "$(gitlens-graph)",
@@ -4357,7 +4308,7 @@
43574308
"commandPalette": "gitlens:enabled"
43584309
},
43594310
"gitlens.showTimelinePage": {
4360-
"label": "Show Visual File History",
4311+
"label": "Show Visual History",
43614312
"icon": "$(graph-scatter)",
43624313
"commandPalette": "gitlens:enabled"
43634314
},
@@ -13016,6 +12967,83 @@
1301612967
}
1301712968
]
1301812969
}
12970+
},
12971+
"gitlens.visualizeHistory.file": {
12972+
"label": "Open Visual File History",
12973+
"icon": "$(graph-scatter)",
12974+
"commandPalette": "gitlens:enabled && resource in gitlens:tabs:tracked"
12975+
},
12976+
"gitlens.visualizeHistory.file:editor": {
12977+
"label": "Open Visual File History",
12978+
"icon": "$(graph-scatter)",
12979+
"menus": {
12980+
"gitlens/editor/history": [
12981+
{
12982+
"group": "1_gitlens",
12983+
"order": 2
12984+
}
12985+
]
12986+
}
12987+
},
12988+
"gitlens.visualizeHistory.file:explorer": {
12989+
"label": "Open Visual File History",
12990+
"icon": "$(graph-scatter)",
12991+
"menus": {
12992+
"gitlens/explorer/file/history": [
12993+
{
12994+
"group": "1_gitlens",
12995+
"order": 2
12996+
}
12997+
]
12998+
}
12999+
},
13000+
"gitlens.visualizeHistory.file:scm": {
13001+
"label": "Open Visual File History",
13002+
"icon": "$(graph-scatter)",
13003+
"menus": {
13004+
"gitlens/scm/resourceState/history": [
13005+
{
13006+
"group": "1_gitlens",
13007+
"order": 2
13008+
}
13009+
]
13010+
}
13011+
},
13012+
"gitlens.visualizeHistory.file:views": {
13013+
"label": "Open Visual File History",
13014+
"icon": "$(graph-scatter)",
13015+
"menus": {
13016+
"gitlens/commit/file/history": [
13017+
{
13018+
"group": "1_gitlens",
13019+
"order": 2
13020+
}
13021+
]
13022+
}
13023+
},
13024+
"gitlens.visualizeHistory.folder:explorer": {
13025+
"label": "Open Visual Folder History",
13026+
"icon": "$(graph-scatter)",
13027+
"menus": {
13028+
"gitlens/explorer/folder/history": [
13029+
{
13030+
"group": "1_gitlens",
13031+
"order": 2
13032+
}
13033+
]
13034+
}
13035+
},
13036+
"gitlens.visualizeHistory.folder:scm": {
13037+
"label": "Open Visual Folder History",
13038+
"icon": "$(graph-scatter)",
13039+
"menus": {
13040+
"gitlens/scm/resourceFolder/history": [
13041+
{
13042+
"group": "1_gitlens",
13043+
"order": 2
13044+
}
13045+
]
13046+
}
1301913047
}
1302013048
},
1302113049
"submenus": {

docs/telemetry-events.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,8 +2021,8 @@ or
20212021
20222022
```typescript
20232023
{
2024-
'context.itemType': 'file' | 'folder',
20252024
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2025+
'context.scope.type': 'file' | 'folder' | 'repo',
20262026
'context.showAllBranches': boolean,
20272027
'context.sliceBy': 'branch' | 'author',
20282028
'context.webview.host': 'editor' | 'view',
@@ -2038,8 +2038,8 @@ or
20382038
20392039
```typescript
20402040
{
2041-
'context.itemType': 'file' | 'folder',
20422041
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2042+
'context.scope.type': 'file' | 'folder' | 'repo',
20432043
'context.showAllBranches': boolean,
20442044
'context.sliceBy': 'branch' | 'author',
20452045
'context.webview.host': 'editor' | 'view',
@@ -2055,8 +2055,8 @@ or
20552055
20562056
```typescript
20572057
{
2058-
'context.itemType': 'file' | 'folder',
20592058
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2059+
'context.scope.type': 'file' | 'folder' | 'repo',
20602060
'context.showAllBranches': boolean,
20612061
'context.sliceBy': 'branch' | 'author',
20622062
'context.webview.host': 'editor' | 'view',
@@ -2075,8 +2075,25 @@ or
20752075
20762076
```typescript
20772077
{
2078-
'context.itemType': 'file' | 'folder',
20792078
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2079+
'context.scope.type': 'file' | 'folder' | 'repo',
2080+
'context.showAllBranches': boolean,
2081+
'context.sliceBy': 'branch' | 'author',
2082+
'context.webview.host': 'editor' | 'view',
2083+
'context.webview.id': string,
2084+
'context.webview.instanceId': string,
2085+
'context.webview.type': string
2086+
}
2087+
```
2088+
2089+
### timeline/scope/changed
2090+
2091+
> Sent when the scope (file/folder/repo) changes on the Visual History
2092+
2093+
```typescript
2094+
{
2095+
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2096+
'context.scope.type': 'file' | 'folder' | 'repo',
20802097
'context.showAllBranches': boolean,
20812098
'context.sliceBy': 'branch' | 'author',
20822099
'context.webview.host': 'editor' | 'view',
@@ -2107,8 +2124,8 @@ or
21072124
{
21082125
'context.config.allowMultiple': boolean,
21092126
'context.config.queryLimit': number,
2110-
'context.itemType': 'file' | 'folder',
21112127
'context.period': 'all' | `${number}|D` | `${number}|M` | `${number}|Y`,
2128+
'context.scope.type': 'file' | 'folder' | 'repo',
21122129
'context.showAllBranches': boolean,
21132130
'context.sliceBy': 'branch' | 'author',
21142131
'context.webview.host': 'editor' | 'view',

package.json

Lines changed: 71 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7506,17 +7506,6 @@
75067506
"title": "Show File History View",
75077507
"category": "GitLens"
75087508
},
7509-
{
7510-
"command": "gitlens.showFileInTimeline",
7511-
"title": "Open Visual File History",
7512-
"category": "GitLens",
7513-
"icon": "$(graph-scatter)"
7514-
},
7515-
{
7516-
"command": "gitlens.showFolderInTimeline",
7517-
"title": "Open Visual Folder History",
7518-
"icon": "$(graph-scatter)"
7519-
},
75207509
{
75217510
"command": "gitlens.showGraph",
75227511
"title": "Show Commit Graph",
@@ -7738,7 +7727,7 @@
77387727
},
77397728
{
77407729
"command": "gitlens.showTimelinePage",
7741-
"title": "Show Visual File History",
7730+
"title": "Show Visual History",
77427731
"category": "GitLens",
77437732
"icon": "$(graph-scatter)"
77447733
},
@@ -9974,6 +9963,42 @@
99749963
"command": "gitlens.views.worktrees.viewOptionsTitle",
99759964
"title": "Worktrees View Options",
99769965
"enablement": "false"
9966+
},
9967+
{
9968+
"command": "gitlens.visualizeHistory.file",
9969+
"title": "Open Visual File History",
9970+
"category": "GitLens",
9971+
"icon": "$(graph-scatter)"
9972+
},
9973+
{
9974+
"command": "gitlens.visualizeHistory.file:editor",
9975+
"title": "Open Visual File History",
9976+
"icon": "$(graph-scatter)"
9977+
},
9978+
{
9979+
"command": "gitlens.visualizeHistory.file:explorer",
9980+
"title": "Open Visual File History",
9981+
"icon": "$(graph-scatter)"
9982+
},
9983+
{
9984+
"command": "gitlens.visualizeHistory.file:scm",
9985+
"title": "Open Visual File History",
9986+
"icon": "$(graph-scatter)"
9987+
},
9988+
{
9989+
"command": "gitlens.visualizeHistory.file:views",
9990+
"title": "Open Visual File History",
9991+
"icon": "$(graph-scatter)"
9992+
},
9993+
{
9994+
"command": "gitlens.visualizeHistory.folder:explorer",
9995+
"title": "Open Visual Folder History",
9996+
"icon": "$(graph-scatter)"
9997+
},
9998+
{
9999+
"command": "gitlens.visualizeHistory.folder:scm",
10000+
"title": "Open Visual Folder History",
10001+
"icon": "$(graph-scatter)"
997710002
}
997810003
],
997910004
"icons": {
@@ -11518,14 +11543,6 @@
1151811543
"command": "gitlens.showFileHistoryView",
1151911544
"when": "gitlens:enabled"
1152011545
},
11521-
{
11522-
"command": "gitlens.showFileInTimeline",
11523-
"when": "gitlens:enabled && resource in gitlens:tabs:tracked"
11524-
},
11525-
{
11526-
"command": "gitlens.showFolderInTimeline",
11527-
"when": "false"
11528-
},
1152911546
{
1153011547
"command": "gitlens.showGraph",
1153111548
"when": "gitlens:enabled"
@@ -13557,6 +13574,34 @@
1355713574
{
1355813575
"command": "gitlens.views.worktrees.viewOptionsTitle",
1355913576
"when": "false"
13577+
},
13578+
{
13579+
"command": "gitlens.visualizeHistory.file",
13580+
"when": "gitlens:enabled && resource in gitlens:tabs:tracked"
13581+
},
13582+
{
13583+
"command": "gitlens.visualizeHistory.file:editor",
13584+
"when": "false"
13585+
},
13586+
{
13587+
"command": "gitlens.visualizeHistory.file:explorer",
13588+
"when": "false"
13589+
},
13590+
{
13591+
"command": "gitlens.visualizeHistory.file:scm",
13592+
"when": "false"
13593+
},
13594+
{
13595+
"command": "gitlens.visualizeHistory.file:views",
13596+
"when": "false"
13597+
},
13598+
{
13599+
"command": "gitlens.visualizeHistory.folder:explorer",
13600+
"when": "false"
13601+
},
13602+
{
13603+
"command": "gitlens.visualizeHistory.folder:scm",
13604+
"when": "false"
1356013605
}
1356113606
],
1356213607
"editor/context": [
@@ -14055,7 +14100,7 @@
1405514100
"group": "1_gitlens@1"
1405614101
},
1405714102
{
14058-
"command": "gitlens.showFileInTimeline",
14103+
"command": "gitlens.visualizeHistory.file:views",
1405914104
"group": "1_gitlens@2"
1406014105
},
1406114106
{
@@ -14249,7 +14294,7 @@
1424914294
"group": "1_gitlens@1"
1425014295
},
1425114296
{
14252-
"command": "gitlens.showFileInTimeline",
14297+
"command": "gitlens.visualizeHistory.file:editor",
1425314298
"group": "1_gitlens@2"
1425414299
},
1425514300
{
@@ -14364,7 +14409,7 @@
1436414409
"group": "1_gitlens@1"
1436514410
},
1436614411
{
14367-
"command": "gitlens.showFileInTimeline",
14412+
"command": "gitlens.visualizeHistory.file:explorer",
1436814413
"group": "1_gitlens@2"
1436914414
},
1437014415
{
@@ -14378,7 +14423,7 @@
1437814423
"group": "1_gitlens@1"
1437914424
},
1438014425
{
14381-
"command": "gitlens.showFolderInTimeline",
14426+
"command": "gitlens.visualizeHistory.folder:explorer",
1438214427
"group": "1_gitlens@2"
1438314428
}
1438414429
],
@@ -14511,7 +14556,7 @@
1451114556
"group": "1_gitlens@2"
1451214557
},
1451314558
{
14514-
"command": "gitlens.showFolderInTimeline",
14559+
"command": "gitlens.visualizeHistory.folder:scm",
1451514560
"group": "1_gitlens@2"
1451614561
}
1451714562
],
@@ -14555,7 +14600,7 @@
1455514600
"group": "1_gitlens@1"
1455614601
},
1455714602
{
14558-
"command": "gitlens.showFileInTimeline",
14603+
"command": "gitlens.visualizeHistory.file:scm",
1455914604
"group": "1_gitlens@2"
1456014605
},
1456114606
{

0 commit comments

Comments
 (0)