Skip to content

Autosuggestions are sometimes not offered after recalling a previous line from history #10287

Description

@simonborje

fish, version 3.7.0 built from source, but it behaves the same on the packaged "atp" version 3.6.0
OS: debian 12

I'm not quite sure if this behavior is a bug or intentional but I found it unexpected at least.
When recalling commands from history by using the "up arrow" and then continuing typing, fish will not offer any autosuggestions unless the history search is first cancelled. The history search seems to be canceled by several actions such as pressing left arrow, "space" or "backspace", but not by typing regular characters.

In the example below the two final lines which uses "up arrow" history search are not offered autosuggestions after the search until the left arrow is pressed.
In the last line the history search match highlight is also not cleared until the left arrow is pressed.
WindowsTerminal_roMGHXCp0Z
If this is considered a bug I could attempt to create a fix.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions