Skip to content
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

Backspace behaviour misplace on Windows #220

Closed
bruisedsamurai opened this issue Sep 13, 2023 · 19 comments
Closed

Backspace behaviour misplace on Windows #220

bruisedsamurai opened this issue Sep 13, 2023 · 19 comments
Labels
bug Something isn't working

Comments

@bruisedsamurai
Copy link
Contributor

When pressing backspace it deletes a word and to delete an alphabet I have to press CTRL.

@raphamorim
Copy link
Owner

Hey @bruisedsamurai thanks for the issue,

Which version are you using?

@bruisedsamurai
Copy link
Contributor Author

0.0.17

@raphamorim
Copy link
Owner

Can you try with 0.0.18 (I believe was fixed there)

@bruisedsamurai
Copy link
Contributor Author

Nope, issue persists

@raphamorim
Copy link
Owner

woof, not good.
and just to confirm if you enter echo $TERM what it logs?

@bruisedsamurai
Copy link
Contributor Author

Nothing 🤭
image

@raphamorim
Copy link
Owner

raphamorim commented Sep 14, 2023

Woof, realised that oddly rio is having these behaviour whenever term is env variable is off. Can you try setting it for whatever term you have in other terminal and see if it fixes?

@bruisedsamurai
Copy link
Contributor Author

@bruisedsamurai
Copy link
Contributor Author

Any updates?

@raphamorim
Copy link
Owner

Just tried the canary version on windows and it's working for me.

My env variables

Screenshot 2023-09-15 at 23 39 05

@raphamorim
Copy link
Owner

@bruisedsamurai
Copy link
Contributor Author

ENV or bckspc

@raphamorim
Copy link
Owner

The backspace issue, for me it does work in main branch now https://github.com/raphamorim/rio/releases/tag/canary-b2f1b6bdc079a85fd6138e2e4c85309c6eb89255

@bruisedsamurai
Copy link
Contributor Author

Checked in latest update. Backspace is fixed but now control too deletes only one character.

@raphamorim raphamorim added the bug Something isn't working label Sep 21, 2023
@raphamorim
Copy link
Owner

Backspace is fixed but now control too deletes only one character.

you mean just control or backespace with control?

@bruisedsamurai
Copy link
Contributor Author

Backspace with control deletes one character too only.

@raphamorim
Copy link
Owner

Backspace with control deletes one character too only.

Does it work in other terminals? Asking just for a compassion. I know that it doesn't work on MacOS/linux uses backspace+alt https://github.com/alacritty/alacritty/blob/b4130ddf24d9612cce4cb043e9b15acc086369a1/alacritty/src/config/bindings.rs#L434C6-L434C6

@bruisedsamurai
Copy link
Contributor Author

I am using Windows Terminal and it works there

@raphamorim
Copy link
Owner

Ok did a small research about it, apparently control+backspace is a shortcut is something that Bash does for you, it's not something the terminal emulator provides.

But I suppose people would like to have it enabled if they are using windows so I enabled in the commit ae0ffd0. We have few exceptions for this cases like MacOS shortcuts to navigate.

More details about it here alacritty/alacritty#2930 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants