This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun rejeep-projectile-completion-fn (prompt choises) | |
"Projectile completion function that only shows file name. | |
If two files have same name, new completion appears to select between | |
them. These include the path relative to the project root." | |
(interactive) | |
(let* ((stripped-choises | |
(-uniq (--map (file-name-nondirectory it) choises))) | |
(choise | |
(ido-completing-read prompt stripped-choises)) |