[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/filechooser 470163374a 5/6: Make delay in selection buf
From: |
ELPA Syncer |
Subject: |
[elpa] externals/filechooser 470163374a 5/6: Make delay in selection buffer update customizable |
Date: |
Sat, 24 Feb 2024 12:58:06 -0500 (EST) |
branch: externals/filechooser
commit 470163374a4ac037c584c4db434a8e406ecfae29
Author: Rahguzar <rahguzar@zohomail.eu>
Commit: Rahguzar <rahguzar@zohomail.eu>
Make delay in selection buffer update customizable
---
filechooser.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/filechooser.el b/filechooser.el
index ce8518a541..cceb07b0f7 100644
--- a/filechooser.el
+++ b/filechooser.el
@@ -116,6 +116,10 @@ UI of choice: usually RET."
"The character to mark selected files in `filechooser-with-dired'."
:type 'character)
+(defcustom filechooser-dired-selection-debounce 0.2
+ "Seconds to wait before updating selection buffer in
`filechooser-with-dired'."
+ :type 'float)
+
;;;; Others
(defvar filechooser-current-operation nil
"When filechooser is active, this variable is set to the command being
used.")
@@ -488,12 +492,15 @@ without exiting file selection."
(remhash (dired-get-filename nil t) selection))
(unless timer
(setq timer (run-with-timer
- 0.2 nil #'filechooser--adjust-selection-buffer)))))))
+ filechooser-dired-selection-debounce nil
+ #'filechooser--adjust-selection-buffer)))))))
+
(defun filechooser-dired-deselect (arg &optional interactive)
"Deselect the file at point in selection buffer.
See `dired-mark' for ARG and INTERACTIVE."
(interactive (list current-prefix-arg t))
(filechooser-dired-clear-selection arg interactive))
+
(defun filechooser--dired-setup-buffer (_)
"Setup the current buffer for file selection."
(when (and (derived-mode-p 'dired-mode)
- [elpa] externals/filechooser updated (163814d4a1 -> ff91db2446), ELPA Syncer, 2024/02/24
- [elpa] externals/filechooser 470163374a 5/6: Make delay in selection buffer update customizable,
ELPA Syncer <=
- [elpa] externals/filechooser dfc15de25e 1/6: Don't loose changes on exit, ELPA Syncer, 2024/02/24
- [elpa] externals/filechooser 32ef643dcd 3/6: Track dired buffers + refactor in filechooser-dired, ELPA Syncer, 2024/02/24
- [elpa] externals/filechooser fe52fac716 4/6: Rework of selection + provide deselection commands, ELPA Syncer, 2024/02/24
- [elpa] externals/filechooser ff91db2446 6/6: Let bind filechooser--filters, ELPA Syncer, 2024/02/24
- [elpa] externals/filechooser 309b96f6b1 2/6: Explicit marker char and minor mode for Dired based selection, ELPA Syncer, 2024/02/24