From 03302fd77092806ca17354f7442dc4be988b2392 Mon Sep 17 00:00:00 2001 From: tsi Date: Thu, 23 Oct 2025 01:12:21 +0200 Subject: [PATCH] #1: Add TODO comment about approaching a perfect implementation --- bash-abbr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash-abbr b/bash-abbr index 7e4ccdf..183ca7b 100644 --- a/bash-abbr +++ b/bash-abbr @@ -181,6 +181,10 @@ bash_abbr () { # bind '"'"$ch"'": "\e\C-a'"$ch"'\e^"' # Moves point weirdly done + # TODO To get it fully working in all edge cases (as far as we can parse), + # we need to implement recursive alias expansion on the entire line + # like bash does. Basically something like alias-expand-line but + # called as many times as possible before recursion would happen. bind -x '"\e\C-an": _try_abbrev ""' bind '"\e\C-j": accept-line' bind '"\C-m": "\e\C-an\e^\e\C-j"'