On 2015-10-17, Bram Moolenaar wrote:
> Gary Johnson wrote:
> 
> > I never want to use 'ignorecase' when searching for a tag.  If the
> > cursor is over the symbol "cat" and I type Ctrl-], I want to find
> > the definition of "cat", not of "Cat" or "CAT".  Similarly, I don't
> > want tag-name expansion to ignore case.
> > 
> > However, I do like to use 'smartcase' (which requires setting
> > 'ignorecase') for searching with "/" or "?".
> > 
> > I've patched the copy of Vim I use at work to ignore the setting of
> > 'ignorecase' for tag searches and to always search case-sensitively.
> > I would like not to have to keep doing this but I realize that
> > changing the default behavior of tag searches is a non-starter.
> > 
> > Consequently, I propose a new option, 'tagignorecase':
> > 
> >                                         *'tagignorecase'* *'tic'*
> >     'tagignorecase' 'tic'   string  (default "")
> >                             global
> >                             {not in Vi}
> >             This option specifies how case is handled when searching
> >             the tags file:
> >               <empty>       Follow the 'ignorecase' option
> >               ignorecase    Ignore case
> >               noignorecase  Do not ignore case
> > 
> > A patch is attached.  The patch applies to too much--it includes
> > some runtime files that are managed by their owners--but I think it
> > covers everything that would need to be changed to include this
> > option.
> > 
> > I've been thinking more about the name.  I chose 'tagignorecase'
> > because it is similar to almost all the other options that control
> > case sensitivity.  However, those are all boolean options.  I think
> > a better name might be 'tagcase'.  It captures the meaning without
> > the implication that it is a boolean.
> > 
> > Since this is still at the early proposal stage, I just left the
> > original name in the proposal and in the patch.
> 
> I like short names, so "tagcase" would be good.  But then, what would
> the values be?  Perhaps "match" and "ignore"?

I was considering "ic" and "noic" because "ignorecase" and
"noignorecase" seemed awfully long, especially with to tab
completion for string option values, but I like "match" and
"ignore" better.

> Perhaps there are other places where we would like to use a specific
> option instead of the global 'ignorecase'?  If so, can we keep it
> consistent?

I couldn't think of any such places, but I agree that whatever
solution we choose here should be one that is usable in other
circumstances.  I think a string option with a name of the form
'<something>case' and with the values "" (follow 'ignorecase'),
"ignore" and "match" would be generally applicable.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui