File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ Display a git project status in a dashboard widget.
3
3
4
4
If magit is installed, a link to the project in magit will be provided as well.
5
5
6
+ ** Screenshot
7
+ [[./screenshot.png]]
8
+
6
9
** Installation / Usage
7
10
8
11
*** use-package
Original file line number Diff line number Diff line change 65
65
66
66
(defun dashboard-project-status-insert-body ()
67
67
" 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))))
71
71
(dashboard-insert-recentf-list
72
72
(car section)
73
73
(reverse
74
74
(let (ret)
75
75
(dolist (cur (cdr section) ret)
76
76
(setq ret (cons (expand-file-name
77
77
(concat (file-name-as-directory git-repo) cur))
78
- ret))))))))
78
+ ret))))))
79
+ (insert hard-newline)))
79
80
80
81
(defun dashboard-project-status (project-dir &optional update )
81
82
" Return a function which will insert git status for PROJECT-DIR.
You can’t perform that action at this time.
0 commit comments