martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.23k stars 256 forks source link

Add ignorecase option #876

Closed deepcube closed 3 years ago

deepcube commented 3 years ago

Add a global ignorecase boolean option. When set add REG_ICASE to cflags when calling text_regex_compile().

deepcube commented 3 years ago

I couldn't make up my mind as to where in each of the lists (sam.c, vis-cmds.c, vis-core.h, vis.1) to put ignorecase so I just added it to the bottom of each. I was tempted to put it with the other boolean settings but they seemed to all be about display settings so I wasn't sure if it belonged with them. I'm happy to move things around or have you move them around to keep a more consistent style/order.

deepcube commented 3 years ago

Updated to reduce line length as per IRC discussion