Pārlūkot izejas kodu

Adds keyboard nav to stash apply, pop, and drop

main
Eric Amodio pirms 5 gadiem
vecāks
revīzija
4f3ddfe637
1 mainītis faili ar 22 papildinājumiem un 0 dzēšanām
  1. +22
    -0
      src/commands/git/stash.ts

+ 22
- 0
src/commands/git/stash.ts Parādīt failu

@ -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<typeof step> = 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<typeof step> = yield step;

||||||
x
 
000:0
Notiek ielāde…
Atcelt
Saglabāt