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.
33
44If 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
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments