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

Option to invert terminal search direction #79039

Closed
probablykasper opened this issue Aug 13, 2019 · 11 comments
Closed

Option to invert terminal search direction #79039

probablykasper opened this issue Aug 13, 2019 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@probablykasper
Copy link
Contributor

In VSCode 1.37, searching in the terminal was changed so that pressing enter searches backwards in the terminal. I could not find an option to change it back, or a way to override it using keyboard shortcuts, so here's a feature request for it.

@Tyriar
Copy link
Member

Tyriar commented Aug 13, 2019

@rebornix did you say you were going to add commands for these?

@Tyriar Tyriar added terminal General terminal issues that don't fall under another label info-needed Issue requires more information from poster labels Aug 13, 2019
@rebornix
Copy link
Member

yes, I was thinking about adding following things to allow users to decide what keybindings to use

  • context keys for find input box
  • commands for navigating through history in the input box

It may come together with #15727 and if the solution is simple, I'll make it generic.

@rebornix
Copy link
Member

rebornix commented Aug 13, 2019

One thing I'm not sure about yet is whether we should have dedicated context keys for editor find, terminal find and Webviews, or we should only have a generic one and uses can use other context keys like editorFocus to differentiate the container.

@Tyriar
Copy link
Member

Tyriar commented Aug 13, 2019

@rebornix the terminal already has separate context keys and it's default behavior needs to be inverted.

@Tyriar Tyriar added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Aug 13, 2019
@rebornix
Copy link
Member

Fixed in master. With next Insiders, you should be able to revert the keybindings by adding following into your keybindings.json

{
        "key": "shift+enter",
        "command": "workbench.action.terminal.findPrevious",
        "when": "terminalFindWidgetFocused"
    },
    {
        "key": "enter",
        "command": "-workbench.action.terminal.findPrevious",
        "when": "terminalFindWidgetFocused"
    },
    {
        "key": "enter",
        "command": "workbench.action.terminal.findNext",
        "when": "terminalFindWidgetFocused"
    },
    {
        "key": "shift+enter",
        "command": "-workbench.action.terminal.findNext",
        "when": "terminalFindWidgetFocused"
    }

@Tyriar Tyriar added this to the August 2019 milestone Aug 21, 2019
@Tyriar
Copy link
Member

Tyriar commented Aug 22, 2019

@rebornix enter and shift+enter doesn't seem to work in the terminal find widget anymore?

@Tyriar Tyriar reopened this Aug 22, 2019
@rebornix
Copy link
Member

shift-enter

Above gif is recored in latest master, are you testing against that?

@rebornix
Copy link
Member

Good catch actually, the keybinding was added on Windows and Linux.

@Tyriar
Copy link
Member

Tyriar commented Aug 22, 2019

08d59c4

@Tyriar
Copy link
Member

Tyriar commented Aug 22, 2019

We should verify these keybindings on all platforms just in case.

@rebornix rebornix added the verification-needed Verification of issue is requested label Aug 22, 2019
@RMacfarlane RMacfarlane added the verified Verification succeeded label Aug 27, 2019
@RMacfarlane
Copy link
Contributor

Verified on all platforms.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants