+7

Auto escape regex patterns in find

Eric Huss 7 years ago updated by otak0 6 years ago 1
If you have some text selected, and open the find panel, the text is auto inserted (assuming find_selected_text is set).  However, this text does not have any regex characters escaped, so you can't actually search without manually escaping things (or turning off regular expressions, which I prefer not to do).

The auto-escape should work not only on search selection (Ctrl+E/Cmd+E) but on pasting text to search field also. The app with proper behaviour is TextWrangler.