If the command contains space and call hstr (pressing <C-r>), there would double quote in hstr screen. I have to delete it manually to get my history.
As following example. Type git clone, then press <C-r>

My .zshrc
setopt histignorespace # skip cmds w/ leading space from history
export HSTR_CONFIG="hicolor" # get more colors
hstr_no_tiocsti() {
zle -I
{ HSTR_OUT="$( { </dev/tty hstr ${BUFFER}; } 2>&1 1>&3 3>&- )"; } 3>&1;
BUFFER="${HSTR_OUT}"
CURSOR=${#BUFFER}
zle redisplay
}
zle -N hstr_no_tiocsti
bindkey -e
bindkey "^R" hstr_no_tiocsti
export HSTR_TIOCSTI=n
$ zsh --version
zsh 5.9 (x86_64-pc-linux-gnu)
$ hstr --version
hstr version "3.1.0" (2023-04-18T08:50:00)
If the command contains space and call hstr (pressing
<C-r>), there would double quote in hstr screen. I have to delete it manually to get my history.As following example. Type
git clone, then press<C-r>My
.zshrc