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

Control + Backspace to delete previous word #52

Closed
wants to merge 1 commit into from

Conversation

orhnk
Copy link

@orhnk orhnk commented Jul 16, 2023

Summary

Before then default st was using combinations like: ctrl + alt + h or alt + backspace to delete the previous word.

This is a common problem in terminal emulators. (See [0])

All of these problems are solved by remapping the keybinding (In our case its ctrl + backspace)

So here is the mapping I added:

static Key key[] = {
  /*
      ...
  */
  /* keysym           mask            string      appkey appcursor */
  { XK_BackSpace,     ControlMask,    "\x17",          0,    0},
  /*
      ...
  */
}

Which adresses: #51

[0]:
- Kitty
- Alacritty
- Terminal

So on ...

@orhnk orhnk marked this pull request as ready for review July 16, 2023 07:23
@siduck
Copy link
Owner

siduck commented Jan 13, 2024

we're good with default mappings like alt+backspace, so i dont think we should add more mappings. You are free to do it in your config

@siduck siduck closed this Jan 13, 2024
@orhnk orhnk deleted the control-backspace-not-working branch January 28, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants