stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Make select-from-menu completion case insensitive


From: John Li
Subject: Re: [STUMP] [PATCH] Make select-from-menu completion case insensitive
Date: Fri, 29 Aug 2008 07:48:30 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Aug 28, 2008 at 10:17:38PM +0200, Lionel Flandrin wrote:
> -         (match-regex (ppcre:create-scanner *current-menu-input*)))
> +         (match-regex (ppcre:create-scanner *current-menu-input* 
> :case-insensitive-mode t)))

This isn't quite what Shawn was talking about.

Basically, (1) when the user does not go out of their way to specify
case (i.e., they type in lowercase), the matching is case-insensitive.
But, (2) when the user /does/ capitalize something, it almost
certainly means they care about case, so make matching case-sensitive.

This is the "smartcase" option in vim, and it appears to be the
default in Emacs.


Cheers,
John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]