[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 44b2d7d 300/399: ivy.el (ivy-insert-current-full): Add and
From: |
Oleh Krehel |
Subject: |
[elpa] master 44b2d7d 300/399: ivy.el (ivy-insert-current-full): Add and bind to "C-M-y" |
Date: |
Sat, 20 Jul 2019 14:57:44 -0400 (EDT) |
branch: master
commit 44b2d7d6a8a81d1ed5c2aaa613eabe7e25c0b9a3
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-insert-current-full): Add and bind to "C-M-y"
* counsel.el (counsel-yank-directory): Make obsolete.
Fixes #2092
---
counsel.el | 7 ++-----
ivy.el | 8 +++++++-
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/counsel.el b/counsel.el
index a835908..953b071 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1693,14 +1693,11 @@ currently checked out."
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-DEL") 'counsel-up-directory)
(define-key map (kbd "C-<backspace>") 'counsel-up-directory)
- (define-key map (kbd "C-M-y") 'counsel-yank-directory)
(define-key map (kbd "`") (ivy-make-magic-action 'counsel-find-file "b"))
map))
-(defun counsel-yank-directory ()
- "Yank the current directory into the minibuffer."
- (interactive)
- (insert ivy--directory))
+(define-obsolete-function-alias 'counsel-yank-directory
'ivy-insert-current-full
+ "<2019-06-13 Thu>")
(when (executable-find "git")
(add-to-list 'ivy-ffap-url-functions 'counsel-github-url-p)
diff --git a/ivy.el b/ivy.el
index 5b13dc3..6611937 100644
--- a/ivy.el
+++ b/ivy.el
@@ -416,6 +416,7 @@ action functions.")
(define-key map (kbd "M-r") 'ivy-toggle-regexp-quote)
(define-key map (kbd "M-j") 'ivy-yank-word)
(define-key map (kbd "M-i") 'ivy-insert-current)
+ (define-key map (kbd "C-M-y") 'ivy-insert-current-full)
(define-key map (kbd "C-o") 'hydra-ivy/body)
(define-key map (kbd "M-o") 'ivy-dispatching-done)
(define-key map (kbd "C-M-o") 'ivy-dispatching-call)
@@ -4233,8 +4234,13 @@ Don't finish completion."
(insert (substring-no-properties
(ivy-state-current ivy-last) 0 end))))
+(defun ivy-insert-current-full ()
+ "Insert the full Yank the current directory into the minibuffer."
+ (interactive)
+ (insert ivy--directory))
+
(define-obsolete-variable-alias 'ivy--preferred-re-builders
- 'ivy-preferred-re-builders "0.10.0")
+ 'ivy-preferred-re-builders "0.10.0")
(defcustom ivy-preferred-re-builders
'((ivy--regex-plus . "ivy")
- [elpa] master f40b08a 293/399: ivy-display-function: obsolete this varible in favor ivy-display-functions-alist, (continued)
- [elpa] master f40b08a 293/399: ivy-display-function: obsolete this varible in favor ivy-display-functions-alist, Oleh Krehel, 2019/07/20
- [elpa] master 332f990 285/399: ivy.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 779db1e 292/399: ivy.el (ivy--occur-insert-lines): Add copy-sequence, Oleh Krehel, 2019/07/20
- [elpa] master a73e24d 288/399: Do not insert initial input if nil, Oleh Krehel, 2019/07/20
- [elpa] master 0b26219 301/399: counsel.el (counsel--file-name-filter): Move ignore-re binding., Oleh Krehel, 2019/07/20
- [elpa] master ef6d3db 297/399: ivy-overlay.el (ivy-display-function-overlay): Bring back org-indent-mode logic, Oleh Krehel, 2019/07/20
- [elpa] master 7feb14f 289/399: ivy.el (ivy-format-functions-alist): New defcustom, obsoletes ivy-format-function, Oleh Krehel, 2019/07/20
- [elpa] master b528f0f 299/399: ivy-overlay.el (ivy-display-function-overlay): Fix org-indent-mode once more, Oleh Krehel, 2019/07/20
- [elpa] master ef1e8d5 294/399: ivy.el (ivy-read): Don't use ivy-display-function, Oleh Krehel, 2019/07/20
- [elpa] master 57a57d1 302/399: swiper.el (swiper--multi-candidates): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 44b2d7d 300/399: ivy.el (ivy-insert-current-full): Add and bind to "C-M-y",
Oleh Krehel <=
- [elpa] master d39f82b 307/399: counsel-yank-pop-height is obselete and doesn't do anything, Oleh Krehel, 2019/07/20
- [elpa] master c11797a 290/399: swiper.el (swiper--line-at-point): Fix swiper-isearch in compilation buffers, Oleh Krehel, 2019/07/20
- [elpa] master 94f107b 304/399: counsel.el (counsel-mark-ring): Add highlight by candidate, Oleh Krehel, 2019/07/20
- [elpa] master 034f3af 306/399: swiper.el (swiper-isearch): Allow char-fold-to-regexp, Oleh Krehel, 2019/07/20
- [elpa] master 5cc1e5c 298/399: swiper.el (swiper-isearch-thing-at-point): Improve, Oleh Krehel, 2019/07/20
- [elpa] master 3b6c898 303/399: counsel.el (counsel-mark-ring): Add preview by candidate, Oleh Krehel, 2019/07/20
- [elpa] master 93616f7 296/399: ivy.el (ivy--regex): Match initial dot in the input as a literal dot, Oleh Krehel, 2019/07/20
- [elpa] master ac1e07c 305/399: ivy.el (ivy--reset-state): Modify prompt for multi-isearch-buffers, Oleh Krehel, 2019/07/20
- [elpa] master 4078eb9 308/399: counsel.el (counsel-yank-pop-height): Remove, Oleh Krehel, 2019/07/20
- [elpa] master 895906e 309/399: counsel.el (counsel-descbinds-function): Add, Oleh Krehel, 2019/07/20