diredモード単一のウィンドウ? (emacsの)
-
23-09-2019 - |
質問
は変数diredたのはそこな方法は、単一のウィンドウで動作していますか?しかし - 私は私は2つの別々のdiredバッファを保持したいのですが、完全に別のディレクトリ(ミニバッファからではなく打つすでに開いてdiredのインスタンス内のサブディレクトリに[ENTER])内の別のdiredバッファを開始した場合...私は私の推測します「私は上IDOモードを持っているので、IDO-変数diredを使用してmが、私は解決策が異なるだろうことを知っていないのですか?おかげで多くの!
解決
私は RET サブディレクトリに A (dired-buffer
)を押すことでdired-find-alternate-file
クラッタを減らすのではなく、。それは、現在の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)
))
、あなたは内蔵のi
(のdired-を使用することができます多分、インサートサブディレクトリ)とk
(バッファ)コマンドから削除する挿入サブディレクトリのヘッダに変数dired-DO-キルライン。彼らはあなたが単一のdiredバッファ内の複数のディレクトリを編集できます。それはあまりにもかかわらず、あなたの筋肉の記憶に染み付いている場合は、小さなカスタムコマンドとリマップRET
にしたい場合があります。