[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless 123d2fa19c 064/204: Document selectrum integr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless 123d2fa19c 064/204: Document selectrum integration |
Date: |
Tue, 11 Jan 2022 12:58:18 -0500 (EST) |
branch: externals/orderless
commit 123d2fa19c9ea10a488a9289b5414b4f4f48a2dc
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Document selectrum integration
---
README.org | 46 ++++++++++++++++++++++++++++++++++++++--------
1 file changed, 38 insertions(+), 8 deletions(-)
diff --git a/README.org b/README.org
index 889df69fe9..cb7fd86acf 100644
--- a/README.org
+++ b/README.org
@@ -3,19 +3,26 @@
:TOC: :include all :ignore this
:END:
-This package provides an =orderless= completion style that divides the
+This package provides an =orderless= /completion style/ that divides the
pattern into space-separated components, and matches candidates that
match all of the components in any order. Each component can match in
any one of several ways: literally, as a regexp, as an initialism, in
the flex style, or as multiple word prefixes. By default, regexp and
initialism matches are enabled.
-Completion styles like =orderless= are used as entries in the variables
-=completion-styles= and =completion-category-overrides=, see their
-documentation. These completions styles can be used with the default
-Emacs completion UI (sometimes called minibuffer tab completion) or
-with the built-in Icomplete package (which is similar to the more
-well-known Ido Mode).
+A completion style is a backend for completion and is used from a
+frontend that provides a completion UI. Any completion style can be
+used with the default Emacs completion UI (sometimes called minibuffer
+tab completion) or with the built-in Icomplete package (which is
+similar to the more well-known Ido Mode). To use a completion style in
+this fashion simply add it as an entry in the variables
+=completion-styles= and =completion-category-overrides= (see their
+documentation).
+
+With a bit of effort, it might still be possible to use =orderless= with
+other completion UIs, even if those UIs don't support the standard
+Emacs completion styles. Currently there is support for
[[https://github.com/raxod502/selectrum][Selectrum]] (see
+below).
If you use MELPA, the easiest way to install =orderless= is via
=package-install=. If you use both MELPA and =use-package=, you can use:
@@ -54,9 +61,11 @@ Bug reports are highly welcome and appreciated!
- [[#ivy-and-helm][Ivy and Helm]]
- [[#prescient][Prescient]]
- [[#icicless-progressive-matching][Icicles's progressive matching]]
+- [[#integration-with-other-completion-uis][Integration with other completion
UIs]]
+ - [[#selectrum][Selectrum]]
:END:
-* Screenshot
+** Screenshot
This is what it looks like to use =describe-function= (bound by default
to =C-h f=) to match =eis ff=. Notice that in this particular case =eis=
@@ -192,3 +201,24 @@ separate components will do it. (Note that Ivy has an
analogous
command, also bound to =S-SPC=, called =ivy-restrict-to-matches=, so you
can get the effect of out of order matching without using
=ivy--regex-ignore-order=.)
+
+* Integration with other completion UIs
+
+Several excellent completion UIs exist for Emacs in third party
+packages. They do have a tendency to forsake standard Emacs APIs, so
+integration with them must be done on a case by case basis.
+
+If you manage to use =orderless= with a completion UI not listed here,
+please file an issue or make a pull request so others can benefit from
+your effort. The functions =orderless-filter= and
+=orderless-highlight-matches= are likely to help with the integration.
+
+** Selectrum
+
+To use =orderless= from Selectrum add this to your Selectrum
+configuration:
+
+#+begin_src emacs-lisp
+ (setq selectrum-refine-candidates-function #'orderless-filter)
+ (setq selectrum-highlight-candidates-function #'orderless-highlight-matches)
+#+end_src
- [elpa] externals/orderless d2b5d71e75 027/204: Better match face defaults (kindly contributed by Protesilaos), (continued)
- [elpa] externals/orderless d2b5d71e75 027/204: Better match face defaults (kindly contributed by Protesilaos), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ff6f57c7c8 046/204: Implement component matching styles, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 36bf6ee6df 048/204: Documentation improvements, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 42eb6bfc6e 053/204: Now on MELPA!, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1f7339fdf0 049/204: Minor improvements to README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d0143484d0 051/204: Fix missing ./ and ../ in file name completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2df602bc74 060/204: Add TOC to README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3827b4119c 056/204: Add screenshot, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c75f5d15dd 063/204: Add autoloads for orderless-filter and orderless-highlight-matches, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless fc441ecdf0 066/204: Update README TOC, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 123d2fa19c 064/204: Document selectrum integration,
ELPA Syncer <=
- [elpa] externals/orderless f4fa6a9d56 069/204: Add declaration of ivy-regex, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1a4bf2e237 071/204: Merge remote-tracking branch 'github/master', ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 278af2d607 068/204: Mention Ivy support in overview, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 46e4ecdba5 072/204: Improve ivy integration, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f25e2dcc02 081/204: Merge pull request #13 from clemera/patch-1, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b69b52289f 084/204: Add Company to TOC, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless bf91e1d8a2 095/204: Name sections of code, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 6c05cf8e00 096/204: Add global dispatcher to compute default matching styles, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 12ea1f2947 110/204: Make transients buffer local, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d42e41c8cb 111/204: Allow separator inside double quotes, ELPA Syncer, 2022/01/11