From 562e142eef99fadf6291014b5de2c537d25c77ae Mon Sep 17 00:00:00 2001 From: azpsen Date: Wed, 7 Feb 2024 09:28:13 -0600 Subject: [PATCH] add ctrl+{backspace,del} to terminal --- .bashrc | 7 +++++++ .config/kitty/kitty.conf | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.bashrc b/.bashrc index abe09c8..6437073 100644 --- a/.bashrc +++ b/.bashrc @@ -49,6 +49,13 @@ export NNN_FCOLORS="AAAAE631BBBBCCCCDDDD9999" # feel free to change the colors export NNN_PLUG='p:preview-tui' # many other plugins are available here: https://github.com/jarun/nnn/tree/master/plugins export SPLIT='v' # to split Kitty vertically +# -------- # +# keybinds # +# -------- # + +bind '"\C-H": backward-kill-word' +bind '"\e[3;5~": kill-word' + # ------- # # startup # # ------- # diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 53e5119..6047f3b 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -2260,6 +2260,12 @@ shell_integration enabled #: Miscellaneous {{{ +#: Delete previous word +map control+backspace send_text all \x17 + +#: Delete next word +# map control+delete send_text all \x05 + #: Show documentation # map kitty_mod+f1 show_kitty_doc overview