lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

commands +icase +wildcard #6

Closed martong closed 9 years ago

martong commented 9 years ago

Hey,

This PR is about

lyuts commented 9 years ago

Merged. Thank you. In the long term I would like to ask users, what is preferred way to force case sensitiveness. Do you think it is a good idea to use bang on the function to trigger case [in]sensitiveness?

martong commented 9 years ago

It is a good idea to ask the users how would they use it. However, I think the default case_in_sensitiveness is the right way forward regarding to searches. One good argument to support this is that the silver searcher ag has also default case_in_sensitiveness. Also I am not sure if bang would be the best option to change case sensitiveness. For example :make, :LAg, :LAck, uses bang to not jump to the first match. Therefore, that might be confusing to users if we'd use bang to change case. What I had in my mind is to have something similar to vim's smartcase: all the upper case searches are case _in_sensitve by default, but if at least one character is upper case, than the search becomes case sensitive.