Skip to content

Add keybindings to terminal find next and previous - #58850

Merged
Alex Ross (alexr00) merged 5 commits into
masterfrom
alexr00/terminalFindKeybindings
Sep 19, 2018
Merged

Alex Ross (alexr00) merged 5 commits into
masterfrom
alexr00/terminalFindKeybindings

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #29661

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Let's also fill the find term with the selection if there is one, just like in the editor.

primary: KeyCode.F3,
mac: { primary: KeyMod.CtrlCmd | KeyCode.KEY_G, secondary: [KeyCode.F3] }
}, KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_FOCUSED), 'Terminal: Find next');
actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(FindPrevious, FindPrevious.ID_TERMINAL_FOCUS, FindPrevious.LABEL, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we'd be able to use secondary but it looks like that doesn't include the when clause ☹️

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, also I noticed #58962 while testing

We can handle that in another PR.

@alexr00
Alex Ross (alexr00) merged commit 3d1bec9 into master Sep 19, 2018
@alexr00
Alex Ross (alexr00) deleted the alexr00/terminalFindKeybindings branch September 19, 2018 16:05
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No next and previous keyboard shortcuts for Find widget in Integrated Terminal

2 participants