From 2099bc2c7e5f8c31ea00d93786b43a0ca293a5ce Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 6 Jan 2026 18:57:49 +0200 Subject: feat(.bashrc): vi command mode change string keybindings --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 466a1ef..fdd9360 100644 --- a/.bashrc +++ b/.bashrc @@ -241,6 +241,11 @@ export PROMPT_COMMAND="shell_var_fix;" bind "set vi-ins-mode-string \"$(left_cap)i$(right_cap)\"" bind "set vi-cmd-mode-string \"$(left_cap $PS_WARN)n$(right_cap $PS_WARN)\"" + bind -m vi-command '"ca\"":"F\"cf\""' + bind -m vi-command '"ca'\''":"F'\''cf'\''"' + bind -m vi-command '"ci\"":"T\"ct\""' + bind -m vi-command '"ci'\''":"T'\''ct'\''"' + # Huge thanks to: https://lists.gnu.org/archive/html/help-bash/2022-02/msg00023.html bind -x "\"\xC0\a\":set_tab_title \"\$READLINE_LINE\";printf \"$(left_cap $PS_DBG)%(%T)T$(right_cap $PS_DBG)\"" bind '"\xC0\r":accept-line' -- cgit v1.3.1-26-gb76a