diff --git a/src/commands/git/stash.ts b/src/commands/git/stash.ts index fb3da66..61dd832 100644 --- a/src/commands/git/stash.ts +++ b/src/commands/git/stash.ts @@ -362,6 +362,17 @@ export class StashGitCommand extends QuickCommandBase { expand: true }); } + }, + keys: ['right', 'alt+right', 'ctrl+right'], + onDidPressKey: async (quickpick, key) => { + if (quickpick.activeItems.length === 0) return; + + const stash = quickpick.activeItems[0].item; + await Container.repositoriesView.revealStash(stash, { + select: true, + focus: false, + expand: true + }); } }); const selection: StepSelection = yield step; @@ -489,6 +500,17 @@ export class StashGitCommand extends QuickCommandBase { expand: true }); } + }, + keys: ['right', 'alt+right', 'ctrl+right'], + onDidPressKey: async (quickpick, key) => { + if (quickpick.activeItems.length === 0) return; + + const stash = quickpick.activeItems[0].item; + await Container.repositoriesView.revealStash(stash, { + select: true, + focus: false, + expand: true + }); } }); const selection: StepSelection = yield step;