Guake / guake

Drop-down terminal for GNOME
https://guake.github.io
GNU General Public License v2.0
4.42k stars 574 forks source link

Ctrl+Backspace for delete prev word #1004

Open hxss opened 7 years ago

hxss commented 7 years ago

There is the same issues: https://github.com/Guake/guake/issues/51 https://github.com/Guake/guake/issues/979 But I need exactly "Ctrl+Backspace". Without compromises. Without Ctrl+W. Without ESC-Backspace. All other terminals can do this. Why guake still cant? Anyway, thanks for the excellent terminal.

aichingm commented 7 years ago

@hxss what shell are you using? bash, zsh, ...

hxss commented 7 years ago

@aichingm zsh. I can use any symbol for delete word, but in guake Backspace and Ctrl+Backspace return same symbol in any mode(ascii, esc, H)

egmontkob commented 7 years ago

Guake uses Gtk+ version 2, and in turn, version 0.28 of the VTE terminal emulator widget which is 6+ years old and is no longer maintained. All development, including generating a different sequence for Ctrl+Backspace than for Backspace, plus tons of other important ones (crash fixes, data corruption fixes, emulation fixes and improvements, privacy improvements, 10x performance boost, and a whole bunch of new features; more than 1000 commits) went into the newer, Gtk+ 3 based versions of VTE.

All other VTE-based terminal emulators that I'm aware of and are not completely abandoned have already migrated to newest VTE. It's a pity that apparently Guake's author doesn't have the necessary time/motivation/whatever... :(

See #872.

egmontkob commented 7 years ago

By the way, Guake could probably workaround this particular limitation of old VTEs by grabbing Ctrl+Backspace (not letting it directly reach VTE) and then feeding whatever other bytes to VTE. It's ugly though.

EBoisseauSierra commented 5 years ago

You might want to set it up via:

$ bindkey -M emacs '^H' backward-kill-word
Davidy22 commented 2 years ago

Present day, Guake uses the system version of Vte which can get updates, and I observe can presently emit a different signal for CTRL+backspace which allows for the binding of bindkey '^H' backward-kill-word. Is reporter still seeing this issue? There probably won't be a workaround of functionality for older VTE versions to pre-2016 versions of VTE as those shouldn't be getting pushed to users nowadays.