You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Issue 1: fish shell text rendering issue.
With shell integration disabled:
When typing part of a command in the fish shell, opening a new window and switching back to the previous window, the cursor is positioned abnormally and the text remains after deleting all the text.
Issue 2: Mouse movement without click causes shell integration to be triggered.
With shell integration enabled:
Place the mouse cursor to the right of the command line prompt and click to activate the window and keep moving. Typing part of a command at the same time causes the unconfirmed part of the command to be completed. (Triggers the arrow right arrow key just like shell integration mouse clicks.)
To Reproduce
Issue 1: fish shell text rendering issue.
I think the second problem is caused by the click interval. Since the mouse click event is sent immediately to the program in the window, there will be: type command immediately after switching windows and the arrow keys are sent at the same time.
Sending mouse position clicks to the program immediately is a good way to go. In many cases users don't want to switch focus before they can click.
The click interval cannot be set too short, because there are still events such as double-clicks.
So is it possible to enter text immediately after switching focus (with mouse) without triggering shell integration mouse positioning?
is caused by fish not redrawing the prompt on resize. This
is taken care of by shell integration, which instructs fish to do so.
There is an issue in the fish tracker about it if you care.
If you want to send the click to the shell immediately you can set it
up in kitty.conf. Use the press event instead of the click event, but
note that doing so will break selections with the mouse. To really fix
this you would need to have a key press during the click interval abort
the click. But that would mean that if you click and start typing your
click will not register, which is worse. I dont really see a good way to
solve this. The only correct solution is for the shell to add support
for a "move cursor here" escape code. The terminal can then send that
escape code on a click rather than sending right arrow key presses.
Describe the bug
Issue 1: fish shell text rendering issue.
With shell integration disabled:
When typing part of a command in the fish shell, opening a new window and switching back to the previous window, the cursor is positioned abnormally and the text remains after deleting all the text.
Issue 2: Mouse movement without click causes shell integration to be triggered.
With shell integration enabled:
Place the mouse cursor to the right of the command line prompt and click to activate the window and keep moving. Typing part of a command at the same time causes the unconfirmed part of the command to be completed. (Triggers the arrow right arrow key just like shell integration mouse clicks.)
To Reproduce
Issue 1: fish shell text rendering issue.
Steps to reproduce the behavior:
2
in first window. At this point fish prompts for the command2to3
, and the unconfirmed part is grayed out.ctrl+shift+enter
to create new window. Then switch back to the first window.2
is still on the screen.Screen recording:
Issue 2: Mouse movement without click causes shell integration to be triggered.
2
, you find that the command is automatically completed, even without clicking the mouse.Screen recording:
Screenshots
See above.
Environment details
Additional context
These issues are related to the fish shell's command autoprompt, not sure if it's a problem with the fish shell itself.
The text was updated successfully, but these errors were encountered: