Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why counsel-M-x doesn't use ivy-format-function #150

Closed
bixuanzju opened this issue Jun 18, 2015 · 1 comment
Closed

why counsel-M-x doesn't use ivy-format-function #150

bixuanzju opened this issue Jun 18, 2015 · 1 comment

Comments

@bixuanzju
Copy link

I have following lines in my config (stolen from your blog ;)

  (setq ivy-format-function 'eh-ivy-format-function)

  (defun eh-ivy-format-function (cands)
    (let ((i -1))
      (mapconcat
       (lambda (s)
         (concat (if (eq (cl-incf i) ivy--index)
                     "> "
                   "  ")
                 s))
       cands "\n")))

I like this little arrow indicating which line i am on. But counsel-M-x seems ignoring this.

@abo-abo
Copy link
Owner

abo-abo commented Jun 19, 2015

Thanks, fixed. I also updated ivy-format-function-arrow to the body of eh-ivy-format-function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants