[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 3208d8131e 043/182: make undecorate select item more t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 3208d8131e 043/182: make undecorate select item more thorough |
Date: |
Tue, 13 Dec 2022 03:59:24 -0500 (EST) |
branch: elpa/flx
commit 3208d8131e746587732a3280a25c838e32f0caf5
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
make undecorate select item more thorough
- e.g. when selecting directory
---
flx-ido.el | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/flx-ido.el b/flx-ido.el
index e12725dc67..fb9ea25834 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -13,7 +13,7 @@
;; Version: 0.1
;; Last-Updated:
;; By:
-;; Update #: 35
+;; Update #: 39
;; URL:
;; Keywords:
;; Compatibility:
@@ -163,17 +163,25 @@ item, in which case, the ending items are deleted."
(defvar flx-ido-use t
"Use flx matching for ido.")
+(defadvice ido-exit-minibuffer (around flx-ido-undecorate activate)
+ "Remove flx properties after."
+ (let* ((obj (car ido-matches))
+ (str (if (consp obj)
+ (car obj)
+ obj)))
+ (when (and flx-ido-use str)
+ (remove-text-properties 0 (length str)
+ '(face flx-highlight-face) str)))
+
+ ad-do-it)
+
(defadvice ido-read-internal (around flx-ido-reset-hash activate)
"Clear flx narrowed hash beforehand.
Remove flx properties after."
- (if flx-ido-use
- (progn
- (clrhash flx-ido-narrowed-matches-hash)
- ad-do-it
- (remove-text-properties 0 (length ad-return-value)
- '(face flx-highlight-face) ad-return-value))
- ad-do-it))
+ (when flx-ido-use
+ (clrhash flx-ido-narrowed-matches-hash))
+ ad-do-it)
(defadvice ido-set-matches-1 (around flx-ido-set-matches-1 activate)
"Choose between the regular ido-set-matches-1 and my-ido-fuzzy-match"
- [nongnu] elpa/flx 7a2601481c 142/182: Simplify flx-propertize, (continued)
- [nongnu] elpa/flx 7a2601481c 142/182: Simplify flx-propertize, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b95294518c 155/182: Debian and Ubuntu installation instructions, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 46040d0b09 160/182: Merge pull request #97 from antmak/patch-1, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 05600ff855 167/182: Merge pull request #103 from phst/add-license-file, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e3b3f0533e 174/182: Merge pull request #108 from tarsiiformes/cleanup, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 48e10bf54f 177/182: Update to latest version of GPLv3 boilerplate, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 8ee8a877ab 028/182: boost entire match score, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 78dc69a666 023/182: fix query with CAPITAL letters, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 095f2e70f9 040/182: remove text property of selected item, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 50ff90fa08 017/182: add ido cache of narrowed list optimization, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3208d8131e 043/182: make undecorate select item more thorough,
ELPA Syncer <=
- [nongnu] elpa/flx fb1ded43df 044/182: cache cons cell lists too, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx d21ac098df 050/182: add option `flx-ido-use-faces', ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f9bd16221b 063/182: update large collection guidelines, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 27bc47899a 075/182: Merge pull request #37 from artagnon/make, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx abe1a77c02 081/182: Merge pull request #38 from artagnon/cl-lib, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9200e27309 083/182: use "flex" filtering when collection too large, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c85273a6e8 009/182: fix helm demo typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7110df04e2 005/182: update tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx fabca711e9 013/182: fix typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx dc739574ad 011/182: add helm demo without flx, ELPA Syncer, 2022/12/13