[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two/Three Bugs Regarding Readline File Suggestions
From: |
Chet Ramey |
Subject: |
Re: Two/Three Bugs Regarding Readline File Suggestions |
Date: |
Tue, 10 Dec 2024 11:18:32 -0500 |
User-agent: |
Mozilla Thunderbird |
On 12/6/24 10:32 PM, Frederick Abell wrote:
Bug 1:
`colored-completion-prefix' highlights the first character,
even when not typed if `completion-prefix-display-length' is
set to >= 1. Also, typed letters are not highlighted at all if
the whole word suggestion matches the typed file and there is
more than one suggestion.
This is interesting. These two options are mutually exclusive, and
completion-prefix-display-length takes precedence (because they have to
calculate where to start printing the filename differently). The function
that prints the filename has to enforce this, since the function that
calls it does.
Bug 2:
Readline sugguests directories with two consecutive consecutive
slashes // when a matching glob is used on the command line.
This is more cosmetic than anything, since multiple slashes are the same
as a single slash. Plus it's a bash feature; readline doesn't know
anything about globbing.
I suppose bash could tell readline not to append a slash if the pattern
ends with a slash.
Bug 3:
Underscores appear instead of ellipsis for
`completion-prefix-display-length' if the readline suggestion
ellipsis are before a period .
This is intentional. It's a way to indicate that the filename begins with
a period. I'll add something to the documentation.
Chet
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature