3

私は、1 万を超えるファイルを含むプロジェクトに取り組んでいます。これらのファイルを簡単にナビゲートできるようにしたいと思います。

iswitchbこれだけ多くのファイルがあると、mode は非常に遅くなります。iciclesの方が速度は良いですが、iswitchb の UI が気に入っています。

提案?


Stefan は、iswitchb-mode実行時にプロファイラーの実行を要求しました。

- call-interactively                                             2740  79%
  - iswitchb-buffer                                              2628  76%
    - iswitchb                                                   2628  76%
      - iswitchb-read-buffer                                     2628  76%
        - completing-read                                        2599  75%
          - completing-read-default                              2596  75%
            - read-from-minibuffer                               2596  75%
              - iswitchb-post-command                            1034  30%
                - iswitchb-exhibit                               1034  30%
                  - iswitchb-set-common-completion                947  27%
                    - iswitchb-find-common-substri                925  26%
                      - mapcar                                    925  26%
                        - iswitchb-word-matching-s                922  26%
                          + iswitchb-case                          10   0%
                            string-match                            1   0%
                  + iswitchb-set-matches                           63   1%
                  + iswitchb-completions                           24   0%
              + redisplay_internal (C function)                   869  25%
              - timer-event-handler                               499  14%
                - byte-code                                       499  14%
                  - apply                                         499  14%
                    - jit-lock-context-fontify                    491  14%
                      + buffer-list                                15   0%
                    + show-paren-function                           6   0%
                    + display-time-event-handler                    2   0%
              + call-interactively                                 34   0%
              + icicle-unhighlight-lighter                          3   0%
              + iswitchb-pre-command                                1   0%
        + iswitchb-make-buflist                                    15   0%
4

5 に答える 5

3

10000 バッファのセッションで iswitchb を試してみたところ、実際には耐えられないほど遅いことがわかりました。

試してみることをお勧めしますM-x icomplete-mode: Emacs-24.3 では、デフォルトのC-x b補完はすでに iswitchb のように部分文字列の一致を受け入れているため、欠けている機能は によって提供されるものだけですが、icomplete-mode10000icomplete-modeバッファーを使用した私のセッションではまだ完全に高速です。基本的に、Emacs-24.3 以降、iswitchb は によって廃止されましたicomplete-mode

于 2013-11-06T19:13:31.567 に答える
0

これを試しましたか?

iswitchb-max-to-show is a variable defined in `iswitchb.el'.
Its value is nil

Documentation:
If non-nil, limit the number of names shown in the minibuffer.
If this value is N, and N is greater than the number of matching
buffers, the first N/2 and the last N/2 matching buffers are
shown.  This can greatly speed up iswitchb if you have a
multitude of buffers open.

You can customize this variable.
于 2013-11-06T02:31:26.657 に答える
0

無数のファイルを便利なセットに整理できますか? 場合によっては重複するセットでさえありますか?

ブックマークは、このような整理に大いに役立ちます。Bookmark+を使用すると、以下をブックマークできます。

  • 個々のファイル。
  • ファイルのセット。
  • 個々の Dired バッファ、マーキングの記録、設定の「省略」、およびサブディレクトリの挿入。
  • 再帰的に、マークされたサブディレクトリに基づいて、dired バッファーのスパース ツリー。
  • Emacs デスクトップ。
  • ブックマーク ファイル、つまりブックマークのセット。
  • ブックマークリストの表示とその設定 (マーキング、省略など)。

そして、ブックマークにタグを付けることができます。おいしいスタイルです。タグは、ブックマークまたはファイル (つまり、autofile ブックマーク) を分類するために選択する名前 (任意の文字列) です。ブックマークにはいくつでもタグを割り当てることができます。タグには、(任意の) Lisp 値を関連付けることさえできます。

同じファイル (またはファイル セット) を複数回ブックマークし、それらの異なるブックマークに異なるタグを付けることができます。

IOW、ファイルとファイルのセットのさまざまな「ビュー」を定義するさまざまな方法があります。

于 2013-11-06T17:35:58.183 に答える