소스 검색

Adds keyboard nav to stash apply, pop, and drop

main
Eric Amodio 5 년 전
부모
커밋
4f3ddfe637
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. +22
    -0
      src/commands/git/stash.ts

+ 22
- 0
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<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;

불러오는 중...
취소
저장