Skip to content

Commit f7959b5

Browse files
amwater-duncanjJason Duncan
authored andcommitted
Fixed a newline issue, added screenshot.
1 parent 8118e25 commit f7959b5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Display a git project status in a dashboard widget.
33

44
If magit is installed, a link to the project in magit will be provided as well.
55

6+
** Screenshot
7+
[[./screenshot.png]]
8+
69
** Installation / Usage
710

811
*** use-package

dashboard-project-status.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@
6565

6666
(defun dashboard-project-status-insert-body ()
6767
"Insert lists of untracked, unstaged, and staged files."
68-
(dolist (section `(("Untracked Files" . ,(git-untracked-files))
69-
("Unstaged Files" . ,(dashboard-project-status-git-unstaged-files))
70-
("Staged Files" . ,(git-staged-files))))
68+
(dolist (section `(("Untracked Files:" . ,(git-untracked-files))
69+
("Unstaged Files:" . ,(dashboard-project-status-git-unstaged-files))
70+
("Staged Files:" . ,(git-staged-files))))
7171
(dashboard-insert-recentf-list
7272
(car section)
7373
(reverse
7474
(let (ret)
7575
(dolist (cur (cdr section) ret)
7676
(setq ret (cons (expand-file-name
7777
(concat (file-name-as-directory git-repo) cur))
78-
ret))))))))
78+
ret))))))
79+
(insert hard-newline)))
7980

8081
(defun dashboard-project-status (project-dir &optional update)
8182
"Return a function which will insert git status for PROJECT-DIR.

0 commit comments

Comments
 (0)