kakoune/rc/tools
Johannes Altmanninger 658c3385a9 ranked match: prefer input order over alphabetical order for user-specified completions
When using either of

	set-option g completers option=my_option
	prompt -shell-script-candidates ...

While the search text is empty, the completions will be sorted
alphabetically.
This is bad because it means the most important entries are not listed
first, making them harder to select or even spot.

Let's apply input order before resorting to sorting alphabetically.

In theory there is a more elegant solution: sort candidates (except
if they're user input) before passing them to RankedMatch, and then
always use stable sort. However that doesn't work because we use a
heap which doesn't support stable sort.

Closes #1709, #4813
2023-12-02 10:43:59 +01:00
..
go Adjust regex in gopls-def for when filepath contains a dash 2022-11-15 10:10:24 +01:00
python Fix jedi off-by-one and refactor jedi 2021-05-04 20:57:13 +02:00
rust simplify rust completion to match generic Kakoune completions 2019-05-17 20:00:40 +03:00
autorestore.asciidoc Update plugin docs to not duplicate docstring information. 2020-09-03 17:18:19 +10:00
autorestore.kak rc autorestore: fix regression due to ! breaking change 2022-04-28 19:32:24 +02:00
autowrap.kak Make x just select the full lines 2022-07-05 08:43:40 +10:00
clang.kak Move user mappings to <space> and keep/remove selection to , 2022-07-05 08:43:40 +10:00
comment.kak Added odinlang support 2023-09-24 17:03:07 -06:00
ctags.kak ranked match: prefer input order over alphabetical order for user-specified completions 2023-12-02 10:43:59 +01:00
doc.asciidoc Wrapped the lines at the 80th column 2022-05-06 10:33:12 -07:00
doc.kak ranked match: prefer input order over alphabetical order for user-specified completions 2023-12-02 10:43:59 +01:00
format.kak rc format: restore in-client error when formatcmd fails 2022-04-09 15:36:02 +02:00
git.kak ranked match: prefer input order over alphabetical order for user-specified completions 2023-12-02 10:43:59 +01:00
grep.kak rc grep: include stderr in grep buffer 2023-11-12 11:59:11 +01:00
lint.asciidoc Reference content goes in docstrings, explanations go in prose docs. 2020-09-04 19:20:50 +10:00
lint.kak Fix #3957 2021-07-09 22:18:25 -03:00
make.kak rc/make.kak reuse make_error_pattern 2023-11-02 09:11:18 +08:00
man.kak ranked match: prefer input order over alphabetical order for user-specified completions 2023-12-02 10:43:59 +01:00
menu.kak rc tools menu: add -on-abort switch 2023-11-20 20:47:22 +01:00
patch-range.pl rc tools patch: "patch" command to apply selections in diffs to file 2023-11-04 12:14:48 +01:00
patch.kak rc tools patch: "patch" command to apply selections in diffs to file 2023-11-04 12:14:48 +01:00
spell.kak fix a sed error on mac 2023-09-05 14:48:26 +08:00