doom-emacs/lisp/cli
TEC bbf8934fd3
tweak(cli): use fancier string-dist suggestion alg
To improve the quality of "did you mean?"-style suggestions, shift from
using Ratcliff-Obershelp similarity to the Restricted
Damerau-Levenshtein string distance (also known as Optimal String
Alignment).

This code is a translation of a Julia implementation that I wrote a
while ago:
https://github.com/tecosaur/DataToolkitBase.jl/blob/v0.4.1/src/model/utils.jl#L40-L107

See https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance#Optimal_string_alignment_distance
and https://en.wikipedia.org/wiki/Gestalt_pattern_matching for more
information on these algorithms.
2024-05-21 17:16:46 +02:00
..
make
ci.el nit: revise comments, reformat config sections 2022-09-16 01:14:21 +02:00
compile.el refactor: s/doom-modules-dirs/doom-module-load-path/ 2024-05-21 17:16:39 +02:00
doctor.el docs: revise and fix nerd-icons doctor check 2024-05-21 17:16:12 +02:00
env.el fix(cli): ensure $EMACSDIR/lisp/cli is in $DOOMPATH 2024-05-21 17:16:43 +02:00
help.el nit: minor comment revision and refactors 2022-09-16 17:01:57 +02:00
info.el
install.el refactor!: replace all-the-icons with nerd-icons 2024-05-21 17:15:56 +02:00
make.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
meta.el tweak(cli): use fancier string-dist suggestion alg 2024-05-21 17:16:46 +02:00
packages.el refactor!: deprecate IS-* OS constants 2024-05-21 17:16:36 +02:00
profiles.el feat(cli): introduce DOOMPROFILELOAD{FILE,PATH} envvars 2022-09-18 00:28:13 +02:00
run.el fix(cli): link $XDG_*_HOME to fake $HOME for doom run 2022-09-18 13:55:47 +02:00
sync.el tweak(cli): doom sync: don't purge straight builds by default 2022-10-29 01:57:43 +02:00
test.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
upgrade.el docs(cli): doom upgrade: s/-f/--force 2022-09-30 22:59:37 +02:00