4 deleted 17 characters in body; deleted 112 characters in body
source | link

Context

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+Shift+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+Shift+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+Shift+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

Question

➥ How to bind Ctrl+Shift+Backspace with backward-kill-line?

Context

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+Shift+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+Shift+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+Shift+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

Question

➥ How to bind Ctrl+Shift+Backspace with backward-kill-line?

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+Shift+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+Shift+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+Shift+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

3 edited tags
| link
2 added 8 characters in body; edited tags; edited title
source | link

How to key bind 'backward-kill-line' to Ctrl+Maj+BackspaceCtrl+Shift+Backspace?

Context

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+MajShift+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+MajShift+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+MajShift+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

Question

➥ How to bind Ctrl+MajShift+Backspace with backward-kill-line?

How to key bind 'backward-kill-line' to Ctrl+Maj+Backspace?

Context

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+Maj+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+Maj+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+Maj+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

Question

➥ How to bind Ctrl+Maj+Backspace with backward-kill-line?

How to key bind 'backward-kill-line' to Ctrl+Shift+Backspace?

Context

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding:

  • Ctrl+Backspace: delete until the beginning of current word,
  • Ctrl+Delete: delete until the end of current word,
  • Ctrl+Shift+Delete: delete until the end of the line.

This have been done using these commands:

$ bindkey -M emacs '^[[3;5~' kill-word
$ bindkey -M emacs '^H' backward-kill-word 
$ bindkey -M emacs '^[[3;6~' kill-line  

To know how to encode the keys (i.e., the ^[[3;5~ part), I used the "trick" detailed in the answer: "type Ctrl+C Ctrl+Delete to see what the value is on your system".

Problem

I would like to bind Ctrl+Shift+Backspace to the backward-kill-line command (i.e. delete everything between the cursor and the beginning of the line).

However, when I type Ctrl+C Ctrl+Shift+Backspace, my prompt only shows ^H — i.e. the same key combination as Ctrl+Backspace.

Question

➥ How to bind Ctrl+Shift+Backspace with backward-kill-line?

1
source | link