From 6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Mar 2016 10:35:32 +0100 Subject: Emacs: Install and configure dired-narrow --- tag-emacs/emacs.d/init.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 701a9cb..280dfa3 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1079,6 +1079,19 @@ Expand subfolders like a tree inside the parent (bind-key "i" #'dired-subtree-toggle dired-mode-map)))) #+END_SRC +** Dired-narrow +One can already use dired with wildcards to browse a filtered +directory listing, but it opens a new buffer. Dired-narrow is a +slightly nicer interface: with a currently-open dired buffer, use =/= +to start filtering, =RET= to complete the filter and =g= to refresh +the buffer, removing the filter. + +#+BEGIN_SRC emacs-lisp + (use-package dired-narrow + :bind (:map dired-mode-map + ("/" . dired-narrow))) +#+END_SRC + * Documentation ** ehelp -- cgit 1.4.1