Change gg to g and update manual

This commit is contained in:
Night Kaly 2024-11-17 15:22:55 +00:00
parent 46d495e610
commit c774511889
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM
3 changed files with 16 additions and 17 deletions

View file

@ -44,7 +44,7 @@ right: go to child dir
enter: go to child dir/open file enter: go to child dir/open file
backspace: go to parent dir backspace: go to parent dir
gg: go to top g: go to top
G: go to bottom G: go to bottom
ctrl+u: jump up ctrl+u: jump up
@ -60,6 +60,7 @@ u: sort files
.: toggle hidden files .: toggle hidden files
i: toggle file details i: toggle file details
X: toggle executable X: toggle executable
!: open shell in current dir
A: show directory disk usage/block size 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 O: open file with a GUI program detached from file manager
/: search /: search
!: open shell in current dir
x: view file/dir attributes x: view file/dir attributes
e: show history e: show history

18
ccc.1
View file

@ -1,11 +1,11 @@
. .
.TH CCC "1" "March 2024" "ccc" "User Commands" .TH CCC "1" "March 2024" "ccc" "User Commands"
.SH NAME .SH NAME
ccc \- Fast TUI file manager written in C, using ncurses. ccc \- Fast, small, hackable TUI file manager with no dependency
.SH SYNOPSIS .SH SYNOPSIS
.B ccc .B ccc
.SH DESCRIPTION .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 .PP
.SH "Usage" .SH "Usage"
. .
@ -16,15 +16,15 @@ j: scroll down
k: scroll up k: scroll up
l: go to child dir l: go to child dir
left: go to parent dir left: go to parent dir
down: scroll down down: scroll down
up: scroll up up: scroll up
right: go to child dir right: go to child dir
enter: go to child dir/open file enter: go to child dir/open file
backspace: go to parent dir backspace: go to parent dir
gg: go to top g: go to top
G: go to bottom G: go to bottom
ctrl+u: jump up ctrl+u: jump up
@ -34,13 +34,19 @@ t: go to trash dir
~: go to home dir ~: go to home dir
-: go to previous dir -: go to previous dir
z: refresh current dir z: refresh current dir
:: go to a directory by typing
u: sort files
.: toggle hidden files
i: toggle file details i: toggle file details
X: toggle executable X: toggle executable
!: open shell in current dir
A: show directory disk usage/block size A: show directory disk usage/block size
f: new file f: new file
n: new dir
r: rename
space: mark file space: mark file
a: mark all files in directory a: mark all files in directory

11
ccc.c
View file

@ -282,15 +282,8 @@ int main(int argc, char **argv)
/* jump to the top */ /* jump to the top */
case 'g': case 'g':
ch2 = read_key(); sel_file = 0;
switch (ch2) { list_files();
case 'g':
sel_file = 0;
list_files();
break;
default:
break;
}
break; break;
/* '~' go to $HOME */ /* '~' go to $HOME */