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 ()
"Make forward slash (/) do completion in helm."
(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))
(file-directory-p (helm-get-selection)))
(helm-execute-persistent-action)