6eab954afe
Helm seems to treat "!" specially in pattern matching, so having a ! in the pattern string when traversing directories is problematic. This change fixes #2737, because as far as I can tell "+" has no special meaning in a helm pattern. Of course, we can choose a different character, but I'm fond of "+" as representing "more layers here".
29 lines
1.2 KiB
EmacsLisp
29 lines
1.2 KiB
EmacsLisp
(require 'dired-x)
|
|
(define-key evil-normal-state-map (kbd "-") 'dired-jump)
|
|
|
|
(add-hook 'dired-mode-hook 'vinegar/dired-setup)
|
|
|
|
(eval-after-load "dired-mode"
|
|
(evilify dired-mode dired-mode-map
|
|
"j" 'vinegar/move-down
|
|
"k" 'vinegar/move-up
|
|
"-" 'vinegar/up-directory
|
|
"0" 'dired-back-to-start-of-files
|
|
"=" 'vinegar/dired-diff
|
|
(kbd "C-j") 'dired-next-subdir
|
|
(kbd "C-k") 'dired-prev-subdir
|
|
"I" 'vinegar/dotfiles-toggle
|
|
(kbd "~") '(lambda ()(interactive) (find-alternate-file "~/"))
|
|
(kbd "RET") (if vinegar-reuse-dired-buffer
|
|
'dired-find-alternate-file
|
|
'dired-find-file)
|
|
"f" 'helm-find-files
|
|
"J" 'dired-goto-file
|
|
(kbd "C-f") 'find-name-dired
|
|
"H" 'diredp-dired-recent-dirs
|
|
"T" 'dired-tree-down
|
|
"K" 'dired-do-kill-lines
|
|
"r" 'revert-buffer
|
|
"C-r" 'dired-do-redisplay
|
|
"gg" 'vinegar/back-to-top
|
|
"G" 'vinegar/jump-to-bottom))
|