#1: Add TODO comment about approaching a perfect implementation

This commit is contained in:
tsi 2025-10-23 01:12:21 +02:00
parent 8508aa15fb
commit 03302fd770
No known key found for this signature in database

View file

@ -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"'