added filtering to dired

This commit is contained in:
ndwarshuis 2019-03-07 23:40:32 -05:00
parent 87c7b8c327
commit cbfcea8c31
1 changed files with 18 additions and 9 deletions

View File

@ -3420,6 +3420,12 @@ If dired is to replace all other file managers it must handle devices. This func
:buffer "*helm device buffer*" :buffer "*helm device buffer*"
:prompt "Device: "))) :prompt "Device: ")))
#+END_SRC #+END_SRC
*** filtering
Filtering is useful for obvious reasons
#+BEGIN_SRC emacs-lisp
(use-package dired-narrow
:ensure t)
#+END_SRC
** mu4e ** mu4e
*** basic *** basic
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -3947,15 +3953,18 @@ Note this assumes there are no sorting switches on `dired-ls'"
(put 'dired-find-alternate-file 'disabled nil) (put 'dired-find-alternate-file 'disabled nil)
(evil-define-key 'normal dired-mode-map (evil-define-key #'normal dired-mode-map
"a" 'dired-find-file "a" #'dired-find-file
"za" 'gnus-dired-attach "za" #'gnus-dired-attach
"gs" 'nd/dired-sort-by "gs" #'nd/dired-sort-by
"^" 'nd/dired-move-to-parent-directory "gg" #'evil-goto-first-line
"q" 'nd/kill-current-buffer "G" #'evil-goto-line
(kbd "<return>") 'dired-find-alternate-file "^" #'nd/dired-move-to-parent-directory
(kbd "C-<return>") 'nd/dired-xdg-open "q" #'nd/kill-current-buffer
(kbd "M-<return>") 'nd/dired-open-with) "n" #'dired-narrow
(kbd "<return>") #'dired-find-alternate-file
(kbd "C-<return>") #'nd/dired-xdg-open
(kbd "M-<return>") #'nd/dired-open-with)
#+END_SRC #+END_SRC
**** helm **** helm
I like tab completion...regardless of what the helm zealots say. This is actually easier and faster because I can just scroll through the source list with j/k and mash TAB when I find the right directory. I like tab completion...regardless of what the helm zealots say. This is actually easier and faster because I can just scroll through the source list with j/k and mash TAB when I find the right directory.