Is it possible to make isearch disregard line breaks, i.e. a search for foo bar
will find
.......... foo
bar .....
I get bitten by isearch failing on such queries regularly when navigating long documents, and it's rather annoying. I am aware that word-search-forward
finds matches across lines, but it has certain shortcomings (e.g. it forces you to use complete words, so a search for "foo b" will fail; it doesn't highlight search results), and, more importantly, it's a little silly to use a different command depending on whether you are searching for one word or two.
Use C-M-s - isearch-forward-regexp. This will interpret space characters as a marker for any white space character.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With