[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fdd2178 042/184: ivy.el (ivy--magic-tilde-directory): Use
From: |
Oleh Krehel |
Subject: |
[elpa] master fdd2178 042/184: ivy.el (ivy--magic-tilde-directory): Use "~~" to move to local home |
Date: |
Wed, 16 Oct 2019 13:14:45 -0400 (EDT) |
branch: master
commit fdd2178cdcc91e8fb9631282f97afcc66ee7d721
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy--magic-tilde-directory): Use "~~" to move to local home
Doing "/ RET ~" still works, but is too cumbersome.
---
doc/ivy.org | 4 ++++
doc/ivy.texi | 6 ++++++
ivy.el | 3 ++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/doc/ivy.org b/doc/ivy.org
index 3258669..3fe9bd2 100644
--- a/doc/ivy.org
+++ b/doc/ivy.org
@@ -1038,6 +1038,10 @@ bindings that work here:
- ~/ C-j~ ::
Move the the local root directory.
+- ~~~~ ::
+ Move to the local home directory.
+
+
From any directory, with the empty input, inputting =/ssh:= and pressing
~C-j~ (or ~RET~, which is the same thing) completes for host and user
names.
diff --git a/doc/ivy.texi b/doc/ivy.texi
index 89ae86f..315f655 100644
--- a/doc/ivy.texi
+++ b/doc/ivy.texi
@@ -1379,6 +1379,12 @@ or @code{scpx}.
@indentedblock
Move the the local root directory.
@end indentedblock
+@subsubheading @kbd{~~}
+@kindex ~~
+@indentedblock
+Move to the local home directory.
+@end indentedblock
+
From any directory, with the empty input, inputting @code{/ssh:} and pressing
@kbd{C-j} (or @kbd{RET}, which is the same thing) completes for host and user
diff --git a/ivy.el b/ivy.el
index 8ca0ae3..ccea8d2 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3042,7 +3042,8 @@ Should be run via minibuffer `post-command-hook'."
"Return an appropriate directory for when ~ or ~/ are entered."
(expand-file-name
(let (remote)
- (if (setq remote (file-remote-p ivy--directory))
+ (if (and (setq remote (file-remote-p ivy--directory))
+ (not (string-match-p "/home/\\([^/]+\\)/\\'" (file-local-name
ivy--directory))))
(concat remote "~/")
"~/"))))
- [elpa] master 5e79f16 020/184: ivy.el (ivy--input): Fix point moving in TRAMP sessions, (continued)
- [elpa] master 5e79f16 020/184: ivy.el (ivy--input): Fix point moving in TRAMP sessions, Oleh Krehel, 2019/10/16
- [elpa] master f30c6e1 022/184: swiper.el: Fix overlay faces using regex-ignore-order, Oleh Krehel, 2019/10/16
- [elpa] master 9c4cdb7 025/184: swiper.el (swiper-isearch-action): Fix for ivy-occur, Oleh Krehel, 2019/10/16
- [elpa] master ed1ba4e 028/184: Makefile (deps): Add target, Oleh Krehel, 2019/10/16
- [elpa] master b5e869e 026/184: swiper.el (swiper--occur-cands): Fix wgrep, Oleh Krehel, 2019/10/16
- [elpa] master 6928beb 031/184: ivy-test.el (ivy-read-file-name-in-buffer-visiting-file): Passes, Oleh Krehel, 2019/10/16
- [elpa] master 35415e3 027/184: ivy-test.el (ivy-swiper-wgrep): Add test, Oleh Krehel, 2019/10/16
- [elpa] master fb78c3f 045/184: swiper.el: Run ispell-comments-and-strings, Oleh Krehel, 2019/10/16
- [elpa] master ae3576a 037/184: swiper.el (swiper-isearch): Fix scroll on RET, Oleh Krehel, 2019/10/16
- [elpa] master c4e0b0b 032/184: ivy-test.el (ivy-read-file-name-make-directory): Add, Oleh Krehel, 2019/10/16
- [elpa] master fdd2178 042/184: ivy.el (ivy--magic-tilde-directory): Use "~~" to move to local home,
Oleh Krehel <=
- [elpa] master a9196a2 035/184: counsel.el (counsel-file-jump-args): Is now a list, Oleh Krehel, 2019/10/16
- [elpa] master e58231e 033/184: ivy.el (ivy-immediate-done): Fix for when "C-j" changed cwd, Oleh Krehel, 2019/10/16
- [elpa] master 0132ced 044/184: counsel.el: Run ispell-comments-and-strings, Oleh Krehel, 2019/10/16
- [elpa] master c4842ec 043/184: Fix typo: 'beggining', Oleh Krehel, 2019/10/16
- [elpa] master 28e9416 052/184: ivy.el (ivy--input): Fix for ediff, Oleh Krehel, 2019/10/16
- [elpa] master dd3e1c9 038/184: swiper.el (swiper--maybe-recenter): Refactor, Oleh Krehel, 2019/10/16
- [elpa] master 5ff5139 051/184: ivy.el (ivy-read-action-function): Allow to read actions using Ivy, Oleh Krehel, 2019/10/16
- [elpa] master e4e0ec4 049/184: counsel.el (counsel--file-name-filter): Return "cat" on empty input, Oleh Krehel, 2019/10/16
- [elpa] master 17d9c70 036/184: counsel.el (counsel--find-return-list): Re-use counsel--call, Oleh Krehel, 2019/10/16
- [elpa] master 44c4bab 057/184: Restore use-ignore setting on ivy-resume, Oleh Krehel, 2019/10/16