Repository navigation
Terminal: Add Find next/previous key bindings. Fixes: #29661 - #31418
Christopher Leidigh (cleidigh) wants to merge 3 commits into
Conversation
| }, 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.
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.
Peng Lyu (@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.
Funny thing is that that's what I had first ;-)
will change back
There was a problem hiding this comment.
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); |
|
Just left a tiny comment about keybindings, it looks good to me. |
|
OS X Key bindings matched. |
|
See new PR #32074 |
Daniel Imms (@Tyriar)
Fixes: #29661