[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c78a306 09/54: ivy.el (ivy-kill-ring-save): Add and bind t
From: |
Oleh Krehel |
Subject: |
[elpa] master c78a306 09/54: ivy.el (ivy-kill-ring-save): Add and bind to "M-w" |
Date: |
Tue, 29 Sep 2015 14:09:49 +0000 |
branch: master
commit c78a30608e23afc193fbe2ab30b6f73d734c1aec
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-kill-ring-save): Add and bind to "M-w"
Fixes #197
---
ivy.el | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ivy.el b/ivy.el
index 36b75c0..7a7b80e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -139,6 +139,7 @@ Only \"./\" and \"../\" apply here. They appear in reverse
order."
(define-key map (kbd "M-o") 'ivy-dispatching-done)
(define-key map (kbd "C-k") 'ivy-kill-line)
(define-key map (kbd "S-SPC") 'ivy-restrict-to-matches)
+ (define-key map (kbd "M-w") 'ivy-kill-ring-save)
map)
"Keymap used in the minibuffer.")
(autoload 'hydra-ivy/body "ivy-hydra" "" t)
@@ -1648,6 +1649,18 @@ BUFFER may be a string or nil."
(when amend
(insert amend))))
+(defun ivy-kill-ring-save ()
+ "Store the current candidates into the kill ring.
+If the region is active, forward to `kill-ring-save' instead."
+ (interactive)
+ (if (region-active-p)
+ (call-interactively 'kill-ring-save)
+ (kill-new
+ (mapconcat
+ #'identity
+ ivy--old-cands
+ "\n"))))
+
(defun ivy-insert-current ()
"Make the current candidate into current input.
Don't finish completion."
- [elpa] master updated (af81566 -> 8b73497), Oleh Krehel, 2015/10/07
- [elpa] master c9235c8 04/54: counsel-locate should use '' for the regex, Oleh Krehel, 2015/10/07
- [elpa] master 432bc7e 10/54: Set line-spacing to 0 in the minibuffer, Oleh Krehel, 2015/10/07
- [elpa] master 39dfc80 05/54: Fix :dynamic-collection not being sorted, Oleh Krehel, 2015/10/07
- [elpa] master 970b984 01/54: Fix up ivy-recentf and ivy-switch-buffer window-wise, Oleh Krehel, 2015/10/07
- [elpa] master b844b69 19/54: ivy.el (ivy--format-minibuffer-line): Use add-face-text-property, Oleh Krehel, 2015/10/07
- [elpa] master c78a306 09/54: ivy.el (ivy-kill-ring-save): Add and bind to "M-w",
Oleh Krehel <=
- [elpa] master 6bf2913 25/54: Declare some SLIME functions, Oleh Krehel, 2015/10/07
- [elpa] master 5db65db 34/54: swiper.el (swiper--ivy): Fix compiler warning, Oleh Krehel, 2015/10/07
- [elpa] master 05d5e63 02/54: (counsel-locate): Allow customizing locate options, Oleh Krehel, 2015/10/07
- [elpa] master 33fa81e 14/54: counsel.el (counsel-jedi): New command, Oleh Krehel, 2015/10/07
- [elpa] master 435f2b6 38/54: Add work-around for minibuffer not re-sizing for many frames, Oleh Krehel, 2015/10/07
- [elpa] master 438e51d 24/54: counsel.el (counsel-git-grep-function): Fix up, Oleh Krehel, 2015/10/07
- [elpa] master 478e4e4 32/54: Make line numbers in swiper into display properties, Oleh Krehel, 2015/10/07
- [elpa] master 8fccfd3 03/54: (counsel-locate): Support OS X, Oleh Krehel, 2015/10/07
- [elpa] master 7684455 15/54: counsel.el (counsel--py-action): Work with "C-M-n", Oleh Krehel, 2015/10/07
- [elpa] master 9a509df 47/54: ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3, Oleh Krehel, 2015/10/07