[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm f54356fc27 04/13: Get rid of helm-ff-move-to-first-re
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm f54356fc27 04/13: Get rid of helm-ff-move-to-first-real-candidate |
Date: |
Sat, 18 May 2024 13:00:20 -0400 (EDT) |
branch: elpa/helm
commit f54356fc27c97716d6e4f0143fcb384d058ec52e
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Get rid of helm-ff-move-to-first-real-candidate
---
helm-files.el | 38 +-------------------------------------
helm-mode.el | 3 +--
2 files changed, 2 insertions(+), 39 deletions(-)
diff --git a/helm-files.el b/helm-files.el
index 1869d369b7..4b7cb2f93a 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -2998,29 +2998,6 @@ hitting C-j on \"..\"."
(helm-mark-current-line)))
(setq helm-ff-last-expanded nil))))
-(defun helm-ff-move-to-first-real-candidate ()
- "When candidate is an incomplete file name move to first real candidate."
- (let* ((src (helm-get-current-source))
- (name (assoc-default 'name src))
- ;; Ensure `helm-file-completion-source-p' returns nil on
- ;; `helm-read-file-name' history.
- minibuffer-completing-file-name)
- (helm-aif (and (helm-file-completion-source-p src)
- (not (helm-empty-source-p))
- ;; Prevent dired commands moving to first real
- ;; (Bug#910).
- (or (memq (intern-soft name)
- helm-ff-goto-first-real-dired-exceptions)
- (not (string-match "\\`[Dd]ired-" name)))
- helm-ff--move-to-first-real-candidate
- (helm-get-selection nil nil src))
- (unless (or (not (stringp it))
- (and (string-match helm-tramp-file-name-regexp it)
- (not (file-remote-p it nil t)))
- (string-match helm-ff-tramp-method-regexp it)
- (file-exists-p it))
- (helm-next-line)))))
-
(defun helm-ff-undo ()
"Undo minibuffer in `helm-find-files'.
Ensure disabling `helm-ff-auto-update-flag' before undoing."
@@ -3066,18 +3043,7 @@ when `helm-pattern' is equal to \"~/\"."
(candnum (helm-get-candidate-number))
(lt2-p (and (<= candnum 2)
(>= (string-width (helm-basename helm-pattern))
2)))
- (cur-cand (prog2
- (unless (or completed-p
- (file-exists-p pat)
- history-p (null lt2-p))
- ;; Only one non--existing candidate
- ;; and one directory candidate, move to it,
- ;; but not when renaming, copying etc...,
- ;; so for this use
- ;; `helm-ff-move-to-first-real-candidate'
- ;; instead of `helm-next-line' (Bug#910).
- (helm-ff-move-to-first-real-candidate))
- (helm-get-selection nil nil src)))
+ (cur-cand (helm-get-selection nil nil src))
expand-to)
(when (and (or (and helm-ff-auto-update-flag
(null helm-ff--deleting-char-backward)
@@ -5622,7 +5588,6 @@ source is `helm-source-find-files'."
(defun helm-ff-setup-update-hook ()
(dolist (hook '(helm-ff-clean-initial-input ; Add to be called first.
- helm-ff-move-to-first-real-candidate
helm-ff-update-when-only-one-matched
helm-ff-auto-expand-to-home-or-root))
(add-hook 'helm-after-update-hook hook)))
@@ -5632,7 +5597,6 @@ source is `helm-source-find-files'."
(remove-hook 'helm-after-update-hook hook))
'(helm-ff-auto-expand-to-home-or-root
helm-ff-update-when-only-one-matched
- helm-ff-move-to-first-real-candidate
helm-ff-clean-initial-input))
(maphash (lambda (k _v)
(when (member k helm-ff--thumbnailed-directories)
diff --git a/helm-mode.el b/helm-mode.el
index b248504d75..fa1609e1be 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1963,8 +1963,7 @@ Keys description:
(kill-buffer helm-action-buffer))
(mapc (lambda (hook)
(add-hook 'helm-after-update-hook hook))
- '(helm-ff-move-to-first-real-candidate
- helm-ff-update-when-only-one-matched
+ '(helm-ff-update-when-only-one-matched
helm-ff-auto-expand-to-home-or-root))
(let* ((action-fn `(("Sole action (Identity)"
. (lambda (candidate)
- [nongnu] elpa/helm aec87449bc 10/13: Make :must-match working in read-file-name dummy source, (continued)
- [nongnu] elpa/helm aec87449bc 10/13: Make :must-match working in read-file-name dummy source, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm 4e841d9c1c 11/13: Remove helm-read-file-dummy-map, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm a4ac705b1c 07/13: Ensure lynx style map is used in new HFF dummy source, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm 4cb0f2e5c3 06/13: Allow using C-l in new HFF dummy source, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm c71be6c5b1 12/13: Bind missing keys to helm-find-files-dummy-map, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm ba2eb55235 13/13: Fix dummy sources name, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm 49647d3f54 03/13: Add dummy source for read-file-name as well, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm e48f65bc7e 09/13: Move helm-read-file-dummy-map to helm-files to avoid errors, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm a779dd2607 01/13: Use `truncate-string-ellipsis` as default for helm-buffers-end-truncated-string, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm 0d928a6c31 05/13: Add missing actions to helm-find-files-dummy-source, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm f54356fc27 04/13: Get rid of helm-ff-move-to-first-real-candidate,
ELPA Syncer <=
- [nongnu] elpa/helm 996e2cab6d 08/13: Move dummy map on top, ELPA Syncer, 2024/05/18
- [nongnu] elpa/helm 3c390b99f5 02/13: Use a dummy source for not existing files in HFF, ELPA Syncer, 2024/05/18