[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Case insensitive filename completion?
From: |
Thomas Dickey |
Subject: |
Re: [vile] Case insensitive filename completion? |
Date: |
Sun, 6 Mar 2016 20:04:17 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Mar 06, 2016 at 08:21:07AM -0800, Marc Simpson wrote:
> Am I overlooking a flag to control case sensitivity in filename
> completion? Ideally, I'd like to enter
>
> :e rea^I
>
> and have vile expand this to
>
> :e README
>
> I find such behaviour convenient in my shell (bash) where
> completion-ignore-case is turned on.
There's no ignore-case for filename completion because vile uses the
buffer containing the actual filenames to match against. It works by
scanning the directory when you first start name-completion, caching
the result until a different directory is needed.
To get ignore-case, we could build a derived buffer of lowercased
pathnames, but that would be sorted and built at the same time -
a little slow.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature