
(c3-width (- (window-width) 9 c1-width c2-width))) ( let* ((url (url-encode-url (format "" input))) "Ivy interface for dynamically querying docs." counsel-apple-search.el -*- lexical-binding: t -*. I know, I'm picky, but that's the whole point of DWIM… so here's my function to search forward that does exactly what ✨I✨ mean:

But only swiper, not other ivy utilities. Oh, and I also would like swiper to wrap around (see ivy-wrap). Let's also tweak swiper's behavior a little further and prepopulate its search term with the active region. It must switch between swiper, isearch, and phi-search depending on what I want (search buffer, define macro, or search multiple cursors). Rather than binding C-s to swiper, let's write a DWIM function that's aware of macros and multiple cursors. Both wonderful, but neither can rely on swiper to do their thing.

Take keyboard macros and multiple cursors. Swiper services most needs until I start combining with other tools. Swiper is my default goto mechanism and have it bound to C-s (replacing the built-in isearch-forward).

I'm a fan of Oleh Krehel's swiper, but before that, I often relied on the built-in isearch. There are no shortages of buffer searching packages for Emacs. I've talked about DWIM in the past, that wonderful Emacs ability to do what ✨I✨ mean.Įmacs being hyper-configurable, we can always teach it more things, so it can do exactly what we mean.
