Enable slash completition in the magit-status helm window

This commit is contained in:
Gergely Polonkai 2018-07-25 07:16:37 +02:00
parent 07487c356d
commit 81fb595ca8

View File

@ -1281,7 +1281,9 @@ INFO plist."
(defun gpolonkai/helm-ff-slash-dir-complete () (defun gpolonkai/helm-ff-slash-dir-complete ()
"Make forward slash (/) do completion in helm." "Make forward slash (/) do completion in helm."
(interactive) (interactive)
(if (and (equal "Find Files" (assoc-default 'name (helm-get-current-source))) (if (and (or
(equal "magit-status" (assoc-default 'name (helm-get-current-source)))
(equal "Find Files" (assoc-default 'name (helm-get-current-source))))
(stringp (helm-get-selection)) (stringp (helm-get-selection))
(file-directory-p (helm-get-selection))) (file-directory-p (helm-get-selection)))
(helm-execute-persistent-action) (helm-execute-persistent-action)