diff options
author | djl <djl@users.noreply.github.com> | 2018-01-09 02:30:09 +0000 |
---|---|---|
committer | Jason Blevins <jblevins@xbeta.org> | 2018-01-08 21:30:09 -0500 |
commit | 80c1aabe98d21efdb63e237219010a05828e3eb8 (patch) | |
tree | 20190e9e0f1c14519c042a5c5bed256fce727fe0 | |
parent | c7413a390ac22331ad5226a8c8c007bd08759bc8 (diff) |
Add option to filter only on file names
Closes GH-33
-rw-r--r-- | deft.el | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -739,6 +739,11 @@ For example, .tex files may be generated from `org-mode' or Pandoc." :type '(repeat (cons string string)) :group 'deft) +(defcustom deft-filter-only-filenames nil + "Filter on file names only." + :type 'boolean + :group 'deft) + ;; Faces (defgroup deft-faces nil @@ -1535,7 +1540,7 @@ all elements." (with-temp-buffer (insert file) (let ((title (deft-file-title file)) - (contents (deft-file-contents file))) + (contents (if deft-filter-only-filenames "" (deft-file-contents file)))) (when title (insert title)) (when contents (insert contents))) (if batch |