ccc/config.h

62 lines
1.5 KiB
C
Raw Normal View History

/* Settings */
#define PH 1 /* panel height */
#define JUMP_NUM 14 /* how long ctrl + u/d jump are */
#define PATH_MAX 4096 /* max length of the path */
#define DECIMAL_PLACES 1 /* how many decimal places show size with */
/* Size units */
static const char* units[] = {"B", "K", "M", "G", "T", "P"};
2024-03-29 22:43:28 +01:00
/* Set width offset for windows:
2024-03-17 13:28:27 +01:00
+-------------%-------------+
| % |
| files % preview |
| % |
+=============%=============+
set where the % line between them resides
In COLS:
0 will make them equal (at the center),
15 will make files bigger
-15 will make preview bigger */
#define WINDOW_OFFSET -30
2024-03-17 13:28:27 +01:00
/* Options */
#define SHOW_HIDDEN true /* show hidden files/dotfiles at startup */
#define SHOW_DETAILS false /* show file details at startup */
#define SHOW_ICONS true /* show file icons at startup */
/* Calculate directories' sizes RECURSIVELY upon entering
`A` keybind at the startup
**VERY EXPENSIVE**, **CAN TAKE UP TO A MINUTE IN ROOT** */
#define DIRS_SIZE false
/* Default text editor */
#define EDITOR "nvim"
2024-03-19 23:07:05 +01:00
/* File location to write last directory */
#define LAST_D "~/.cache/ccc/.ccc_d"
/* Will create this directory if doesn't exist! */
#define TRASH_DIR "~/.cache/ccc/trash/"
/* Keybindings */
2024-03-14 20:47:46 +01:00
#define CTRLD 0x04
#define ENTER 0xD
2024-03-14 20:47:46 +01:00
#define CTRLU 0x15
#define SPACE 0x20
#define TILDE 0x7E
enum keys {
BACKSPACE = 127,
ARROW_LEFT = 1000,
ARROW_RIGHT,
ARROW_UP,
ARROW_DOWN,
DEL_KEY,
HOME_KEY,
END_KEY,
PAGE_UP,
PAGE_DOWN
};