Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
1f46dacf
Commit
1f46dacf
authored
3 years ago
by
Phil Jones
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo in --graph-style option
Change "eigth-block" to "eighth-block"
parent
35dd631e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ncdu.pod
+3
-3
3 additions, 3 deletions
ncdu.pod
src/browser.zig
+1
-1
1 addition, 1 deletion
src/browser.zig
src/main.zig
+2
-2
2 additions, 2 deletions
src/main.zig
with
6 additions
and
6 deletions
ncdu.pod
+
3
−
3
View file @
1f46dacf
...
@@ -231,9 +231,9 @@ the browser with the 'g' key.
...
@@ -231,9 +231,9 @@ the browser with the 'g' key.
Change the way that the relative size bar column is drawn. Recognized values
Change the way that the relative size bar column is drawn. Recognized values
are I<hash> to draw ASCII C<#> characters (most portable), I<half-block> to use
are I<hash> to draw ASCII C<#> characters (most portable), I<half-block> to use
half-block drawing characters (the default) or I<eigth-block> to use
half-block drawing characters (the default) or I<eig
h
th-block> to use
eigth-block drawing characters. Eigth-block characters are the most precise
but
eig
h
th-block drawing characters. Eig
h
th-block characters are the most precise
may not render correctly in all terminals.
but
may not render correctly in all terminals.
=item B<--shared-column> I<OPTION>
=item B<--shared-column> I<OPTION>
...
...
This diff is collapsed.
Click to expand it.
src/browser.zig
+
1
−
1
View file @
1f46dacf
...
@@ -238,7 +238,7 @@ const Row = struct {
...
@@ -238,7 +238,7 @@ const Row = struct {
ui
.
addstr
(
switch
(
main
.
config
.
graph_style
)
{
ui
.
addstr
(
switch
(
main
.
config
.
graph_style
)
{
.
hash
=>
([
_
][:
0
]
const
u8
{
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
"#"
})[
frac
],
.
hash
=>
([
_
][:
0
]
const
u8
{
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
"#"
})[
frac
],
.
half
=>
([
_
][:
0
]
const
u8
{
" "
,
" "
,
" "
,
" "
,
"▌"
,
"▌"
,
"▌"
,
"▌"
,
"█"
})[
frac
],
.
half
=>
([
_
][:
0
]
const
u8
{
" "
,
" "
,
" "
,
" "
,
"▌"
,
"▌"
,
"▌"
,
"▌"
,
"█"
})[
frac
],
.
eigth
=>
([
_
][:
0
]
const
u8
{
" "
,
"▏"
,
"▎"
,
"▍"
,
"▌"
,
"▋"
,
"▊"
,
"▉"
,
"█"
})[
frac
],
.
eig
h
th
=>
([
_
][:
0
]
const
u8
{
" "
,
"▏"
,
"▎"
,
"▍"
,
"▌"
,
"▋"
,
"▊"
,
"▉"
,
"█"
})[
frac
],
});
});
num
-
|
=
perblock
;
num
-
|
=
perblock
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main.zig
+
2
−
2
View file @
1f46dacf
...
@@ -61,7 +61,7 @@ pub const config = struct {
...
@@ -61,7 +61,7 @@ pub const config = struct {
pub
var
show_mtime
:
bool
=
false
;
pub
var
show_mtime
:
bool
=
false
;
pub
var
show_graph
:
bool
=
true
;
pub
var
show_graph
:
bool
=
true
;
pub
var
show_percent
:
bool
=
false
;
pub
var
show_percent
:
bool
=
false
;
pub
var
graph_style
:
enum
{
hash
,
half
,
eigth
}
=
.
half
;
pub
var
graph_style
:
enum
{
hash
,
half
,
eig
h
th
}
=
.
half
;
pub
var
sort_col
:
SortCol
=
.
blocks
;
pub
var
sort_col
:
SortCol
=
.
blocks
;
pub
var
sort_order
:
SortOrder
=
.
desc
;
pub
var
sort_order
:
SortOrder
=
.
desc
;
pub
var
sort_dirsfirst
:
bool
=
false
;
pub
var
sort_dirsfirst
:
bool
=
false
;
...
@@ -186,7 +186,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool {
...
@@ -186,7 +186,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool {
const
val
=
args
.
arg
();
const
val
=
args
.
arg
();
if
(
std
.
mem
.
eql
(
u8
,
val
,
"hash"
))
config
.
graph_style
=
.
hash
if
(
std
.
mem
.
eql
(
u8
,
val
,
"hash"
))
config
.
graph_style
=
.
hash
else
if
(
std
.
mem
.
eql
(
u8
,
val
,
"half-block"
))
config
.
graph_style
=
.
half
else
if
(
std
.
mem
.
eql
(
u8
,
val
,
"half-block"
))
config
.
graph_style
=
.
half
else
if
(
std
.
mem
.
eql
(
u8
,
val
,
"eigth-block"
))
config
.
graph_style
=
.
eigth
else
if
(
std
.
mem
.
eql
(
u8
,
val
,
"eig
h
th-block"
))
config
.
graph_style
=
.
eig
h
th
else
ui
.
die
(
"Unknown --graph-style option: {s}.
\n
"
,
.
{
val
});
else
ui
.
die
(
"Unknown --graph-style option: {s}.
\n
"
,
.
{
val
});
}
else
if
(
opt
.
is
(
"--sort"
))
{
}
else
if
(
opt
.
is
(
"--sort"
))
{
var
val
:
[]
const
u8
=
args
.
arg
();
var
val
:
[]
const
u8
=
args
.
arg
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment