[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 948620f 04/31: Propertize remote buffers with ivy-remote f
From: |
Oleh Krehel |
Subject: |
[elpa] master 948620f 04/31: Propertize remote buffers with ivy-remote face |
Date: |
Fri, 01 May 2015 14:28:42 +0000 |
branch: master
commit 948620f3b5c6d7bc645601bf5202d7b641472e1f
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Propertize remote buffers with ivy-remote face
* ivy.el (ivy-remote): New face.
(ivy-read): Update.
Fixes #61
---
ivy.el | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ivy.el b/ivy.el
index 2330ac0..0275a2c 100644
--- a/ivy.el
+++ b/ivy.el
@@ -52,6 +52,10 @@
'((t (:weight bold)))
"Face used by Ivy for highlighting subdirs in the alternatives.")
+(defface ivy-remote
+ '((t (:foreground "#110099")))
+ "Face used by Ivy for highlighting remotes in the alternatives.")
+
(defcustom ivy-height 10
"Number of lines for the minibuffer window."
:type 'integer)
@@ -466,6 +470,15 @@ When SORT is t, refer to `ivy-sort-functions-alist' for
sorting."
(equal initial-input default-directory))
(setq coll (cons initial-input coll)))
(setq initial-input nil)))
+ ((eq collection 'internal-complete-buffer)
+ (setq coll
+ (mapcar (lambda (x)
+ (if (with-current-buffer x
+ (file-remote-p
+ (abbreviate-file-name default-directory)))
+ (propertize x 'face 'ivy-remote)
+ x))
+ (all-completions "" collection predicate))))
((or (functionp collection)
(vectorp collection)
(listp (car collection)))
- [elpa] master updated (fddedd2 -> 4137447), Oleh Krehel, 2015/05/01
- [elpa] master 455bea4 01/31: ivy.el (ivy--cd): Reset `ivy--old-re', Oleh Krehel, 2015/05/01
- [elpa] master 691b12c 02/31: ivy.el (ivy-read): Fixup preselect addition, Oleh Krehel, 2015/05/01
- [elpa] master 3953b16 03/31: Respect `confirm-nonexistent-file-or-buffer', Oleh Krehel, 2015/05/01
- [elpa] master 948620f 04/31: Propertize remote buffers with ivy-remote face,
Oleh Krehel <=
- [elpa] master e356df9 05/31: Reset to the first candidate when switching directories, Oleh Krehel, 2015/05/01
- [elpa] master 94fad10 06/31: Improve the match confirm while completing files, Oleh Krehel, 2015/05/01
- [elpa] master c816430 07/31: Minibuffer faces should inherit minibuffer-prompt, Oleh Krehel, 2015/05/01
- [elpa] master b2c9a20 09/31: Store the preselect and use it for empty ivy-text, Oleh Krehel, 2015/05/01
- [elpa] master 988b78f 08/31: Improve completion history using the propertize trick, Oleh Krehel, 2015/05/01
- [elpa] master eb43e4a 10/31: ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim, Oleh Krehel, 2015/05/01
- [elpa] master 00810d6 11/31: ivy.el (ivy--filter): Fixup, Oleh Krehel, 2015/05/01
- [elpa] master 7f04019 12/31: swiper.el (swiper-font-lock-ensure): Exclude `elfeed-search-mode', Oleh Krehel, 2015/05/01
- [elpa] master 278870e 13/31: Use alpha compositing to add ivy-current-match face, Oleh Krehel, 2015/05/01
- [elpa] master 57de44c 14/31: Makefile: Update, Oleh Krehel, 2015/05/01