-
Notifications
You must be signed in to change notification settings - Fork 75
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
bindkey '^r' _histdb-isearch #86
Comments
I don't fully understand your question; to make clear, are you saying:
in which the word
To make clear the expected behaviour:
If this is what's happening, it's not a bug. If at point 5 the buffer doesn't contain the match, something has gone wrong somewhere. In Or you can do I'm afraid I am not going to debug this further for you, but if you can work out what is happening and find that it's something I need to fix I will be happy to fix it. |
I've got a very short screen recording to show what I mean. I actually start before typing anything with ^r, and then vi to find all vi commands. And then cycle back by continuously hitting ^r. I'll try out what you suggest, but wanted to show you what I meant, hopefully more clearly. |
I think what's happening here might just be some redraw crud caused by your fancy prompt or terminal or other feature. In your video, I notice that after you exit vi (which triggers a screen redraw) the prompt contents for the last command you ran are displayed as I would expect, without You could check this by amending |
Thank you, I started digging in yesterday after my video trying to figure out where that was coming from. I appreciate the assistance! |
Bingo! Its POSTDISPLAY holding that, now just to figure out why, I could just clear it out I guess, but like to know why. Thank you very much for your insight! |
I'm not exactly sure how to describe the behavior, but I have ^r bound to _histdb-isearch, but not sure if its a display issue, a fill-in issue, or something else... Let me describe the behavior...
I ^r at the start of the prompt and start typing the command I want to search. The first match it comes up with displays fine. If I hit enter, it puts in the command as far as I had typed, but then duplicates the arguments. For example:
^r
type: vi
finds my last vi command vi dir_colors
If I hit enter, my result is: vi dir_colors dir_colors with the cursor right after vi.
I could just go to the end of the first dir_colors and be happy, but its not what I would expect.
Now if I do the following:
^r
type: vi
^r
It brings up the previous command to the last vi command, displaying it fine.
If I hit enter, my result is: vi cluster.yaml dir_colors with the prompt right after vi.
Again I could go to the end of cluster.yaml and be happy, but its not what I would expect.
This is zsh version 5.7.1 on OS X 10.15.5
I am attaching an output of functions and bindkey, let me know if you need other items please.
functions.txt
bindkey.txt
The text was updated successfully, but these errors were encountered: