Backspace removes whole words in Micro Editor #634

Open
opened 2021-01-03 17:08:41 +01:00 by fraunos · 4 comments
fraunos commented 2021-01-03 17:08:41 +01:00 (Migrated from github.com)

I tested alacritty and cool-retro-term and it occurs only in the latter. (https://micro-editor.github.io/)

I tested alacritty and cool-retro-term and it occurs only in the latter. (https://micro-editor.github.io/)
smithandrewl commented 2021-02-17 17:45:04 +01:00 (Migrated from github.com)

I am also having a simillar issue with Zsh. I am using Zsh on Manjaro with i3, and every time I hit backspace it removes the whole word.

I am also having a simillar issue with Zsh. I am using Zsh on Manjaro with i3, and every time I hit backspace it removes the whole word.
curio77 commented 2021-03-23 14:59:09 +01:00 (Migrated from github.com)

Same here with fish. I think the issue is that the terminal sends ^? instead of ^H for backspace. It'd be good to have a way of selecting which control sequence to send, as PuTTY and other terminal emulators allow.

Same here with fish. I think the issue is that the terminal sends ^? instead of ^H for backspace. It'd be good to have a way of selecting which control sequence to send, as PuTTY and other terminal emulators allow.
samueldy commented 2021-04-05 09:12:47 +02:00 (Migrated from github.com)

@smithandrewl, I am having the same issue with manjaro zsh. Can confirm that CRT sends ^H instead of ^? for backspace. You could redefine the key:

bindkey '^H' backward-delete-char

in a session or in your .zshrc conditionally (e.g., redefine key if stty -a | egrep '\berase = \^\?' doesn't return 0).

@smithandrewl, I am having the same issue with manjaro zsh. Can confirm that CRT sends ^H instead of ^? for backspace. You could redefine the key: ``` bindkey '^H' backward-delete-char ``` in a session or in your .zshrc conditionally (e.g., redefine key if `stty -a | egrep '\berase = \^\?'` doesn't return 0).
matthias4217 commented 2023-06-29 11:30:40 +02:00 (Migrated from github.com)

This looks intentional : 63228027e1/lib/default.keytab (L37)

Previously using Gnome Terminal with zsh, I had added bindkey "^H" backward-kill-dir to make Ctrl+Backspace delete whole word and not only a single character. I don’t know enough to give a proper opinion, but it looks like the various terminal emulators have different implementations.

This looks intentional : https://github.com/Swordfish90/qmltermwidget/blob/63228027e1f97c24abb907550b22ee91836929c5/lib/default.keytab#L37 Previously using Gnome Terminal with `zsh`, I had added `bindkey "^H" backward-kill-dir` to make `Ctrl+Backspace` delete whole word and not only a single character. I don’t know enough to give a proper opinion, but it looks like the various terminal emulators have different implementations.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#634
No description provided.