Skip to content

Commit 0fac5cf

Browse files
Adds other command deep links
1 parent 4d65101 commit 0fac5cf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/links.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,18 @@ _{prefix}/command/{command}_
270270

271271
- _{command}_ is the name of the command to run. Currently supported values include:
272272

273+
- _cloud-patches_ - Runs the `GitLens: Show Cloud Patches View` command.
274+
275+
- _graph_ - Runs the `GitLens: Show Graph` command.
276+
277+
- _inspect_ - Runs the `GitLens: Inspect Commit Details` command.
278+
273279
- _launchpad_ - Runs the `GitLens: Show Launchpad` command.
274280

275281
- _walkthrough_ - Runs the `GitLens: Get Started` command.
276282

283+
- _worktrees_ - Runs the `GitLens: Show Worktrees View` command.
284+
277285
#### Example Usage
278286

279287
External sources, such as GitKraken web pages, can use these links to directly run a GitLens command - for example, to show the Launchpad.

src/uris/deepLinks/deepLink.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,25 @@ export enum DeepLinkType {
2020
}
2121

2222
export enum DeepLinkCommandType {
23+
CloudPatches = 'cloud-patches',
24+
Graph = 'graph',
25+
Inspect = 'inspect',
2326
Launchpad = 'launchpad',
2427
Walkthrough = 'walkthrough',
28+
Worktrees = 'worktrees',
2529
}
2630

2731
export function isDeepLinkCommandType(type: string): type is DeepLinkCommandType {
2832
return Object.values(DeepLinkCommandType).includes(type as DeepLinkCommandType);
2933
}
3034

3135
export const DeepLinkCommandTypeToCommand = new Map<DeepLinkCommandType, Commands>([
36+
[DeepLinkCommandType.CloudPatches, Commands.ShowDraftsView],
37+
[DeepLinkCommandType.Graph, Commands.ShowGraph],
38+
[DeepLinkCommandType.Inspect, Commands.ShowCommitDetailsView],
3239
[DeepLinkCommandType.Launchpad, Commands.ShowLaunchpad],
3340
[DeepLinkCommandType.Walkthrough, Commands.GetStarted],
41+
[DeepLinkCommandType.Worktrees, Commands.ShowWorktreesView],
3442
]);
3543

3644
export enum DeepLinkActionType {

0 commit comments

Comments
 (0)