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
Fish shell integration automatically completes currently shown completion #7168
Comments
Doesnt reproduce for me with fish version 3.7.0 and empty fish config, and I dont see how |
I've tested with no fish config, thats’s why I included the shell command with Simplified the reproduction:
It kinda looks like an issue with selection and/or focus. Thanks for any pointers! |
clicking the mouse will send fake arrow key press events to move the |
Hm, that makes sense. The cursor doesn't move on click without prompt marks, interesting, so that explains why it only happens with them. Also, my best guess, that something in my setup must be sending phantom mouse presses to the kitty window periodically then, that's why it sometimes autocompletes without mouse presses. Thanks a lot for the fast response! |
Ideally, fish would have some input function that moves the cursor right Even more ideally, fish would add a function that has semantics of You can try requesting something along these lines, maybe the fish |
As a band-aid, I've disabled the left click prompt event, while keeping the prompt marks working (which is what I needed) |
Actually, there is |
On Wed, Feb 28, 2024 at 09:18:03PM -0800, martonperei wrote:
Actually, there is `commandline -C <cursor_position>` which sets the cursor position in the current buffer without accepting the suggestion.
That's relative to the command buffer as a string, we need a way to set
it relative to a screen position.
|
…tions to be accepted, needs fish >= 3.8.0 Fixes #7168
…tions to be accepted, needs fish >= 3.8.0 Fixes kovidgoyal#7168
Describe the bug
When the
prompt-mark
shell integration is enabled with fish, occasionally the currently shown completion is auto-completed.The problem doesn't happen with
shell_integration no-prompt-mark
.Sometimes it happens right after opening a new tab and typing a command, ending up in something like
git checkout developit clone
when I want to typegit clone
To Reproduce
Steps to reproduce the behavior:
shell /opt/homebrew/bin/fish -N --login --interactive
Screenshots
Completion is shown:
Completion is auto-completed automagically.
Environment details
Additional context
Try to reproduce the problem with
kitty --config NONE
if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.The text was updated successfully, but these errors were encountered: