From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: project-find-file: switch to include non-tracked files Date: Tue, 4 May 2021 16:55:12 +0200 Message-ID: <28f1e636-0b95-fa03-5d3a-78c27d24ee48@inventati.org> References: <9d620142-6009-d1bf-813f-17d091511c58@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4619"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Dmitry Gutov , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 04 16:58:53 2021 Return-path: Envelope-to: ged-emacs-devel@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 1ldwVg-00016l-Jr for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 16:58:52 +0200 Original-Received: from localhost ([::1]:46508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldwVf-0001pD-J6 for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 10:58:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldwSJ-0000vi-Pf for emacs-devel@gnu.org; Tue, 04 May 2021 10:55:25 -0400 Original-Received: from confino.investici.org ([2a00:c38:11e:ffff::a020]:54045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldwSH-0000UD-36 for emacs-devel@gnu.org; Tue, 04 May 2021 10:55:23 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4FZNDg2xcdz10vh; Tue, 4 May 2021 14:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1620140115; bh=ZHull5auR9Pjku4iVFfApV0NiAu/1L9ecBApmy9uUBA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=InTNvBzYCWsGMJsJkdl2uwqEoS117WY9PbjEpsggpqiWJ/Pw9MsvH7UYeIRu53icl FAcgIsUYaqOgBSViH/mkXgH+KpKOUKXmIcp6s4t+BYZQOAUJJA9VNoWkexDIzTU9cT vZ0XBCaRXBohkFZ8lfyizM7/y3+LJmi81sX5iIBc= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4FZNDg1yGDz10v6; Tue, 4 May 2021 14:55:15 +0000 (UTC) Autocrypt: addr=manuel.uberti@inventati.org; prefer-encrypt=mutual; keydata= mQENBFTh+8QBCADM+TpOAlO6NIM+GCSLZd4hZQCU2WV7Z1cLYLnE2NHdEaKGnaVlkcf9dGeL 6nlX7j20AYL7KqF4h9IX5d4lc1w8Izk0V2ijtqNeqbRdiTZ8mF+cFEwbALjHIs/YNUjr8IMK pJ+5rQ4DN6dsLVuJ7NJCB54AtAqqvoTodEPxLCT2Gq6YyGaobiEGeczk/3SPsQZYQnKfJ2zM JxIQDy4Dg9owrPpX/WWOfmcTkDoWovX9nsojErYXhIXP7r6+V3cV9stQeOwMhfmnZ1k7LO7y tyvYNIZGfh+JrYBakGttYGSj/C47hJV9MBiY08/Wr3QeDVtV7UTB5qXVYMrYQk63UssNABEB AAG0QU1hbnVlbCBVYmVydGkgKEF1dGlzdGljaS9JbnZlbnRhdGkpIDxtYW51ZWwudWJlcnRp QGludmVudGF0aS5vcmc+iQE6BBMBCgAkAhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheABQJZ pBuqAhkBAAoJEE5XpsTKpI9iEBoIAJLAIZfNVT2KoO9iMM92kuCih6BA1lvpDWreoqRvwW8A iEnS6pwvpiuXldhZgcB4drpy97XBudBFx/b96Sqb4RvGxIHKpt4oLlpXzcohL28oP1CJiN+O bHEbRhzF8fuTrNh7v76z88WRkplUT/7nrO7YLVOM2DS/2QYccOrPkW4C5F03JyVkzSNisz5R VcmUTWcdnqo8VBd/DP3P96ayRj3VPKa9IdQIAxbjbhP+kEQbq9XDiZpGpcOHhFjWeLAWlFCm nES1C7Wb In-Reply-To: <9d620142-6009-d1bf-813f-17d091511c58@yandex.ru> Content-Language: en-GB Received-SPF: pass client-ip=2a00:c38:11e:ffff::a020; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268879 Archived-At: On 04/05/21 16:16, Dmitry Gutov wrote: > The current behavior is to include the untracked files (unless they are in > .gitignore). And you can specify additional ignores through the > project-vc-ignores variable. > > If that is not enough, please outline your usage scenario(s). Sure, I'll try to explain myself better. I have Git-versioned projects where I usually track an .envrc.sample file for everyone to use as a starting point on their own machines. Developers are instructed to copy that file to a local (i.e., untracked) .envrc file. Since there could (and usually will) be information we don't want to be tracked on Git (e.g., one's own system-related customizations), .envrc is listed in .gitignore. Every now and then, I need to open that .envrc file and add something, but because it is listed in .gitignore, the file doesn't show up in project-find-file. What helm-ls-git offers is the possibility to hit C-c i and showing the untracked files. This doesn't involve changing any setting, it's just a matter of pressing C-c i whenever is needed. This is useful because generally I want everything listed in .gitignore to be ignored by project-find-file, but there are small exceptions such as this where I want to edit an ignored file without using find-file to get to it. -- Manuel Uberti www.manueluberti.eu