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

counsel-yank-pop: add a defcustom, which can set SEPARATOR #660

Closed
tumashu opened this issue Sep 11, 2016 · 1 comment
Closed

counsel-yank-pop: add a defcustom, which can set SEPARATOR #660

tumashu opened this issue Sep 11, 2016 · 1 comment

Comments

@tumashu
Copy link
Contributor

tumashu commented Sep 11, 2016

Like the below:
_026

    (defun counsel--yank-pop-format-function (cand-pairs)
      (ivy--format-function-generic
       (lambda (str)
         (mapconcat
          (lambda (s)
            (ivy--add-face s 'ivy-current-match))
          (split-string
           (counsel--yank-pop-truncate str) "\n" t)
          "\n"))
       (lambda (str)
         (counsel--yank-pop-truncate str))
       cand-pairs
       (concat "\n" (make-string 70 ?-) "\n")))
@abo-abo
Copy link
Owner

abo-abo commented Sep 11, 2016

Thanks.

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