From 7d2905952d956801050baaed08eb092fb22f661f Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 3 Feb 2022 16:07:37 +0100 Subject: [PATCH] Add --graph-style option and Unicode graph drawing And also adjust the graph width calculation to do a better job when the largest item is smaller than the number of columns used for the graph, which would previously draw either nothing (if size = 0) or a full bar (if size > 0). Fixes #172. --- ncdu.pod | 8 ++++++++ src/browser.zig | 19 ++++++++++++++----- src/main.zig | 9 ++++++++- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/ncdu.pod b/ncdu.pod index bd34231..fe81d9e 100644 --- a/ncdu.pod +++ b/ncdu.pod @@ -227,6 +227,14 @@ browser with the 'g' key. Show (default) or hide the relative size percent column. Can also be toggled in the browser with the 'g' key. +=item B<--graph-style> I