klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Allow to configure capture mode for highlighters

Open variar opened this issue 4 years ago • 2 comments

For expressions like aaa.*(bbb|ccc) klogg assumes, that user wants to see only captured part highlighted. For regular highlighters that should be configurable and main match highlight should always highlight full match

variar avatar Jul 31 '21 08:07 variar

In aaa.*(bbb|ccc)|ddd, ddd is also not highlighted.

xaljer avatar Aug 01 '21 03:08 xaljer

In aaa.*(bbb|ccc)|ddd, ddd is also not highlighted.

This is expected. Only capture groups are highlighted if they are present. Here there is a capture group (bbb|ccc), and ddd is not captured

variar avatar Aug 01 '21 03:08 variar