+7

Auto escape regex patterns in find

Eric Huss il y a 12 ans mis à jour par otak0 il y a 11 ans 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.