From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: new-flex-completion-style Date: Wed, 13 Feb 2019 01:28:11 +0100 Message-ID: <87sgwsa5wk.fsf@telefonica.net> References: <20190202232827.27331.87300@vcs0.savannah.gnu.org> <20190202232828.4AE452159A@vcs0.savannah.gnu.org> <87lg2mynrg.fsf@gmail.com> <87wom5amkd.fsf@telefonica.net> <878sykzmrs.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="88723"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 13 01:28:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtiQ3-000N08-2K for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2019 01:28:55 +0100 Original-Received: from localhost ([127.0.0.1]:48482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtiQ2-00026O-2x for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2019 19:28:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtiPv-000267-Ni for emacs-devel@gnu.org; Tue, 12 Feb 2019 19:28:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtiPq-0004Ac-MN for emacs-devel@gnu.org; Tue, 12 Feb 2019 19:28:47 -0500 Original-Received: from [195.159.176.226] (port=58904 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtiPq-0003p0-5p for emacs-devel@gnu.org; Tue, 12 Feb 2019 19:28:42 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gtiPR-000MIl-Tr for emacs-devel@gnu.org; Wed, 13 Feb 2019 01:28:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:gGhlKzMtKfI9/C71XUz5XZLdlFA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233267 Archived-At: João Távora writes: > Óscar Fuentes writes: > >> João Távora writes: > >> Do you know flx [1] ? Would it be possible to implement it on top of >> your work by providing a score function and/or a sort function? >> >> 1. https://github.com/lewang/flx > > I remember looking at this a long time ago. It looked interesting, but > is almost certainly more complex/featureful than my implementation, > which is reasonably simple and tries to play along with the Emacs's > completion style/table/UI framework, something which is still relatively > fluid (as you can read in this thread). So I'd rather take it slowly > before adding new features. > > But I don't know what features you are looking for exactly, can you be > specific? Basically, flx takes an input string and a list of candidates, assigns an score to each candidate and returns a filtered list of candidates sorted by the score. This seems the same you described on your commit message.