diff --git a/completions/_dust b/completions/_dust index 1b5dba7..2848392 100644 --- a/completions/_dust +++ b/completions/_dust @@ -20,8 +20,8 @@ _dust() { '-T+[Number of threads to use]:THREADS:_default' \ '--threads=[Number of threads to use]:THREADS:_default' \ '--config=[Specify a config file to use]:FILE:_files' \ -'-n+[Number of lines of output to show. (Default is terminal_height - 10)]:NUMBER:_default' \ -'--number-of-lines=[Number of lines of output to show. (Default is terminal_height - 10)]:NUMBER:_default' \ +'-n+[Display the '\''n'\'' largest entries. (Default is terminal_height)]:NUMBER:_default' \ +'--number-of-lines=[Display the '\''n'\'' largest entries. (Default is terminal_height)]:NUMBER:_default' \ '*-X+[Exclude any file or directory with this path]:PATH:_files' \ '*--ignore-directory=[Exclude any file or directory with this path]:PATH:_files' \ '-I+[Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter]:FILE:_files' \ diff --git a/completions/_dust.ps1 b/completions/_dust.ps1 index c719b2b..9129d19 100644 --- a/completions/_dust.ps1 +++ b/completions/_dust.ps1 @@ -26,8 +26,8 @@ Register-ArgumentCompleter -Native -CommandName 'dust' -ScriptBlock { [CompletionResult]::new('-T', '-T ', [CompletionResultType]::ParameterName, 'Number of threads to use') [CompletionResult]::new('--threads', '--threads', [CompletionResultType]::ParameterName, 'Number of threads to use') [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Specify a config file to use') - [CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'Number of lines of output to show. (Default is terminal_height - 10)') - [CompletionResult]::new('--number-of-lines', '--number-of-lines', [CompletionResultType]::ParameterName, 'Number of lines of output to show. (Default is terminal_height - 10)') + [CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'Display the ''n'' largest entries. (Default is terminal_height)') + [CompletionResult]::new('--number-of-lines', '--number-of-lines', [CompletionResultType]::ParameterName, 'Display the ''n'' largest entries. (Default is terminal_height)') [CompletionResult]::new('-X', '-X ', [CompletionResultType]::ParameterName, 'Exclude any file or directory with this path') [CompletionResult]::new('--ignore-directory', '--ignore-directory', [CompletionResultType]::ParameterName, 'Exclude any file or directory with this path') [CompletionResult]::new('-I', '-I ', [CompletionResultType]::ParameterName, 'Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter') diff --git a/completions/dust.elv b/completions/dust.elv index 5a85cdb..f756140 100644 --- a/completions/dust.elv +++ b/completions/dust.elv @@ -23,8 +23,8 @@ set edit:completion:arg-completer[dust] = {|@words| cand -T 'Number of threads to use' cand --threads 'Number of threads to use' cand --config 'Specify a config file to use' - cand -n 'Number of lines of output to show. (Default is terminal_height - 10)' - cand --number-of-lines 'Number of lines of output to show. (Default is terminal_height - 10)' + cand -n 'Display the ''n'' largest entries. (Default is terminal_height)' + cand --number-of-lines 'Display the ''n'' largest entries. (Default is terminal_height)' cand -X 'Exclude any file or directory with this path' cand --ignore-directory 'Exclude any file or directory with this path' cand -I 'Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter' diff --git a/completions/dust.fish b/completions/dust.fish index a15aece..8b52c6a 100644 --- a/completions/dust.fish +++ b/completions/dust.fish @@ -1,7 +1,7 @@ complete -c dust -s d -l depth -d 'Depth to show' -r complete -c dust -s T -l threads -d 'Number of threads to use' -r complete -c dust -l config -d 'Specify a config file to use' -r -F -complete -c dust -s n -l number-of-lines -d 'Number of lines of output to show. (Default is terminal_height - 10)' -r +complete -c dust -s n -l number-of-lines -d 'Display the \'n\' largest entries. (Default is terminal_height)' -r complete -c dust -s X -l ignore-directory -d 'Exclude any file or directory with this path' -r -F complete -c dust -s I -l ignore-all-in-file -d 'Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter' -r -F complete -c dust -s z -l min-size -d 'Minimum size file to include in output' -r diff --git a/man-page/dust.1 b/man-page/dust.1 index 7d66ea5..9a874a4 100644 --- a/man-page/dust.1 +++ b/man-page/dust.1 @@ -19,7 +19,7 @@ Number of threads to use Specify a config file to use .TP \fB\-n\fR, \fB\-\-number\-of\-lines\fR \fI\fR -Number of lines of output to show. (Default is terminal_height \- 10) +Display the \*(Aqn\*(Aq largest entries. (Default is terminal_height) .TP \fB\-p\fR, \fB\-\-full\-paths\fR Subdirectories will not have their path shortened diff --git a/media/snap.png b/media/snap.png index 0ee57a3..e81f659 100644 Binary files a/media/snap.png and b/media/snap.png differ diff --git a/src/cli.rs b/src/cli.rs index 88cfa02..bf9f37f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -21,7 +21,7 @@ pub struct Cli { #[arg(long, value_name("FILE"), value_hint(ValueHint::FilePath))] pub config: Option, - /// Number of lines of output to show. (Default is terminal_height - 10) + /// Display the 'n' largest entries. (Default is terminal_height) #[arg(short, long, value_name("NUMBER"))] pub number_of_lines: Option,