[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tab-completion should adjust case of suggestion if a respective file
From: |
Chet Ramey |
Subject: |
Re: tab-completion should adjust case of suggestion if a respective file exists |
Date: |
Tue, 15 Nov 2022 10:51:53 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
On 11/14/22 12:20 PM, Martin Castillo wrote:
Hi,
weird subject. Just consider this:
# assume: set completion-ignore-case on
$ mkdir new && cd new;
$ mkdir Foo foobar
$ ls f<TAB>
$ ls foo
foo does not exist, but Foo is (the only) matching foo not considering
case. I suggest readline to suggest Foo instead of foo.
Since you've told readline not to consider case when completing, why would
it want to change what the user typed? It matched, after all.
Consider a file system that's case-insensitive but case-preserving. You
wouldn't want to change what the user typed in that case.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/