Conversation
|
@dvorka is there a chance this can be shipped in the next release? |
|
@vaygr Sure, I will retest this PR and might do a patch release. Originally I was not able to repro the bug, I will try to do that once more. |
|
@vaygr I tested the scenarios on Anyway, I will build Can you please share which shell (bash or zsh), OS and |
|
@dvorka this was tested on Manjaro with 3.1.0. bash 5.1.16(1)-release. |
|
@vaygr thanks! |
|
This by the way is reproducible not only with Enter, but with Tab as well. This is what I get when trying to remove a random entry and select $ hh --
tig
history -r
$ tighistory -r
bash: tighistory: command not found
Relevant hstr config: # hstr
export HH_CONFIG=keywords
export HH_PROMPT="// "
shopt -s histappend # append new history items to .bash_history
export HISTCONTROL=ignorespace # leading space hides commands from history
export HISTFILESIZE=10000 # increase history file size (default is 500)
export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500)
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" # mem/file sync
# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc)
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh -- \C-j"'; fi |
|
Rebased to fix the conflict introduced in 451758c#diff-258da76bc59b38c71c18642eba6ab2c8d4d8e63636d069002ff59e3d7f7f1b2cL408-R408. |
Steps to reproduce the bug:
history -rappended to the chosen command.OR
history -rprepended before the chosen command.This is reproducible on current master.
I have no idea how this
history -rwas intended to work in the first place, nor do I know how to preventhistory -rfrom appearing on screen. At least it produces no output, and that's good enough for my workflow.