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
GitLab 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
347cfde5
Commit
347cfde5
authored
Apr 29, 2014
by
Max Klinger
Committed by
Yorhel
Apr 30, 2014
Browse files
Options
Downloads
Patches
Plain Diff
change D semantics to clear the current directory instead of the selected one
parent
0a230cdd
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/ncdu.pod
+4
-0
4 additions, 0 deletions
doc/ncdu.pod
src/browser.c
+1
-6
1 addition, 6 deletions
src/browser.c
src/delete.c
+5
-2
5 additions, 2 deletions
src/delete.c
src/help.c
+2
-1
2 additions, 1 deletion
src/help.c
with
12 additions
and
9 deletions
doc/ncdu.pod
+
4
−
0
View file @
347cfde5
...
@@ -180,6 +180,10 @@ Delete the selected file or directory. An error message will be shown when the
...
@@ -180,6 +180,10 @@ Delete the selected file or directory. An error message will be shown when the
contents of the directory do not match or do not exist anymore on the
contents of the directory do not match or do not exist anymore on the
filesystem.
filesystem.
=item D
Clears the current directory, deleting all of its content.
=item t
=item t
Toggle dirs before files when sorting.
Toggle dirs before files when sorting.
...
...
This diff is collapsed.
Click to expand it.
src/browser.c
+
1
−
6
View file @
347cfde5
...
@@ -435,13 +435,8 @@ int browse_key(int ch) {
...
@@ -435,13 +435,8 @@ int browse_key(int ch) {
:
"Folder clearing not available for imported directories."
;
:
"Folder clearing not available for imported directories."
;
break
;
break
;
}
}
if
(
sel
==
NULL
||
sel
==
dirlist_parent
)
break
;
if
(
!
(
sel
->
flags
&
FF_DIR
))
{
message
=
"You can only clear folders"
;
}
info_show
=
0
;
info_show
=
0
;
delete_init
(
sel
,
t
,
1
);
delete_init
(
dirlist_par
,
NULL
,
1
);
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/delete.c
+
5
−
2
View file @
347cfde5
...
@@ -249,8 +249,11 @@ void delete_process() {
...
@@ -249,8 +249,11 @@ void delete_process() {
delete_dir
(
root
);
delete_dir
(
root
);
if
(
nextsel
)
if
(
nextsel
)
nextsel
->
flags
|=
FF_BSEL
;
nextsel
->
flags
|=
FF_BSEL
;
if
(
_clear
)
browse_init
(
root
);
else
browse_init
(
par
);
browse_init
(
par
);
if
(
!
_clear
&&
nextsel
)
if
(
nextsel
)
dirlist_top
(
-
4
);
dirlist_top
(
-
4
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/help.c
+
2
−
1
View file @
347cfde5
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
int
page
,
start
;
int
page
,
start
;
#define KEYS 1
6
#define KEYS 1
7
char
*
keys
[
KEYS
*
2
]
=
{
char
*
keys
[
KEYS
*
2
]
=
{
/*|----key----| |----------------description----------------|*/
/*|----key----| |----------------description----------------|*/
"up, k"
,
"Move cursor up"
,
"up, k"
,
"Move cursor up"
,
...
@@ -43,6 +43,7 @@ char *keys[KEYS*2] = {
...
@@ -43,6 +43,7 @@ char *keys[KEYS*2] = {
"s"
,
"Sort by size (ascending/descending)"
,
"s"
,
"Sort by size (ascending/descending)"
,
"C"
,
"Sort by items (ascending/descending)"
,
"C"
,
"Sort by items (ascending/descending)"
,
"d"
,
"Delete selected file or directory"
,
"d"
,
"Delete selected file or directory"
,
"D"
,
"Clears the files in the current directory"
,
"t"
,
"Toggle dirs before files when sorting"
,
"t"
,
"Toggle dirs before files when sorting"
,
"g"
,
"Show percentage and/or graph"
,
"g"
,
"Show percentage and/or graph"
,
"a"
,
"Toggle between apparent size and disk usage"
,
"a"
,
"Toggle between apparent size and disk usage"
,
...
...
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