66; ; Author: Shen, Jen-Chieh <[email protected] >77; ; Description: Display files/directories in current directory on Dashboard.
88; ; Keyword: directory file show dashboard
9- ; ; Version: 0.2.2
9+ ; ; Version: 0.3.0
1010; ; Package-Requires: ((emacs "24.3") (dashboard "1.2.5"))
1111; ; URL: https://github.com/emacs-dashboard/dashboard-ls
1212
@@ -63,13 +63,13 @@ Use this variable when you don't have the `default-directory' up to date.")
6363 result)
6464 (dolist (dir entries)
6565 (when (file-directory-p (expand-file-name dir current-dir))
66- (setq dir (concat " . /" dir))
66+ (setq dir (concat " /" dir))
6767 (push (concat dir " /" ) result)))
6868 (reverse result))
6969 list-size
7070 (dashboard-get-shortcut 'ls-directories )
7171 `(lambda (&rest ignore)
72- (find-file-existing (concat dashboard-ls--record-path , el )))
72+ (find-file-existing (concat dashboard-ls--record-path " / " , el )))
7373 (abbreviate-file-name el)))
7474
7575(defun dashboard-ls--insert-file (list-size )
@@ -81,13 +81,12 @@ Use this variable when you don't have the `default-directory' up to date.")
8181 result)
8282 (dolist (file entries)
8383 (unless (file-directory-p (expand-file-name file current-dir))
84- (setq file (concat " ./" file))
8584 (push file result)))
8685 (reverse result))
8786 list-size
8887 (dashboard-get-shortcut 'ls-files )
8988 `(lambda (&rest ignore)
90- (find-file-existing (concat dashboard-ls--record-path , el )))
89+ (find-file-existing (expand-file-name , el dashboard-ls--record-path)))
9190 (abbreviate-file-name el)))
9291
9392(provide 'dashboard-ls )
0 commit comments