[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 349719b 11/26: Display symlink targets
From: |
Pierre Neidhardt |
Subject: |
[elpa] externals/disk-usage 349719b 11/26: Display symlink targets |
Date: |
Tue, 26 Feb 2019 03:06:38 -0500 (EST) |
branch: externals/disk-usage
commit 349719b4370e0361e3ae480d07e1012a68a43f6d
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Display symlink targets
---
disk-usage.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index d80fda6..b035aeb 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -53,8 +53,6 @@
(require 'tabulated-list)
(eval-when-compile (require 'cl-lib))
-;; TODO: Retest symlinks arrows.
-
;; TODO: Filter out files by date. Make generic filter function? Could factor
;; disk-usage-files into this.
@@ -314,15 +312,19 @@ FILE-ENTRY may be a string or a button."
file-entry))
(formatted-filename
(cond
+ ;; Symlinks
((stringp (file-attribute-type (file-attributes filename)))
- (propertize (funcall disk-usage--format-files filename)
- 'face (if (file-directory-p filename)
- 'disk-usage-symlink-directory
- 'disk-usage-symlink)))
+ (concat (propertize (funcall disk-usage--format-files filename)
+ 'face (if (file-directory-p filename)
+ 'disk-usage-symlink-directory
+ 'disk-usage-symlink))
+ " -> " (file-attribute-type (file-attributes filename))))
+ ;; Directories
((and (not (null (file-attribute-type (file-attributes filename))))
(not (file-accessible-directory-p filename)))
(propertize (funcall disk-usage--format-files filename)
'face 'disk-usage-inaccessible))
+ ;; Regular files
(t (funcall disk-usage--format-files filename)))))
(if (listp file-entry)
(let ((copy (cl-copy-list file-entry)))
- [elpa] externals/disk-usage updated (0bbb9a6 -> a53be8d), Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 349719b 11/26: Display symlink targets,
Pierre Neidhardt <=
- [elpa] externals/disk-usage c7f4597 16/26: Customize default filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage ea2bcd2 23/26: Set du-command dynamically for BSD/macOS and make command settings customizable, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 936b73d 06/26: Actually use disk-usage--find-command, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 20ed51e 13/26: Fix mark not being set, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 284c142 24/26: Inherit from error/warning faces instead of defining foreground colors, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 7fd6e43 19/26: Add filters to recursive listings, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage cec7fc6 02/26: Require Emacs 26 for file-attribute-* functions, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 2874158 03/26: Add TODOs about file-notify, date filtering, formatting and process-file, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage c44cc97 01/26: Set default for directory-size-function dynamically, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6846590 15/26: Add 1-hour filter, Pierre Neidhardt, 2019/02/26