summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:47 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:47 -0500
commit16b60db1d29cefa30784ed4d2965f9413bdfaf35 (patch)
tree382e04c5312c920c0fa89140dae0a71429bea023 /bog.el
parent299854354c2184006194f9ff27ccba8f62e0c455 (diff)
downloadbog-16b60db1d29cefa30784ed4d2965f9413bdfaf35.tar.gz
bog-bib-citekeys: Rewrite with directory-files
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/bog.el b/bog.el
index 6aade8e..2f97c1d 100644
--- a/bog.el
+++ b/bog.el
@@ -730,13 +730,9 @@ instead of citekeys from file names in `bog-bib-directory'."
bog-bib-directory t directory-files-no-dot-files-regexp))
(when (and (file-readable-p df) (file-directory-p df))
(push df dirs)))
- (push bog-bib-directory dirs))
- (-map #'file-name-base
- (-mapcat
- (lambda (dir)
- (file-expand-wildcards
- (concat (file-name-as-directory dir) "*.bib")))
- dirs)))))
+ (push bog-bib-directory dirs))
+ (-mapcat (lambda (dir) (directory-files dir nil ".*\\.bib$"))
+ dirs))))
;;; Web