Skip to content

ctrl+r no longer pulling from shared history until a command is run succesfully #4061

@ohshazbot

Description

@ohshazbot

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.55.0 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

This is very similar to #1649, except fc -rl 1 is behaving as expected

I have 2 terminals, I'm using zsh with setopt share_history. Outside of fzf, it works fine, if I go to a second terminal and type in a command, it is available on my first terminal after hitting a newline. However history is not being shared with fzf triggered via control+R until a command is run sucessfully.

  • Have 2 terminals with shared history
  • In terminal 2, input any command
  • In terminal 1, control+r to enter fzf search and observe that the last command isn't present (nor is it if you search (assuming you haven't run the same command in the past)
  • control + c out of fzf search
  • input a blank new line and use control+r to observe that the input from terminal 2 still is not present
  • control + c out of fzf search
  • run a command, like fc -rl 1 or echo and use control+r to observe that now the input from terminal 2 is present

This feels like a regression, I feel it used to either get updated without having to invoke a command first (but I could be mistaken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions