Skip to content

Ctrl+R behavior when no matches: cancelled command #9934

Description

@jerrygreen

In normal bash, when no results found while using reverse-i-search (Ctrl+R), you still able to run the command you started to type.

In fish, if search fails, pressing enter just cancels the search.

I think fish should stick to bash behavior in here, – actually execute command on pressing Enter.

After all, if user wants to cancel his command, he can always press Ctrl+C.

There's no need to duplicate this behavior for Enter, basically removing other useful functionality.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions