Skip to content
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

Closed

Conversation

cleidigh
Copy link
Contributor

@Tyriar

  • Tried my best at naming nomenclature not perfect but matches most things
  • Went through terminal services like focus and hide commands
  • Testing both Windows and OS X

Fixes: #29661

@@ -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);
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@rebornix
Copy link
Member

rebornix commented Jul 25, 2017

Just left a tiny comment about keybindings, it looks good to me.

@cleidigh
Copy link
Contributor Author

OS X Key bindings matched.

@cleidigh cleidigh mentioned this pull request Jul 29, 2017
@Tyriar Tyriar added this to the August 2017 milestone Jul 31, 2017
@cleidigh
Copy link
Contributor Author

cleidigh commented Aug 7, 2017

See new PR #32074

@cleidigh cleidigh closed this Aug 7, 2017
@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
4 participants