[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 0123f06 06/48: Display symlink targets
From: |
Stefan Monnier |
Subject: |
[elpa] externals/disk-usage 0123f06 06/48: Display symlink targets |
Date: |
Tue, 19 Feb 2019 07:59:57 -0500 (EST) |
branch: externals/disk-usage
commit 0123f0627626780833ec7b730c98054eb33da006
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Display symlink targets
---
disk-usage.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index 34e8b63..ca4bcf6 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -87,19 +87,22 @@
(defun disk-usage--list (directory)
(setq directory (or directory default-directory))
- ;; TODO: 'full paths?
(let ((listing (directory-files-and-attributes directory 'full nil 'nosort)))
(or (cl-loop for l in listing
for attributes = (cl-rest l)
for path = (cl-first l)
+ ;; Files
if (null (file-attribute-type attributes))
collect (vector (file-attribute-size attributes) path)
+ ;; Symlinks
if (stringp (file-attribute-type attributes))
collect (vector (file-attribute-size attributes)
- (propertize path
- 'face (if (file-directory-p path)
-
'disk-usage-symlink-directory
- 'disk-usage-symlink)))
+ (concat (propertize path
+ 'face (if
(file-directory-p path)
+
'disk-usage-symlink-directory
+
'disk-usage-symlink))
+ " -> " (file-attribute-type
attributes)))
+ ;; Folders
else if (and (eq t (file-attribute-type attributes))
(not (string= "." (file-name-base path)))
(not (string= ".." (file-name-base path))))
- [elpa] branch externals/disk-usage created (now f89b69d), Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage e6f342a 04/48: Bind "h" to toggle-human-readable, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 28ceb1a 02/48: Alight size to the right, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 4ce2b9b 03/48: Update buffer when toggling human readable size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0123f06 06/48: Display symlink targets,
Stefan Monnier <=
- [elpa] externals/disk-usage 8792145 16/48: Bind "f" to disk-usage-toggle-full-path, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3fb4803 07/48: Display total size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage b2497fd 19/48: Set buffer name in a defvar, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage ca3aa43 05/48: Display symlinks, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f35eb8b 26/48: Refactor disk-usage-toggle-recursive, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 9b55d63 09/48: Add disk-usage-toggle-full-path, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3bcae9 22/48: readme: Link to Guix, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f330f01 31/48: Fix structure manipulation in disk-usage-by-types, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 00aa40a 10/48: Bind "S-<return>" to disk-usage-find-file-at-point, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 4fc5cb3 33/48: Refresh cache with prefix argument, Stefan Monnier, 2019/02/19