all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: emacs-devel@gnu.org
Subject: Re: Comparison of tools to search for related files
Date: Tue, 06 Sep 2022 06:45:30 +0200	[thread overview]
Message-ID: <87zgfdw1p1.fsf@dataswamp.org> (raw)
In-Reply-To: jwvh71lqgze.fsf-monnier+emacs@gnu.org

Stefan Monnier wrote:

>
> But I keep dreaming of a tool that doesn't require *any*
> setup at all. In my ideal world, from a `MyComponent.js` I'd
> be able to type `M-x find-file-dwim RET .le RET` and that
> would jump to `MyComponent.less`.
>
> Or from `/opt/emacs-27/lisp/subr.el` I'd type `M-x
> find-file-dwim RET 28 RET` and that'd jump to
> `/opt/emacs-28/lisp/subr.el`.
>
> Maybe also:
>
>     /foo/lisp/toto.el      +  test     =>  /foo/tests/lisp/toto.el
>     /foo/bar/lisp/toto.el  +  baz      =>  /foo/bazaar/toto.el
>     /foo/lisp/toto.el      +  te/-te   =>  /foo/test/lisp/toto-tests.el

One would then have several algorithms all intended to find
one file from another, but using different methods, and the
DWIM algorithm would try them one by one ...

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2022-09-06  4:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 20:51 Comparison of tools to search for related files Damien Cassou
2022-09-06  4:26 ` Stefan Monnier
2022-09-06  4:45   ` Emanuel Berg [this message]
2022-09-06 12:52     ` Stefan Monnier
2022-09-06  7:22   ` Rudolf Schlatte
2022-09-06 13:00   ` Eli Zaretskii
2022-09-06 12:59 ` Eli Zaretskii
2022-10-06  6:37 ` Damien Cassou
2022-10-06 11:16   ` Eli Zaretskii
2022-10-06 12:10     ` Lars Ingebrigtsen
2022-10-06 16:50       ` Felician Nemeth
2022-10-13  7:20         ` Damien Cassou
2022-10-14 21:24           ` Richard Stallman
2022-10-17 18:34             ` Damien Cassou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgfdw1p1.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.