gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

alt-backspace interpreted as alt-delete

Open markmcd opened this issue 1 year ago • 5 comments

Describe the bug Running on a linux machine (glinux, home machine). Pressing Alt+Bksp on an input line deletes the word to the right, not the left as expected.

The code seems to indicate that backspace is handled, but for whatever reason it's being handled as a Del instead.

Additional context gLinux. Running Terminator. It's a normal backspace key otherwise.

markmcd avatar May 29 '25 08:05 markmcd

I'll take a look since I've touched code around this before.

Unfortunately the actual event processing is done in an external dependency, so there's a chance that fixing this issue, and keyboard event processing issues in general, will require a more involved surgery. That said, thank you for helping us track this, and please feel free to file more keyboard event issues or feature requests when you see them.

dewitt avatar May 29 '25 13:05 dewitt

@dewitt are you still looking into this?

scottdensmore avatar Jun 14 '25 03:06 scottdensmore

@markmcd, can you please confirm this is still an issue on your Linux terminal? If so I will track down a glinux desktop from a cubemate and try to debug from their terminal. I couldn't repro from any of the terminal apps I found.

If not, I'll go ahead and close this out.

dewitt avatar Jun 14 '25 04:06 dewitt

Potentially resolved, or at least now resolvable, now that PR #1252 is in. Much of the related code changed since this bug was first reported regardless, so let's re-verify that it still is an issue on Linux terminals, and please feel free to close if not.

dewitt avatar Jun 21 '25 21:06 dewitt

Appears fixed (at least on my mac) by #1252

sethtroisi avatar Jul 01 '25 19:07 sethtroisi