Skip to content

Terminal: Add Find next/previous key bindings. Fixes: #29661 - #31418

Closed
Christopher Leidigh (cleidigh) wants to merge 3 commits into
microsoft:masterfrom
cleidigh:terminal-find-nxt-prev/add
Closed

Christopher Leidigh (cleidigh) wants to merge 3 commits into
microsoft:masterfrom
cleidigh:terminal-find-nxt-prev/add

Conversation

@cleidigh

Copy link
Copy Markdown
Contributor

Daniel Imms (@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

}, 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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here.

@rebornix

Peng Lyu (rebornix) commented Jul 25, 2017 •

Copy link
Copy Markdown
Contributor

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

@cleidigh

Copy link
Copy Markdown
Contributor Author

OS X Key bindings matched.

@cleidigh

Copy link
Copy Markdown
Contributor Author

See new PR #32074

@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