summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-03-04 10:35:32 +0100
committerAlan Pearce2016-03-04 10:35:32 +0100
commit6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c (patch)
tree5b5fe85d4eb7f0032a7bfa1aa80c3466b8f58074 /tag-emacs
parentb2ba1b73df5044b461055e078e17378eccf1b25f (diff)
downloaddotfiles-6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c.tar.lz
dotfiles-6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c.tar.zst
dotfiles-6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c.zip
Emacs: Install and configure dired-narrow
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org13
1 files changed, 13 insertions, 0 deletions
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