Merge branch 'feature' of github.com:piotr-marendowski/ccc into feature

This commit is contained in:
Night Kaly 2024-03-19 22:07:18 +00:00
commit 83497532e5
No known key found for this signature in database
GPG key ID: 8E829D3381CFEBBE
3 changed files with 103 additions and 19 deletions

View file

@ -12,7 +12,7 @@ MANDIR = $(PREFIX)/share/man/man1
# Flags # Flags
LDFLAGS = $(shell pkg-config --libs ncurses) LDFLAGS = $(shell pkg-config --libs ncurses)
CFLAGS = -march=native -mtune=native -O3 -pipe -s -std=c99 -pedantic $(shell pkg-config --cflags ncurses) -Wall # -Wextra -Werror CFLAGS = -O3 -pipe -s -std=c99 -pedantic -Wall $(shell pkg-config --cflags ncurses)
SRC = ccc.c util.c file.c SRC = ccc.c util.c file.c

View file

@ -8,36 +8,73 @@ The fact that it is written in C makes it more versatile and rapid, enabling us
Consider this project incomplete and WIP! Consider this project incomplete and WIP!
| Feature | Ported | Dropped | Added | | Feature of fff | Ported | Dropped |
|--------------------------------|:------:|:-------:|:-----:| |--------------------------------|:------:|:-------:|
| Standard movement | X | | | | Standard movement | X | |
| Advanced movement (jumps) | X | | | | Advanced movement (jumps) | X | |
| Searching | | | | | File details | X | |
| File preview | | | X | | Searching for files | | |
| Sorting | | | | | Sorting | | |
| Marking and marking operations | | | | | Marking and marking operations | | |
| Other operations on files | | | | | Other operations on files | | |
| File details | X | | | | Image previews | | |
| Image previews | | | | | Help | | |
| Help | | | | | History | | |
| History | | | | | Bookmarks | | |
| Bookmarks | | | | | Bulk rename | | |
| Bulk rename | | | |
| Workspaces | | | | #### Features added that are not in [fff](https://github.com/piotr-marendowski/fff):
- File preview (without highlighting)
## Installation
### Dependencies ### Dependencies
- gcc - gcc
- ncurses
- make - make
- pkg-config - pkg-config
- ncurses
### Building ### Building
You will need to run these with elevated privilages. You will need to run these with elevated privilages.
```sh ```
$ git clone https://github.com/piotr-marendowski/ccc $ git clone https://github.com/piotr-marendowski/ccc
$ make $ make
$ sudo make install $ sudo make install
``` ```
## Usage
```
j: scroll down
k: scroll up
h: go to parent dir
l: go to child dir
down: scroll down
up: scroll up
left: go to parent dir
right: go to child dir
enter: go to child dir/open file
backspace: go to parent dir
g: go to top
G: go to bottom
t: go to trash
~: go to home
z: refresh current dir
space: mark file
a: mark all files in directory
q: exit
```
## License
This project has GNU GPL v.3 license.

47
ccc.1
View file

@ -0,0 +1,47 @@
.
.TH CCC "1" "March 2024" "ccc" "User Commands"
.SH NAME
ccc \- Fast TUI file manager written in C, using ncurses.
.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.
.PP
.SH "Usage"
.
.nf
j: scroll down
k: scroll up
h: go to parent dir
l: go to child dir
down: scroll down
up: scroll up
left: go to parent dir
right: go to child dir
enter: go to child dir/open file
backspace: go to parent dir
g: go to top
G: go to bottom
t: go to trash
~: go to home
z: refresh current dir
space: mark file
a: mark all files in directory
q: exit
.
.fi
.
.SH "Customization"
.
.nf
Various settings can be changed in config.h file located in the program's directory.
.
.fi