[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9b315e8 10/12: Use "//" to move to root instead of "/" as
From: |
Oleh Krehel |
Subject: |
[elpa] master 9b315e8 10/12: Use "//" to move to root instead of "/" as before |
Date: |
Thu, 23 Apr 2015 18:01:59 +0000 |
branch: master
commit 9b315e8409779b29df8c0f39c0006fd0cb589c04
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Use "//" to move to root instead of "/" as before
ivy.el (ivy--exhibit): Update.
This improves the situation with tramp and generally avoids losing the
current directory by pressing "/" by accident.
Fixes #59
---
ivy.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 97cdb41..53e8057 100644
--- a/ivy.el
+++ b/ivy.el
@@ -688,7 +688,8 @@ Should be run via minibuffer `post-command-hook'."
(if (string-match "/$" ivy-text)
(if (member ivy-text ivy--all-candidates)
(ivy--cd (expand-file-name ivy-text ivy--directory))
- (ivy--cd "/"))
+ (when (string-match "//$" ivy-text)
+ (ivy--cd "/")))
(if (string-match "~$" ivy-text)
(ivy--cd (expand-file-name "~/")))))
(ivy--insert-minibuffer
- [elpa] master 013fe04 02/12: swiper.el (swiper--ivy): Check for stand-alone ivy, (continued)
- [elpa] master 013fe04 02/12: swiper.el (swiper--ivy): Check for stand-alone ivy, Oleh Krehel, 2015/04/23
- [elpa] master 7032df7 06/12: counsel.el (counsel-git-grep): Fixup, Oleh Krehel, 2015/04/23
- [elpa] master c3e38fb 07/12: Remove globbing heuristics for file name completion, Oleh Krehel, 2015/04/23
- [elpa] master 886d908 08/12: Exclude jabber-chat-mode from font-lock, Oleh Krehel, 2015/04/23
- [elpa] master 9470e76 09/12: Avoid sorting org refile candidates, Oleh Krehel, 2015/04/23
- [elpa] master cf3ac8f 04/12: ivy.el (ivy-done): Update wrt globs, Oleh Krehel, 2015/04/23
- [elpa] master 725e12a 11/12: ivy.el (Info-current-file): Declare, Oleh Krehel, 2015/04/23
- [elpa] master 37b7d39 03/12: swiper.el (swiper-query-replace): Fix, Oleh Krehel, 2015/04/23
- [elpa] master a70b734 05/12: ivy.el (ivy-backward-delete-char): Expand `ivy--directory', Oleh Krehel, 2015/04/23
- [elpa] master c10ba4b 12/12: Merge commit '725e12a51e837ed75361f9f2258a887cacb120cd' from swiper, Oleh Krehel, 2015/04/23
- [elpa] master 9b315e8 10/12: Use "//" to move to root instead of "/" as before,
Oleh Krehel <=