guake icon indicating copy to clipboard operation
guake copied to clipboard

Ctrl+Backspace and Ctlr+Shift+Backspace emit the same character

Open EBoisseauSierra opened this issue 6 years ago • 2 comments

Context

I have successfully created following key-bindings:

  • Ctrl+Delete to kill-word (i.e., delete from cursor to the end of next word),
  • Ctrl+Shift+Delete to kill-line (i.e., delete from cursor to the end of the line),
  • Ctrl+Backspace to backward-kill-word (i.e., delete from cursor to the beginning of previous word).

I want now to bind Ctrl+Shift+Backspace to backward-kill-line (i.e., delete from cursor to the beginning of the line).

Problem

Ctrl+Backspace and Ctrl+Shift+Backspace emit the same character.

Indeed:

  • Ctrl+C Ctrl+Backspace prints ^H
  • Ctrl+C Ctrl+Shift+Backspace prints ^H

I think it should emits another character, just like:

  • Ctrl+C Ctrl+Delete prints ^[[3;5~
  • Ctrl+C Ctrl+Shift+Delete prints ^[[3;6~

Configuration

Guake Terminal: 3.5.1 VTE: 0.52.2 VTE runtime: 0.52.2 Gtk: 3.22.30 Distro: Ubuntu 18.04.2 LTS GNOME: 3.28.2

EBoisseauSierra avatar Apr 04 '19 18:04 EBoisseauSierra

Guake's terminal escapes come from upstream vte, so ideally this should be done upstream. I've found an old issue on the vte tracker, will see where this goes.

Davidy22 avatar Sep 05 '21 00:09 Davidy22

@EBoisseauSierra I'm sorry to dig up an old thread but how exactly did you manage to create those bindings? 🤔

catalin560 avatar Sep 13 '23 10:09 catalin560