Make slash complete directory names in helm-find-file
This commit is contained in:
parent
2191b1ac64
commit
d162a66b94
12
init.el
12
init.el
@ -77,7 +77,9 @@
|
|||||||
(("M-x" . helm-M-x)
|
(("M-x" . helm-M-x)
|
||||||
:map ctl-x-map
|
:map ctl-x-map
|
||||||
("C-f" . helm-find-files)
|
("C-f" . helm-find-files)
|
||||||
("b" . helm-mini)))
|
("b" . helm-mini)
|
||||||
|
:map helm-map
|
||||||
|
("/" . gpolonkai/helm-ff-slash-dir-complete)))
|
||||||
|
|
||||||
(use-package helm-swoop
|
(use-package helm-swoop
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -1195,3 +1197,11 @@
|
|||||||
(abbreviate-file-name
|
(abbreviate-file-name
|
||||||
(buffer-file-name))
|
(buffer-file-name))
|
||||||
"%b")))))
|
"%b")))))
|
||||||
|
|
||||||
|
(defun gpolonkai/helm-ff-slash-dir-complete ()
|
||||||
|
(interactive)
|
||||||
|
(if (and (equal "Find Files" (assoc-default 'name (helm-get-current-source)))
|
||||||
|
(stringp (helm-get-selection))
|
||||||
|
(file-directory-p (helm-get-selection)))
|
||||||
|
(helm-execute-persistent-action)
|
||||||
|
(insert "/")))
|
||||||
|
Loading…
Reference in New Issue
Block a user