phi-search icon indicating copy to clipboard operation
phi-search copied to clipboard

switch to previous/next keyword

Open futurist opened this issue 8 years ago • 4 comments

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?

futurist avatar Apr 13 '16 08:04 futurist

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

zk-phi avatar Apr 13 '16 10:04 zk-phi

possible to add this feature?

futurist avatar Apr 13 '16 11:04 futurist

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

zk-phi avatar Apr 14 '16 08:04 zk-phi

@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)

czipperz avatar May 12 '19 21:05 czipperz