• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión9936816b5fe9660a78925c182ae37107bc797d40 (tree)
Tiempo2023-05-03 20:32:19
Autorbadcoff33
Commiterbadcoff33

Log Message

+find-any-file acts different with prefix

Cambiar Resumen

Diferencia incremental

diff -r 4729f42b88ed -r 9936816b5fe9 elisp/find-in-files.el
--- a/elisp/find-in-files.el Wed May 03 13:31:24 2023 +0200
+++ b/elisp/find-in-files.el Wed May 03 13:32:19 2023 +0200
@@ -82,13 +82,19 @@
8282
8383 ;;;###autoload
8484 (defun +find-any-file (&optional prefix)
85- "Find a file in root directory. The root directory is evaluatd by
86-function `+utils-find-root-dir'. When called with prefix, the
87-`default-directoy' is used. "
85+ "Find rekursive any file matching glob pattern *.* in root
86+directory. Root directory is determined by `+utils-find-root-dir'.
87+When called with prefix, the root directory is requested first. "
8888 (interactive "P")
89- (let* ((default-directory (if prefix
90- default-directory
91- (+utils-find-root-dir)))
89+ (let* ((default-directory
90+ (if prefix
91+ (completing-read "in directory: "
92+ (apply-partially #'completion-table-with-predicate
93+ #'completion-file-name-table
94+ #'file-directory-p
95+ 'strict)
96+ nil t default-directory)
97+ (+utils-find-root-dir)))
9298 (major-mode-specific-part '("everything" . "-g *.*"))
9399 (find-files-command (concat "rg --color never --files"
94100 " " (cdr major-mode-specific-part)