Search code examples
emacsbufferemacs-helm

search emacs buffer like helm grep?


You can search for word list ('hello', 'world') by typing world <space> hello in helm-grep

I currently use ido for buffer switching, and I have to type world C-<space> hello to filter by two words.

Is there a buffer switch mode which offer the filtering by words separated by just a space?


Solution

  • Try this:

    (defun my-ido-setup-hook ()
      (define-key
          ido-buffer-completion-map
          " "
        'ido-restrict-to-matches))
    
    (add-hook 'ido-setup-hook 'my-ido-setup-hook)