gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
9.01k stars 1.34k forks source link

Worktrees: `Ctrl + enter` opens worktree in new window #2507

Open Ilanaya opened 1 year ago

Ilanaya commented 1 year ago
  1. Invoke gitlens.gitCommands.worktree
  2. Select open in quick pick
  3. Navigate to worktree you would like to open (with arrows)

Expected result: Pressing ctrl+enter opens the selected worktree in a new window immediately instead of opening an additional quick pick with options (the same as vs code builtin workbench.action.openRecent command works).

I find it confusing to have an extra step here when most of the vs code commands which can open something in a new window open it with the ctrl + enter key combination. If you find this feature relevant I can try implementing it myself. With a quick investigation I think I would need to make changes somewhere here

image

eamodio commented 1 year ago

This is a good (and reasonable) request, although it will be a bit more involved to make it happen that it would seem, because of how vscode allows extensions access to the keyboard (it really doesn't and we have to hack it with commands).