一个好的Emacs项目树浏览器?

一个好的Emacs项目树浏览器?,emacs,project,Emacs,Project,您知道除了Emacs代码浏览器(ECB)之外,还有什么好的Emacs项目树浏览器吗?我看重的特点是简单、轻量级和语言不可知论。 如果您只想管理相关文件,也许您会喜欢。我认为,文件的不同部分将满足您的需要。Speedbar有树状结构的功能,EDE处理项目等。我自己还没有尝试过这一款,但它是谷歌推出的一款新的Emacs项目浏览器,似乎具有您所看重的功能。您可以试试。太棒了。我刚才在包列表包中搜索了一个单词“explore”,发现了项目资源管理器。似乎完全符合我今天想要的(我不怎么编码,但我正在掌握我

您知道除了Emacs代码浏览器(ECB)之外,还有什么好的Emacs项目树浏览器吗?我看重的特点是简单、轻量级和语言不可知论。


如果您只想管理相关文件,也许您会喜欢。

我认为,文件的不同部分将满足您的需要。Speedbar有树状结构的功能,EDE处理项目等。

我自己还没有尝试过这一款,但它是谷歌推出的一款新的Emacs项目浏览器,似乎具有您所看重的功能。

您可以试试。太棒了。

我刚才在
包列表包中搜索了一个单词“explore”,发现了
项目资源管理器
。似乎完全符合我今天想要的(我不怎么编码,但我正在掌握我的Jekyll站点的结构)

关键包括:

  • 选项卡
    用于折叠和展开目录
  • 使用
    RET
    f
    打开文件。使用
    C-u
    前缀,它将很好地提示哪个窗口,甚至从那里您可以决定使用窗口或向任何一方打开一个新窗口(我在包代码中没有找到提示字符串,因此它似乎很好地利用了内置的Emacs功能;实际上它看起来像
    dired
    甚至)
有梅尔帕和果酱。可在Github上访问

为了方便起见,我将网站的图片包括在内:

我不使用
射弹
头盔
,但它有一些集成

+是我的选择组合

Projector只是使用您的版本控制系统来跟踪文件,并且在项目功能中有一个很棒的文件跳转


另外,请检查是否将两者集成在一起。

以下是我对几个相互竞争的文件资源管理器类型软件包的看法。请参见下面每个包上面的注释:

;; Dired itself allows one to do 'i' to insert (display in same buffer) the
;; subdirectory under point and C-u k on subdir header line to remove. However,
;; I have found that dired-subtree-toggle and dired-subtree-remove are a better solution for the removal
;; part. Plus dired-subtree let's you customize colors of subdirs to set them apart
;; visually. However, I set all depths of subdirectories custom faces to be the same as I found it distracting.
(use-package dired-subtree
  :ensure t
  :bind (:map dired-mode-map ("i" . 'dired-subtree-toggle))
  :bind (:map dired-mode-map ("I" . 'dired-subtree-remove)))


;; This works nicely. It provides the parent, '..', directory unlike nav.
(use-package project-explorer
  :ensure t
  :config
  (evil-set-initial-state 'project-explorer-mode 'emacs))

;; This can't go above the directory you started it in. It is nice, but I prefer the flexibility
;; of getting to parent directories in most cases.
(use-package dirtree
  :ensure t)

;; Google's file explorer
;; Nice, but doesn't maintain visited nodes in view, preferring instead to offer only
;; the current directory or lower in a side window. No better than ivy which is my main file explorer system.
(use-package nav
  :ensure t)

;; This is buggy on Emacs 26.1.
(use-package eproject
  :disabled t
  :ensure t)

;; speedbar is included with Emacs (since 24.x I believe). It has to use a separate frame, which is
;; inconvenient most of the time. There are better options (above).
;; (use-package speedbar)

;; Buggy; doesn't work on Emacs 26.1 (at least with my config).
(use-package sr-speedbar
  :disabled t
  :load-path "../lisp")

;; Buggy on Emacs 26.1 (at least with my config). I couldn't even get it to activate.
(use-package ecb
  :disabled t
  :ensure t)

;; Nice, but similar to ivy which I've already committed to, so not necessary.
(use-package lusty-explorer
  :disabled t
  :ensure t)

对我来说,常春藤加上迪雷德让我有98%的机会。常春藤、dired和dired子树让我有99%的机会。ProjectExplorer,在较小程度上,nav,只是ivy plus dired或ivy plus dired和dired子树的不错的替代品。希望这能为您节省一些时间。

我想当我问这个问题时,我脑子里想的是Speedbar之类的东西。然而,你的电子项目可能是我自己都不知道的事实上正在寻找的。目前我依赖iswitch和ibuffer,但当同时处理两个或三个项目时,它们往往会变得相当拥挤。Eproject似乎解决了这个问题。Emacs24默认包含speedbar。我不太懂导航。。。它类似于sr speedbar,但没有树状结构。没有树结构有什么好处?我刚决定开始使用emacs,已经花了两天的时间试图找到一棵不烂的树。我不明白为什么这些包都不允许您扩展整个目录结构,而不仅仅是第一个level@Agzam,我在下面描述
projectexplorer
,似乎您可以使用
C-ustab
完全展开。