[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 796220b 357/395: ivy.el (ivy-alt-done): Exten
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 796220b 357/395: ivy.el (ivy-alt-done): Extend to programmed completion |
Date: |
Thu, 25 Feb 2021 08:32:38 -0500 (EST) |
branch: externals/ivy-hydra
commit 796220ba73e235129babdc5e1428b52926781538
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
ivy.el (ivy-alt-done): Extend to programmed completion
---
ivy.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ivy.el b/ivy.el
index ed5f6aa..f52a9c3 100644
--- a/ivy.el
+++ b/ivy.el
@@ -931,6 +931,12 @@ Is is a cons cell, related to
`tramp-get-completion-function'."
"Customize what `ivy-alt-done' does per-collection."
:type '(alist :key-type symbol :value-type function))
+(defun ivy--completing-fname-p ()
+ (eq 'file (cdr (assoc
+ 'category
+ (ignore-errors
+ (funcall (ivy-state-collection ivy-last) ivy-text nil
'metadata))))))
+
(defun ivy-alt-done (&optional arg)
"Exit the minibuffer with the selected candidate.
When ARG is t, exit with current text, ignoring the candidates.
@@ -944,6 +950,8 @@ of exiting. This function is otherwise like `ivy-done'."
(ivy-immediate-done))
((setq alt-done-fn (ivy-alist-setting ivy-alt-done-functions-alist))
(funcall alt-done-fn))
+ ((ivy--completing-fname-p)
+ (ivy--directory-done))
(t
(ivy-done)))))
- [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer, (continued)
- [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a007ba6 334/395: Fix for counsel-grep-like-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra eb53165 313/395: ivy.el (ivy--compute-extra-actions): Dedup on key, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5d52d4b 352/395: Call isearch-filter-predicate instead of isearch-range-invisible, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7f88b67 345/395: counsel.el (counsel-highlight-with-face): New action for counsel-faces, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d52ee0a 301/395: ivy.el (ivy-completion-in-region): Restrict new behavior to elisp code, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3b1737c 361/395: * counsel.el (counsel-linux-app): Improve prompt., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1723799 368/395: Fix M-o 'Wrong type argument: characterp' error, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fc2801f 367/395: `counsel-find-file': open file in foreground, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ae9b121 366/395: Avoid face blending errors when loading swiper.el, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 796220b 357/395: ivy.el (ivy-alt-done): Extend to programmed completion,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 911a360 365/395: Consistently use modern face spec syntax, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 74f411d 355/395: Remove Emacs 28 workaround in counsel-descbinds, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 778d8bf 363/395: * counsel.el (counsel-org-files): Simplify regexp., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ab36ccb 364/395: * counsel.el (counsel-org-files): Fix regexp., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b65e401 351/395: counsel.el (counsel-file-jump-from-find): Add and bind to "`", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c6b60d3 337/395: counsel.el (counsel-ag): Prompt for args on a double universal-argument, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d18ec97 338/395: counsel.el (compile-command): better handle our metadata, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d321048 358/395: ivy.el (ivy-add-prompt-count): Simplify, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 96b433d 369/395: Handle Windows directory separator in ivy-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e43141d 373/395: ivy.el: Make sure swiper-isearch works with "M-r", Basil L. Contovounesios, 2021/02/25