[vim/vim] :filter does not ignore case when 'ignorecase' is set (#7918)

11 views
Skip to first unread message

Gabriel Dupras

unread,
Mar 1, 2021, 11:04:31 PM3/1/21
to vim/vim, Subscribed

Describe the bug
When 'ignorecase' is set I would expect :filter to ignore case in the pattern but it does not. If this is the intended behavior, I think it should be documented under :help :filter.

To Reproduce

  1. gvim --clean (or vim)
  2. :e a
  3. :e AA
  4. :filter a ls
  5. Only the file "a" is shown.

Expected behavior
I would expect both "a" and "AA" to appear in the output.

Environment:

  • Vim version: 8.2.2559
  • OS: Windows 10
  • Terminal: GUI

Additional context
As a workaround, I can do :filter /\ca/ ls to ignore case but I wish that was not necessary.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Bram Moolenaar

unread,
Mar 2, 2021, 1:34:04 PM3/2/21
to vim/vim, Subscribed

Having 'ignorecase' apply to :filter may not be desired by other users. It already applies to too many things.
As you mentioned, adding \c to the pattern has the desired effect.
I'll add a note that the pattern of :filter does not use 'ignorecase'.

Bram Moolenaar

unread,
Mar 2, 2021, 1:34:05 PM3/2/21
to vim/vim, Subscribed

Closed #7918.

Reply all
Reply to author
Forward
0 new messages