From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: finding files not visited Date: Thu, 15 Sep 2011 00:15:20 +0200 Message-ID: <20110915001520.6b485787@kuru.homelinux.net> References: <4E708BA5.7060206@gmail.com> <4E70D77F.9010809@gmail.com> <4E71137C.9020503@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316038537 26265 80.91.229.12 (14 Sep 2011 22:15:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2011 22:15:37 +0000 (UTC) Cc: GNU Emacs List To: Jeffrey Spencer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 00:15:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3xjw-0003WT-FY for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 00:15:32 +0200 Original-Received: from localhost ([::1]:50700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xjv-0000Ug-IX for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Sep 2011 18:15:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xjq-0000UP-Tz for help-gnu-emacs@gnu.org; Wed, 14 Sep 2011 18:15:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3xjp-000370-F7 for help-gnu-emacs@gnu.org; Wed, 14 Sep 2011 18:15:26 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:57052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xjp-00036u-8g for help-gnu-emacs@gnu.org; Wed, 14 Sep 2011 18:15:25 -0400 Original-Received: by eye13 with SMTP id 13so362767eye.0 for ; Wed, 14 Sep 2011 15:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=Q1M0HN3EajCk/3qoYfnWsTc6MLXrcRGAs1/uDYwoXco=; b=DKZIMnmD8WtgRw7M0DlTTo4QnzXIi3Vv7TrkzarZ9VJjYMUZMZjWOsJnsCMAc3cXyc jNfnN8+uXLAhIgYHWRgtGHbblSN1D//tyGbE0/1JkKE+922UYF/B7/Vsi0crkxOuJmwA ZLTHJ7uTuhLp8FLePz0HbbgCOwwZfMgFYyvIc= Original-Received: by 10.213.14.199 with SMTP id h7mr893913eba.77.1316038524221; Wed, 14 Sep 2011 15:15:24 -0700 (PDT) Original-Received: from kuru.homelinux.net (ip82-139-118-43.lijbrandt.net. [82.139.118.43]) by mx.google.com with ESMTPS id v60sm2487018eev.12.2011.09.14.15.15.23 (version=SSLv3 cipher=OTHER); Wed, 14 Sep 2011 15:15:24 -0700 (PDT) In-Reply-To: <4E71137C.9020503@gmail.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82233 Archived-At: Hi Andrea and Jeffrey, On Thu, 15 Sep 2011 06:50:04 +1000 Jeffrey Spencer wrote: > On 15/09/11 02:34, Andrea Crotti wrote: > > On 09/14/2011 04:27 PM, suvayu ali wrote: > >> Try ido-mode for files. But a word of caution, if any of the > >> directories have too many (~100s) files or sub-directories and are > >> remote (as in you are remote editing with tramp) emacs might become > >> extremely slow trying to find completions. > > > > I already use ido-mode, but it doesn't recurse in the > > subdirectories (at least not by default). > > > > I don't see any variable to customize for that, am I blind? > > > > I like the dired solution, and for example I can set up some=20 > > dir-local-variable setting the right switches, for example it's a > > good idea to filter hidden directories (like .git or .bzr). > > > > I'll give finally a try also to anything > > >=20 > I use ido-mode also and was wondering how to do this. It seems to not=20 > search through sub-directories. Is it redefining a function or is it=20 > already implemented and just needs enabled. >=20 Sorry I wasn't explicit, ido-mode completes on the full path rather than the filename. So if you have 4 files like these: /path/dir/file1 /path/dir/file2 /path/dir/sub-dir1/file3 /path/dir/sub-dir2/file4 To complete for file3 and file4 you would need to type up to 's' of the subdirectories sub-dir1 and sub-dir2. As you type up to sub-dir1, only file3 will be offered as a completion candidate. That said, I have a hunch you might be able to write some custom function, to do that with uniquify and ido. However this is just a conjecture, I haven't tried it. =46rom a quick search it seemed the following link might help too: > Cheers >=20 Hope this was helpful. --=20 Suvayu Open source is the future. It sets us free.