[GH-ISSUE #9] Cleaner Tree View #2

Closed
opened 2026-06-08 11:25:14 +03:00 by zhus · 1 comment
Owner

Originally created by @Racum on GitHub (Apr 18, 2018).
Original GitHub issue: https://github.com/bootandy/dust/issues/9

Originally assigned to: @bootandy on GitHub.

What about only show the last leaf of the path per line?

Instead of this:

djin:git/dust> dust
  65M  .
  65M └─┬ ./target
  49M   ├─┬ ./target/debug
  26M   │ ├─┬ ./target/debug/deps
  21M   │ │ └── ./target/debug/deps/libclap-9e6625ac8ff074ad.rlib
  13M   │ ├── ./target/debug/dust
 8.9M   │ └─┬ ./target/debug/incremental
 6.7M   │   ├─┬ ./target/debug/incremental/dust-2748eiei2tcnp
 6.7M   │   │ └─┬ ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum
 3.0M   │   │   └── ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum/dep-graph.bin
 2.2M   │   └─┬ ./target/debug/incremental/dust-1dlon65p8m3vl
 2.2M   │     └── ./target/debug/incremental/dust-1dlon65p8m3vl/s-ezd6jncecv-1xsnfd0-4dw9l1r2th2t
  15M   └─┬ ./target/release
 9.2M     ├─┬ ./target/release/deps
 6.7M     │ └── ./target/release/deps/libclap-87bc2534ea57f044.rlib
 5.9M     └── ./target/release/dust

...show this:

djin:git/dust> dust
  65M  .
  65M └─┬ target
  49M   ├─┬ debug
  26M   │ ├─┬ deps
  21M   │ │ └── libclap-9e6625ac8ff074ad.rlib
  13M   │ ├── dust
 8.9M   │ └─┬ incremental
 6.7M   │   ├─┬ dust-2748eiei2tcnp
 6.7M   │   │ └─┬ s-ezd6jnik5u-163pyem-1aab9ncf5glum
 3.0M   │   │   └── dep-graph.bin
 2.2M   │   └─┬ dust-1dlon65p8m3vl
 2.2M   │     └── s-ezd6jncecv-1xsnfd0-4dw9l1r2th2t
  15M   └─┬ release
 9.2M     ├─┬ deps
 6.7M     │ └── libclap-87bc2534ea57f044.rlib
 5.9M     └── dust

Or maybe, show the short version as default and the complete path via an argument.

Originally created by @Racum on GitHub (Apr 18, 2018). Original GitHub issue: https://github.com/bootandy/dust/issues/9 Originally assigned to: @bootandy on GitHub. What about only show the last leaf of the path per line? Instead of this: ``` djin:git/dust> dust 65M . 65M └─┬ ./target 49M ├─┬ ./target/debug 26M │ ├─┬ ./target/debug/deps 21M │ │ └── ./target/debug/deps/libclap-9e6625ac8ff074ad.rlib 13M │ ├── ./target/debug/dust 8.9M │ └─┬ ./target/debug/incremental 6.7M │ ├─┬ ./target/debug/incremental/dust-2748eiei2tcnp 6.7M │ │ └─┬ ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum 3.0M │ │ └── ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum/dep-graph.bin 2.2M │ └─┬ ./target/debug/incremental/dust-1dlon65p8m3vl 2.2M │ └── ./target/debug/incremental/dust-1dlon65p8m3vl/s-ezd6jncecv-1xsnfd0-4dw9l1r2th2t 15M └─┬ ./target/release 9.2M ├─┬ ./target/release/deps 6.7M │ └── ./target/release/deps/libclap-87bc2534ea57f044.rlib 5.9M └── ./target/release/dust ``` ...show this: ``` djin:git/dust> dust 65M . 65M └─┬ target 49M ├─┬ debug 26M │ ├─┬ deps 21M │ │ └── libclap-9e6625ac8ff074ad.rlib 13M │ ├── dust 8.9M │ └─┬ incremental 6.7M │ ├─┬ dust-2748eiei2tcnp 6.7M │ │ └─┬ s-ezd6jnik5u-163pyem-1aab9ncf5glum 3.0M │ │ └── dep-graph.bin 2.2M │ └─┬ dust-1dlon65p8m3vl 2.2M │ └── s-ezd6jncecv-1xsnfd0-4dw9l1r2th2t 15M └─┬ release 9.2M ├─┬ deps 6.7M │ └── libclap-87bc2534ea57f044.rlib 5.9M └── dust ``` Or maybe, show the short version as default and the complete path via an argument.
zhus closed this issue 2026-06-08 11:25:14 +03:00
Author
Owner

@bootandy commented on GitHub (Apr 19, 2018):

I wondered about this. I like the look of the short version but I wanted people to be able to copy and paste the directories easily so I went with the long version.

I will experiment with adding a short version and add a new flag to toggle between long and short versions.

<!-- gh-comment-id:382545630 --> @bootandy commented on GitHub (Apr 19, 2018): I wondered about this. I like the look of the short version but I wanted people to be able to copy and paste the directories easily so I went with the long version. I will experiment with adding a short version and add a new flag to toggle between long and short versions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#2