dired模式单一窗口? (emacs的)
-
23-09-2019 - |
题
有已dired的方式在一个窗口操作,使得当通过我的目录遍历我不具有n个用于中间目录dired缓冲器的数目?但是 - 如果我在一个完全不同的目录中启动另一个dired缓冲区(从迷你缓冲区,而不是击中一个已经打开的dired例如在一个子目录[进入])我想保留两个独立的dired缓冲区...我想我“M使用IDO-dired因为我有IDO模式上,但我不知道该解决方案会有所不同?谢谢了!
解决方案
我通过敲击一(dired-buffer
)减少dired-find-alternate-file
杂波上的子目录,而不是 RET ;该回收当前dired窗口。
其他提示
http://www.emacswiki.org/emacs/dired-single.el
;;; dired-single.el --- Reuse the current dired buffer to visit another directory... ;;; Commentary: ;; ;; This package provides a way to reuse the current dired buffer to visit ;; another directory (rather than creating a new buffer for the new directory). ;; Optionally, it allows the user to specify a name that all such buffers will ;; have, regardless of the directory they point to...
的 Dired + 强> 允许这样做任选它可以让你切换它的开/关任何时候。
参见 http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer 。
像这样?
(defadvice dired-find-file (around kill-old-buffer activate)
"When navigate from one dired buffer to another, kill the old one."
(let ((old-buffer (current-buffer))
(new-buffer (dired-get-filename)))
ad-do-it
(kill-buffer old-buffer)
(switch-to-buffer new-buffer)
))
如果您主要是想和那都是一个层次结构下(例如,一个用于每几个正在进行的项目dired缓冲)各子目录每个dired缓冲区的工作,你可以使用内置的i
( dired-也许嵌-子目录)和k
( dired-做杀线上插入的子目录的报头将其从缓冲器)命令中移除。他们会让你编辑一个dired缓冲区内的多个目录。您可能需要一个小的自定义命令,并重新映射RET
如果在你的肌肉记忆,虽然太根深蒂固。
不隶属于 StackOverflow