emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/subed 49be358d32 2/4: subed-word-data: include directories


From: ELPA Syncer
Subject: [nongnu] elpa/subed 49be358d32 2/4: subed-word-data: include directories in completion
Date: Tue, 17 Dec 2024 10:02:09 -0500 (EST)

branch: elpa/subed
commit 49be358d3267ec1469bd50bd1028a35f55f2e2ae
Author: Sacha Chua <sacha@sachachua.com>
Commit: Sacha Chua <sacha@sachachua.com>

    subed-word-data: include directories in completion
    
    * subed/subed-word-data.el (subed-word-data-load-from-file):
    include directories in completion for easier navigation.
---
 subed/subed-word-data.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/subed/subed-word-data.el b/subed/subed-word-data.el
index 1d8dc52952..2bb7f958cc 100644
--- a/subed/subed-word-data.el
+++ b/subed/subed-word-data.el
@@ -128,9 +128,10 @@ For now, only SRV2 and JSON files are supported."
                                      nil
                                      nil
                                      (lambda (f)
-                                       (string-match
-                                        "\\.json\\'\\|\\.srv2\\'"
-                                        f)))))
+                                       (or (file-directory-p f)
+                                           (string-match
+                                            "\\.json\\'\\|\\.srv2\\'"
+                                            f))))))
   (subed-word-data--load
    (if (and (stringp file) (string-match "\\.json\\'" file))
        (subed-word-data--extract-words-from-whisperx-json file)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]