Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected double quote #488

Open
eeeXun opened this issue Apr 20, 2023 · 0 comments
Open

Unexpected double quote #488

eeeXun opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels

Comments

@eeeXun
Copy link

eeeXun commented Apr 20, 2023

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>

image

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)
@dvorka dvorka self-assigned this Apr 24, 2023
@dvorka dvorka added this to the 3.2 Stabilization milestone Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants