diff --git a/README.md b/README.md index 5f68a8f..aa05632 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ right: go to child dir enter: go to child dir/open file backspace: go to parent dir -gg: go to top +g: go to top G: go to bottom ctrl+u: jump up @@ -60,6 +60,7 @@ u: sort files .: toggle hidden files i: toggle file details X: toggle executable +!: open shell in current dir A: show directory disk usage/block size @@ -80,7 +81,6 @@ o: open file with O: open file with a GUI program detached from file manager /: search -!: open shell in current dir x: view file/dir attributes e: show history diff --git a/ccc.1 b/ccc.1 index 13af345..eceb23d 100644 --- a/ccc.1 +++ b/ccc.1 @@ -1,11 +1,11 @@ . .TH CCC "1" "March 2024" "ccc" "User Commands" .SH NAME -ccc \- Fast TUI file manager written in C, using ncurses. +ccc \- Fast, small, hackable TUI file manager with no dependency .SH SYNOPSIS .B ccc .SH DESCRIPTION -ccc is a rewrite of fff file manager in C aiming for usefulness and speed. The fact that it is written in C makes it more versatile and rapid, enabling us to add features that were previously ruled out due to time complexity. You may call it a soft fork. +Soft fork of fff in C aiming for size and speed with no dependency, hackable with patches and configurable .PP .SH "Usage" . @@ -16,15 +16,15 @@ j: scroll down k: scroll up l: go to child dir -left: go to parent dir -down: scroll down -up: scroll up +left: go to parent dir +down: scroll down +up: scroll up right: go to child dir enter: go to child dir/open file backspace: go to parent dir -gg: go to top +g: go to top G: go to bottom ctrl+u: jump up @@ -34,13 +34,19 @@ t: go to trash dir ~: go to home dir -: go to previous dir z: refresh current dir +:: go to a directory by typing +u: sort files +.: toggle hidden files i: toggle file details X: toggle executable +!: open shell in current dir A: show directory disk usage/block size f: new file +n: new dir +r: rename space: mark file a: mark all files in directory diff --git a/ccc.c b/ccc.c index 7aa1a81..baac5c9 100644 --- a/ccc.c +++ b/ccc.c @@ -282,15 +282,8 @@ int main(int argc, char **argv) /* jump to the top */ case 'g': - ch2 = read_key(); - switch (ch2) { - case 'g': - sel_file = 0; - list_files(); - break; - default: - break; - } + sel_file = 0; + list_files(); break; /* '~' go to $HOME */