zk-phi / phi-search

Another incremental search command, compatible with “multiple-cursors”
127 stars 12 forks source link

switch to previous/next keyword #49

Open futurist opened 8 years ago

futurist commented 8 years ago

Using emacs native isearch, there's M-p, M-n key to switch to previous/next keyword in history when in isearch minibuffer.

Is there any function similar to this in phi-search?

zk-phi commented 8 years ago

You can restore only the last keyword, by calling phi-search twice in sequence (C-s C-s)

futurist commented 8 years ago

possible to add this feature?

zk-phi commented 8 years ago

I think it's not very difficult, but I'm a bit busy for now and the feature will not be able soon...

czipperz commented 5 years ago

@futurist @zk-phi Try using

(define-key phi-search-default-map (kbd "M-p") #'ivy-previous-history-element)
(define-key phi-search-default-map (kbd "M-n") #'ivy-next-history-element)