简体   繁体   中英

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 ?

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM