-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal: Add Find next/previous key bindings. Fixes: #29661 #31418
Conversation
@@ -322,6 +324,14 @@ actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(HideTerminalFind | |||
primary: KeyCode.Escape, | |||
secondary: [KeyCode.Shift | KeyCode.Escape] | |||
}, ContextKeyExpr.and(KEYBINDING_CONTEXT_TERMINAL_FOCUS, KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE)), 'Terminal: Focus Find Widget', category); | |||
actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(NextMatchTerminalFindWidgetAction, NextMatchTerminalFindWidgetAction.ID, NextMatchTerminalFindWidgetAction.LABEL, { | |||
primary: KeyCode.F3 | |||
}, KEYBINDING_CONTEXT_TERMINAL_FOCUS), 'Terminal: Find Next', category); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually for macOS, we use another keybinding -> https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/find/common/findController.ts#L372
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rebornix
I looked at the OS X key bindings and Find Next appears to be F3 ^F3 for previous
is this not correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funny thing is that that's what I had first ;-)
will change back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our builtin primary one is cmd+g but cmd+F3 works as well. Yeah let's make it consistent.
}, KEYBINDING_CONTEXT_TERMINAL_FOCUS), 'Terminal: Find Next', category); | ||
actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(PreviousMatchTerminalFindWidgetAction, PreviousMatchTerminalFindWidgetAction.ID, PreviousMatchTerminalFindWidgetAction.LABEL, { | ||
primary: KeyMod.Shift | KeyCode.F3 | ||
}, KEYBINDING_CONTEXT_TERMINAL_FOCUS), 'Terminal: Find Previous', category); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Just left a tiny comment about keybindings, it looks good to me. |
OS X Key bindings matched. |
See new PR #32074 |
@Tyriar
Fixes: #29661