8000 Support for history-beginning-search-{forward,backward} · Issue #992 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Support for history-beginning-search-{forward,backward} #992

@tiye

Description

@tiye

By examining the default binds of Fish, I found Fish doesn't use history-search-backward for up arrow. It's quite a habit in Bash to use up arrow for that.
How can I rewrite up arrow and bind it with history-search-backward?

bind \e\eOA history-token-search-backward
bind \e\eOB history-token-search-forward
bind \e\e\[A history-token-search-backward
bind \e\e\[B history-token-search-forward
bind \eO3A history-token-search-backward
bind \eO3B history-token-search-forward
bind \e\[3A history-token-search-backward
bind \e\[3B history-token-search-forward
bind \e\[1\;3A history-token-search-backward
bind \e\[1\;3B history-token-search-forward
bind \cp history-search-backward
bind \cn history-search-forward

The escaped characters in Fish are so hard to read, let alone figuring out which is the up arrow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0