[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6067bc6 169/173: Mention company-sort-prefer-same-case-pre
From: |
Dmitry Gutov |
Subject: |
[elpa] master 6067bc6 169/173: Mention company-sort-prefer-same-case-prefix |
Date: |
Thu, 23 Jun 2016 00:28:48 +0000 (UTC) |
branch: master
commit 6067bc693b739c6b5d17393809404e0aef831a2a
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Mention company-sort-prefer-same-case-prefix
---
NEWS.md | 1 +
company.el | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/NEWS.md b/NEWS.md
index 0354b92..0ded600 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -5,6 +5,7 @@
* Group of backends can now contain keyword `:separate`, which makes candidates
from different backends sorted separately in the combined list.
* New frontend `company-pseudo-tooltip-unless-just-one-frontend-with-delay`.
+* New transformer `company-sort-prefer-same-case-prefix`.
* The value of `company-dabbrev-ignore-buffers` can also be a function.
* `company-files` has been moved to right after `company-capf` in
`company-backends`
diff --git a/company.el b/company.el
index 9e45e92..27bee54 100644
--- a/company.el
+++ b/company.el
@@ -1356,9 +1356,9 @@ from the rest of the backends in the group, if any, will
be left at the end."
(or (not b1) (not (memq b1 low-priority)))))))))))
(defun company-sort-prefer-same-case-prefix (candidates)
- "Prefer CANDIDATES with the same case sensitive prefix.
+ "Prefer CANDIDATES with the exact same prefix.
If a backend returns case insensitive matches, candidates with the an exact
-prefix match will be prioritized even if this changes the lexical order."
+prefix match (same case) will be prioritized."
(cl-loop for candidate in candidates
if (string-prefix-p company-prefix candidate)
collect candidate into same-case
- [elpa] master c38d382 147/173: Fixed typo, (continued)
- [elpa] master c38d382 147/173: Fixed typo, Dmitry Gutov, 2016/06/22
- [elpa] master 1275cdd 141/173: Bump copyright, Dmitry Gutov, 2016/06/22
- [elpa] master 4f0d7a1 131/173: Kill trailing / on directories completion, Dmitry Gutov, 2016/06/22
- [elpa] master 1de23f8 148/173: Merge pull request #486 from akirakyle/patch-1, Dmitry Gutov, 2016/06/22
- [elpa] master c12216b 140/173: re-sort, Dmitry Gutov, 2016/06/22
- [elpa] master e525793 143/173: company-dabbrev--search-buffer: Speed up, Dmitry Gutov, 2016/06/22
- [elpa] master 7d2d49b 150/173: company--fetch-candidates: Bind non-essential, Dmitry Gutov, 2016/06/22
- [elpa] master 90ec4ce 153/173: Don't call company-abort right after startup, Dmitry Gutov, 2016/06/22
- [elpa] master d48eaee 155/173: Merge pull request #499 from fice-t/autoload, Dmitry Gutov, 2016/06/22
- [elpa] master e0d2bf0 157/173: company-bbdb: Use full names as prefix, Dmitry Gutov, 2016/06/22
- [elpa] master 6067bc6 169/173: Mention company-sort-prefer-same-case-prefix,
Dmitry Gutov <=
- [elpa] master adfb2d9 167/173: Mention company-pseudo-tooltip-unless-just-one-frontend-with-delay in NEWS, Dmitry Gutov, 2016/06/22
- [elpa] master ce38a7d 166/173: Replace :sorted with :separate, and sort within each chunk, Dmitry Gutov, 2016/06/22
- [elpa] master 971eea5 170/173: Bump copyright, Dmitry Gutov, 2016/06/22
- [elpa] master de9f2e1 163/173: Add support for auto-complete like behavior (#524), Dmitry Gutov, 2016/06/22
- [elpa] master 212c8fc 172/173: Make a new release, Dmitry Gutov, 2016/06/22
- [elpa] master 7a2deff 173/173: Merge commit '212c8fc3101781a2f1c55ca61772eb75a2046e87' from company, Dmitry Gutov, 2016/06/22
- [elpa] master c6d5330 165/173: company-eclim--project-dir: Try to handle non-project buffers, Dmitry Gutov, 2016/06/22