[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d41cc69 086/167: Pulse after ivy-occur-press
From: |
Oleh Krehel |
Subject: |
[elpa] master d41cc69 086/167: Pulse after ivy-occur-press |
Date: |
Tue, 08 Dec 2015 10:50:08 +0000 |
branch: master
commit d41cc69ae15bbccb4ee11028534b8f5726691f0e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Pulse after ivy-occur-press
* ivy.el (ivy-state): New field TEXT.
(ivy-occur): Add `ivy-text' to the name of the buffer. Also store
`ivy-text' in `ivy-occur-last'. Might be needed in the future for a more
specific pulse.
(ivy-occur-press): Pulse the selected line.
---
ivy.el | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index 8f993e5..d8d7592 100644
--- a/ivy.el
+++ b/ivy.el
@@ -190,6 +190,8 @@ Only \"./\" and \"../\" apply here. They appear in reverse
order."
window
;; The buffer in which `ivy-read' was called
buffer
+ ;; The value of `ivy-text' to be used by `ivy-occur'
+ text
action
unwind
re-builder
@@ -2095,13 +2097,15 @@ It's possible to have an unlimited amount of
*ivy-occur* buffers."
(let (caller)
(pop-to-buffer
(generate-new-buffer
- (format "*ivy-occur%s*"
+ (format "*ivy-occur%s \"%s\"*"
(if (setq caller (ivy-state-caller ivy-last))
(concat " " (prin1-to-string caller))
- ""))))
+ "")
+ ivy-text)))
(read-only-mode)
(setq ivy-occur-action (ivy--get-action ivy-last))
(setq-local ivy--directory ivy--directory)
+ (setf (ivy-state-text ivy-last) ivy-text)
(setq ivy-occur-last ivy-last)
(let ((inhibit-read-only t))
(erase-buffer)
@@ -2130,11 +2134,15 @@ EVENT gives the mouse position."
(defun ivy-occur-press ()
"Execute action for the current candidate."
(interactive)
- (let ((ivy-last ivy-occur-last))
+ (require 'pulse)
+ (let* ((ivy-last ivy-occur-last)
+ (ivy-text (ivy-state-text ivy-last)))
(funcall ivy-occur-action
(buffer-substring
(+ 4 (line-beginning-position))
- (line-end-position)))))
+ (line-end-position)))
+ (with-ivy-window
+ (pulse-momentary-highlight-one-line (point)))))
(defun ivy-insert-current ()
"Make the current candidate into current input.
- [elpa] master 5f22310 069/167: counsel.el (counsel-git): Update default-directory, (continued)
- [elpa] master 5f22310 069/167: counsel.el (counsel-git): Update default-directory, Oleh Krehel, 2015/12/08
- [elpa] master 4a04d6e 031/167: Default ivy-display-style to 'fancy for Emacs>=24.5, Oleh Krehel, 2015/12/08
- [elpa] master 3ae4f1a 052/167: ivy-test.el (swiper--re-builder): Update, Oleh Krehel, 2015/12/08
- [elpa] master 713fd6d 049/167: Try to fix the previous commit, Oleh Krehel, 2015/12/08
- [elpa] master 297f48a 074/167: ivy.el: "M-n" should prefer url at point to symbol at point, Oleh Krehel, 2015/12/08
- [elpa] master 0e6c13b 076/167: swiper.el (swiper-font-lock-ensure): Exclude eems-stream-mode, Oleh Krehel, 2015/12/08
- [elpa] master f5b8bf2 079/167: Highlight modified file buffers with 'ivy-modified-buffer face, Oleh Krehel, 2015/12/08
- [elpa] master 70f6055 077/167: counsel.el (counsel-git-grep-query-replace): Add and bind to "M-q", Oleh Krehel, 2015/12/08
- [elpa] master 86d0884 087/167: fix 1-too-far scrolling issue, Oleh Krehel, 2015/12/08
- [elpa] master 16ccb0f 084/167: swiper.el (swiper-font-lock-ensure): Exclude debbugs-gnu-mode, Oleh Krehel, 2015/12/08
- [elpa] master d41cc69 086/167: Pulse after ivy-occur-press,
Oleh Krehel <=
- [elpa] master c6cc3f9 089/167: counsel.el (counsel-rhythmbox): Add :caller, Oleh Krehel, 2015/12/08
- [elpa] master 2f1133a 083/167: ivy.el (ivy-occur): Add and bind to "C-c o", Oleh Krehel, 2015/12/08
- [elpa] master 2797a9b 090/167: ivy.el (ivy-minibuffer-map): Bind "C-M-a" to ivy-read-action, Oleh Krehel, 2015/12/08
- [elpa] master 564e235 091/167: ivy.el (ivy-occur-press): Extend with-ivy-window, Oleh Krehel, 2015/12/08
- [elpa] master e9ba89e 085/167: Make ivy work with enable-recursive-minibuffers, Oleh Krehel, 2015/12/08
- [elpa] master 7a069be 088/167: ivy.el (ivy-occur-press): Work with counsel-rhythmbox, Oleh Krehel, 2015/12/08
- [elpa] master 32025e5 098/167: Add a better ivy-occur pulse to swiper and counsel-git-grep, Oleh Krehel, 2015/12/08
- [elpa] master b948987 095/167: Input "/sudo::" goes to current directory instead of root's home, Oleh Krehel, 2015/12/08
- [elpa] master 7317848 092/167: counsel.el (counsel-M-x): Add "definition" action, Oleh Krehel, 2015/12/08
- [elpa] master adf7fd3 097/167: swiper.el (swiper--add-overlays): Take extra WND arg, Oleh Krehel, 2015/12/08