[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-explorer 7114ebe 2/7: Move to candidate which was c
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/ivy-explorer 7114ebe 2/7: Move to candidate which was current on exit when entering dired |
Date: |
Wed, 16 Jan 2019 10:08:25 -0500 (EST) |
branch: externals/ivy-explorer
commit 7114ebe5ffe55afc3a58bfc25d4405dbc327695b
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Move to candidate which was current on exit when entering dired
---
ivy-explorer.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/ivy-explorer.el b/ivy-explorer.el
index 607222b..ae02151 100644
--- a/ivy-explorer.el
+++ b/ivy-explorer.el
@@ -317,11 +317,16 @@ in this case `avy' is not invoked again."
(ivy-done)))))))
(defun ivy-explorer-dired ()
- "Open current directory in `dired'."
+ "Open current directory in `dired'.
+
+Move to file which was current on exit."
(interactive)
- (ivy--cd ivy--directory)
- (ivy--exhibit)
- (ivy-done))
+ (let ((curr (ivy-state-current ivy-last)))
+ (ivy--cd ivy--directory)
+ (ivy--exhibit)
+ (run-at-time 0 nil #'dired-goto-file
+ (expand-file-name curr ivy--directory))
+ (ivy-done)))
(defun ivy-explorer-next (arg)
"Move cursor vertically down ARG candidates."
- [elpa] externals/ivy-explorer updated (0b1d286 -> be8008b), Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer 7114ebe 2/7: Move to candidate which was current on exit when entering dired,
Clemens Radermacher <=
- [elpa] externals/ivy-explorer 7a622c4 6/7: Add dispatch binding for explorer window, Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer c8c6485 1/7: Let ivy-explorer-avy continue when entering directories, Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer a09eb44 4/7: Add binding to switch to explorer window, Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer 863391e 3/7: Allow switching to lv-window and allow modal navigation in it, Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer be8008b 7/7: Version bump, Clemens Radermacher, 2019/01/16
- [elpa] externals/ivy-explorer 92abbe8 5/7: Don't read dispatch action twice, Clemens Radermacher, 2019/01/16