New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows drive support #155

merged 2 commits into from Jun 19, 2015
Jump to file or symbol
Failed to load files and symbols.
+8 −1
Diff settings


Just for now


Add support for Windows drive letters

  • Loading branch information...
glucas committed Jun 19, 2015
commit 2c8ad2a76b956096b5cf61a7aeb0ab04f79cad89
9 ivy.el
@@ -1150,7 +1150,14 @@ Should be run via minibuffer `post-command-hook'."
(if (member ivy-text ivy--all-candidates)
(ivy--cd (expand-file-name ivy-text ivy--directory))
(when (string-match "//\\'" ivy-text)
(ivy--cd "/")))
(if (and default-directory
(string-match "[[:alpha:]]:/" default-directory))
(ivy--cd (match-string 0 default-directory))
(ivy--cd "/")))
(when (string-match "[[:alpha:]]:/" ivy-text)
(let ((drive-root (match-string 0 ivy-text)))
(when (file-exists-p drive-root)
(ivy--cd drive-root)))))
(if (string-match "~\\'" ivy-text)
(ivy--cd (expand-file-name "~/")))))
((eq (ivy-state-collection ivy-last) 'internal-complete-buffer)
ProTip! Use n and p to navigate between commits in a pull request.