Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs: opening any file in a large repo
    primarykey
    data
    text
    <h2>What I need</h2> <p>a fast/performant way to open any file under a large (<code>git</code>) repo (~9.8k files).</p> <h2>Context</h2> <p>I have tried various solutions, like <a href="http://www.emacswiki.org/TextMate" rel="nofollow noreferrer"><code>Textmate.el</code></a> and <a href="http://marmalade-repo.org/packages/find-file-in-repository" rel="nofollow noreferrer"><code>find-file-in-repository</code></a>. I found these solutions via previous SO questions like <a href="https://stackoverflow.com/q/8552659/117750">this</a> and <a href="https://stackoverflow.com/q/7970537/117750">this</a> and through the <a href="http://www.emacswiki.org/emacs/LocateFilesAnywhere" rel="nofollow noreferrer">LocateFilesAnywhere EmacsWiki</a>.</p> <p>While both solutions work wonderfully for small-to-mdeium repos, in this case they are practically unusable. When I start typing a filename, there's a delay of several seconds before I see any result. And changing any part of the search is very laggy too.</p> <p>I think the main problem is that on typing any character, <code>emacs</code>/<code>find-file-in-repository</code> starts a shell command (<code>git ls-files...</code>). I really only need to do that when I have stopped typing.</p> <h2>Questions</h2> <ul> <li>is there a better library out there for this use-case?</li> <li>if not, how can I introduce a delay into the command when I'm typing? i.e. while I'm in <code>find-file-in-repository</code>, I want the find-command to be invoked only when I stop typing (let's say a gap of 300ms).</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload