selection-highlight-mode icon indicating copy to clipboard operation
selection-highlight-mode copied to clipboard

Add customizable ignored patterns (ex. spaces-only selection)

Open abougouffa opened this issue 1 year ago • 0 comments

This adds a way to exclude any arbitrary text from the highlighted selections (configured as a list of regular expressions to ignore).

The default value is set to ignore space-only selections. We can set it to nil by default so we keep the current behavior, with the user being able to customize it easily.

This PR will fixes the issue addressed by #2 when the value is set to ignore space-only regions. So, it is a more generic approach to fix this issue.

abougouffa avatar Jul 31 '24 14:07 abougouffa