This adds a combo-box to the find-in-files dialog which lets the user choose which kind of regular expressions shall be used: extended, basic or perl.
The pre-selected value is 'extended' so users which do not want to change the reg-exp mode used, do not need to change anything. If a user only toggles the checkbox to enable/disable regular expressions then anything works as it used to.
Also see #443. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1809
-- Commit Summary --
* find-in-files: choose reg-exp mode (extended/basic/perl)
-- File Changes --
M src/search.c (44)
-- Patch Links --
https://github.com/geany/geany/pull/1809.patch https://github.com/geany/geany/pull/1809.diff
The combo-box for choosing the reg-exp-mode is placed under the check-box for enabling/disabling regular expressions. The combo-box is inactive if regular expressions are disabled. See the following screenshots:
![geany-fif-regexp-off](https://user-images.githubusercontent.com/9009011/37554187-4dd4a324-29d5-11e...)
![geany-fif-regexp-on](https://user-images.githubusercontent.com/9009011/37554193-6269be1e-29d5-11e...)
![geayn-fif-regexp-choosing](https://user-images.githubusercontent.com/9009011/37554199-6eb737a0-29d5-11e...)
LGB(cursory)I
LGBI too. Just one question and one idea: - "reg. expr." looks a bit strange to me, maybe just use "regex" if it is common enough these days? - we could add the `grep` short command line options behind the option names, e.g. "Use Extended reg. expr. (-E)", so advanced grep users can quickly choose what they are used to from command line.
github-comments@lists.geany.org