除了Emacs代码浏览器(ECB)之外,你知道Emacs的一个好的项目树浏览器吗?我重视的功能是简洁,轻量级和语言不可知。
答案 0 :(得分:22)
答案 1 :(得分:22)
我自己还没有尝试过这个,但是emacs-nav是来自Google的一个新的Emacs项目浏览器,它似乎具有您重视的功能。
答案 2 :(得分:17)
Projectile + NeoTree是我的首选组合。
Projectile只使用您的版本控制系统来跟踪文件,并且在项目功能中有很棒的跳转到文件。
另外,请检查the notes是否将两者合并在一起。
答案 3 :(得分:7)
cedet的不同部分将按照我的想法行事。 Speedbar具有树结构的东西,EDE处理项目等。
答案 4 :(得分:7)
您可以尝试sr-speedbar。太棒了。
答案 5 :(得分:6)
我刚刚在package-list-packages
中搜索了“探索”一词,并发现了project-explorer
。似乎完全适合我今天想要的东西(我不编码,但我抓住了我的Jekyll网站的结构)。
键包括:
TAB
用于折叠和展开目录RET
或f
打开文件。使用C-u
前缀,它会很好地提示哪个窗口,甚至从那里允许您决定使用窗口或向任何一侧打开一个新窗口(我没有在包代码中找到提示字符串) ,所以它似乎很好地利用内置的Emacs功能;实际上它看起来像dired
甚至)。 它可以在Melpa和Marmalade上找到。它可以在sabof/project-explorer的Github上找到。
为方便起见,我包含了网站的图片:
我不使用projectile
或helm
,但它有一些整合。
答案 6 :(得分:0)
这是我对几个竞争文件浏览器类型包的看法。请参阅以下每个程序包上方的注释:
;; 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%的收益。常春藤,干枯和干枯的子树使我获得了99%的收益。 project-explorer(在较小程度上是nav)是ivy plus dired或ivy plus dired和dired-subtree的不错选择。希望这可以节省您一些时间。