[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 20e3fe8595 141/182: Make flx word separators customiza
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 20e3fe8595 141/182: Make flx word separators customizable |
Date: |
Tue, 13 Dec 2022 03:59:38 -0500 (EST) |
branch: elpa/flx
commit 20e3fe8595d263d8c91993c3e3e4692e73d68e09
Author: PythonNut <PythonNut@users.noreply.github.com>
Commit: PythonNut <PythonNut@users.noreply.github.com>
Make flx word separators customizable
---
flx.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/flx.el b/flx.el
index ba7b8e8dfe..86d4b64ec3 100644
--- a/flx.el
+++ b/flx.el
@@ -52,6 +52,16 @@
(require 'cl-lib)
+(defgroup flx nil
+ "Fuzzy matching with good sorting"
+ :group 'convenience
+ :prefix "flx-")
+
+(defcustom flx-word-separators '(?\ ?- ?_ ?: ?. ?/ ?\\)
+ "List of characters that act as word separators in flx"
+ :type '(repeat character)
+ :group 'flx)
+
(defface flx-highlight-face '((t (:inherit font-lock-variable-name-face :bold
t :underline t)))
"Face used by flx for highlighting flx match characters."
:group 'flx)
@@ -60,7 +70,7 @@
(defsubst flx-word-p (char)
"Check if CHAR is a word character."
(and char
- (not (memq char '(?\ ?- ?_ ?: ?. ?/ ?\\)))))
+ (not (memq char flx-word-separators))))
(defsubst flx-capital-p (char)
"Check if CHAR is an uppercase character."
- [nongnu] elpa/flx 5fe7f8a94a 121/182: Add algorithmic optimizations, (continued)
- [nongnu] elpa/flx 5fe7f8a94a 121/182: Add algorithmic optimizations, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b9c2d42b67 122/182: Remove deprecated tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 41842ff7b3 123/182: Small performance tweaks, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c8a17f199 127/182: cadar -> cl-cadar, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx ba2a503873 128/182: use Cask to manage deps, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 279179b5af 133/182: travis show pwd, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 321efc25da 132/182: fix Makefile circular dependency, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 4d625bdfb9 135/182: Test score before building possible match, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a9f26b2840 138/182: Fix caching of nil, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx aba36b564e 139/182: Rename flx-get-matches-worker, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 20e3fe8595 141/182: Make flx word separators customizable,
ELPA Syncer <=
- [nongnu] elpa/flx 8959c45907 147/182: Bump version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 20e3073352 148/182: Merge pull request #78 from lewang/0.6, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx dd4b4d50da 149/182: Hotfix: Raise recursion limits dynamically, fixes #79, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 77e82ddd21 150/182: Move definition of flx-ido-mode to appease byte-compiler, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7fce6a4cdb 153/182: Bump version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx d633b6e14a 157/182: Set custom type of options, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c5cb5de02 158/182: Merge pull request #95 from emacsjanitors/silencio, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7017d8416b 163/182: Add LICENSE file., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e5c0680ebf 165/182: Add badges to README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f589b237b8 172/182: Add a proper library commentary, ELPA Syncer, 2022/12/13