vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Provide commands that jump to the next changed section in the PR

Open Tyriar opened this issue 7 years ago • 2 comments

I have the following keybindings to make it quick to jump between git diffs in the active file without touching the mouse:

{ "key": "alt+f3",           "command": "workbench.action.editor.nextChange", "when": "editorTextFocus" },
{ "key": "shift+alt+f3",     "command": "workbench.action.editor.previousChange", "when": "editorTextFocus" },
{ "key": "alt+f3",           "command": "workbench.action.compareEditor.nextChange", "when": "textCompareEditorVisible" },
{ "key": "shift+alt+f3",     "command": "workbench.action.compareEditor.previousChange", "when": "textCompareEditorVisible" }

I would like two commands to do the same when in both a regular editor (like workbench.action.editor.*Change) and the compare editor (like workbench.action.compareEditor.*Change).

Note that ideally this would be done with https://github.com/Microsoft/vscode-pull-request-github/issues/392 and use those lines as the chunks to jump to. In the meantime maybe it could jump to the commentable range instead?

Tyriar avatar Sep 14 '18 02:09 Tyriar

A shortcut to move to next file in PR would be nice too

plchampigny avatar May 30 '19 17:05 plchampigny

Running into this with https://github.com/microsoft/vscode/pull/115119, hard to navigate a large PR via the tree, it'd be a lot nicer with a keybinding a la search/problems/etc. cc @RMacfarlane

JacksonKearl avatar Jan 27 '21 06:01 JacksonKearl

We now have the command "Go to Next Diff in Pull Request".

alexr00 avatar Dec 13 '22 10:12 alexr00