Skip to content

Commit

Permalink
Keep subdirectory portion of display filenames
Browse files Browse the repository at this point in the history
When `deft-use-filename-as-title` is non-nil, this results
in the subdirectory (within `deft-directory`) being displayed
as a prefix to the filename.

Closes jrblevinGH-24.
  • Loading branch information
jrblevin committed Apr 21, 2016
1 parent c99ede7 commit 2538204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deft.el
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ is the complete regexp."
(let* ((deft-dir (file-name-as-directory (expand-file-name deft-directory)))
(len (length deft-dir))
(file (substring file len)))
(file-name-base file)))
(file-name-sans-extension file)))

(defun deft-find-all-files ()
"Return a list of all files in the Deft directory.
Expand Down

0 comments on commit 2538204

Please sign in to comment.