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

Comments

Projects
None yet
2 participants
@bixuanzju

bixuanzju commented Jun 18, 2015

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 abo-abo closed this in a5e49ff Jun 19, 2015

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jun 19, 2015

Owner

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

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