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

@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
Copy link
Owner

@abo-abo 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants