From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#44297: [Feature request] project.el: Additional utility functions Date: Sat, 31 Oct 2020 21:18:01 +0200 Organization: LINKOV.NET Message-ID: <87tuuap6m6.fsf@mail.linkov.net> References: <1785587458.69035.1603939939547@ichabod.co-bxl> <871rhhv4q8.fsf@mail.linkov.net> <64182b62-dad4-08db-379b-acfddea26327@yandex.ru> <87o8kkdwa6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22867"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 44297@debbugs.gnu.org, leungbk@mailfence.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 20:47:43 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYwqk-0005qD-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 20:47:42 +0100 Original-Received: from localhost ([::1]:56728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYwqj-0002UH-Mv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 15:47:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYwp9-0001lF-98 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 15:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYwp8-0003Mp-VC for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYwp8-0004bo-U8 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2020 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44297 X-GNU-PR-Package: emacs Original-Received: via spool by 44297-submit@debbugs.gnu.org id=B44297.160417353017604 (code B ref 44297); Sat, 31 Oct 2020 19:46:02 +0000 Original-Received: (at 44297) by debbugs.gnu.org; 31 Oct 2020 19:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:34572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYwoc-0004Zs-JN for submit@debbugs.gnu.org; Sat, 31 Oct 2020 15:45:30 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:39549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYwoY-0004ZO-S6 for 44297@debbugs.gnu.org; Sat, 31 Oct 2020 15:45:28 -0400 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 6E447100008; Sat, 31 Oct 2020 19:45:18 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Fri, 30 Oct 2020 19:42:52 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192302 Archived-At: >> file.html, file.js and file.css. > > OK. > > How will we choose among multiple files when there are more than 2? > Completing read on the file extension? Or just rotate among the files in > a pre-defined order? The convenience of rotating will degrade with increase of the number of found files. But maybe rotating among 3 files would be fine. >>> A fuzzy search across full names works best for me, personally. We could >>> also try some differently weighted, fuzzy matching styles. >> I don't know if the required completion can be part of a fuzzy search, >> but it should show exactly the same completions as the current command >> (with directory and file names), but should match only on file name parts, >> not on directory name parts, e.g. with files: >> dirname/filename1 dirname/file2 >> typing "name" for completions should show only "dirname/filename1", >> because most of the time, project directory names get in the way >> when searching for a file by its name, and part of file name matches >> directory names with many other unrelated files. > > So... suppose the user types out a file name in full and sees several > matches (in different directories). What happens then? The user then selects one of them to visit.