Compare commits

..

No commits in common. "825eb2b9deebfef0aa6286e3b327d7b6ce677481" and "51e74eef2200ad3215d6b45971234af87f256b7e" have entirely different histories.

4 changed files with 733 additions and 637 deletions

View file

@ -31,10 +31,18 @@ ccc dir
``` ```
``` ```
h/left/backspace: go to parent dir h: go to parent dir
j/down: scroll down j: scroll down
k/up: scroll up k: scroll up
l/right/enter: go to child dir l: go to child dir
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
o: open file with 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

16
ccc.1
View file

@ -11,10 +11,18 @@ Soft fork of fff in C aiming for size and speed with no dependency, hackable wit
. .
.nf .nf
h/left/backspace: go to parent dir h: go to parent dir
j/down: scroll down j: scroll down
k/up: scroll up k: scroll up
l/right/enter: go to child dir l: go to child dir
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
o: open file with 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

1232
ccc.c

File diff suppressed because it is too large Load diff

106
config.h
View file

@ -52,58 +52,58 @@ static char last_d[PATH_MAX] = "~/.cache/ccc/.ccc_d";
/* Will create this directory if doesn't exist! */ /* Will create this directory if doesn't exist! */
static char trash_dir[PATH_MAX] = "~/.cache/ccc/trash/"; static char trash_dir[PATH_MAX] = "~/.cache/ccc/trash/";
static Key keybindings[] = { key keybindings[] = {
{'q', quit, {0}}, {'q', ACT_QUIT},
{'z', reload, {0}}, {'z', ACT_RELOAD},
{BACKSPACE, nav_back, {0}}, {BACKSPACE, ACT_BACK},
{ARROW_LEFT, nav_back, {0}}, {ARROW_LEFT, ACT_BACK},
{'h', nav_back, {0}}, {'h', ACT_BACK},
{ENTER, nav_enter, {0}}, {ENTER, ACT_ENTER},
{ARROW_RIGHT, nav_enter, {0}}, {ARROW_RIGHT, ACT_ENTER},
{'l', nav_enter, {0}}, {'l', ACT_ENTER},
{CTRLU, nav_jump_up, {0}}, {CTRLU, ACT_JUMP_UP},
{CTRLD, nav_jump_down, {0}}, {CTRLD, ACT_JUMP_DOWN},
{ARROW_UP, nav_up, {0}}, {ARROW_DOWN, ACT_DOWN},
{'k', nav_up, {0}}, {ARROW_UP, ACT_UP},
{ARROW_DOWN, nav_down, {0}}, {'k', ACT_UP},
{'j', nav_down, {0}}, {'j', ACT_DOWN},
{'G', nav_bottom, {0}}, {'G', ACT_BOTTOM},
{'g', nav_top, {0}}, {'g', ACT_TOP},
{'~', goto_home_dir, {0}}, {'~', ACT_HOME},
{'t', goto_trash_dir, {0}}, {'t', ACT_TRASH_DIR},
{'u', sort_files, {0}}, {'u', ACT_SORT},
{'A', show_dir_size, {0}}, {'A', ACT_SHOW_DIR_SIZE},
{'-', prev_dir, {0}}, {'-', ACT_PREV_DIR},
{'?', show_help, {0}}, {'?', ACT_SHOW_HELP},
{'.', toggle_hidden_files, {0}}, {'.', ACT_HIDDEN_FILES},
{'i', toggle_file_details, {0}}, {'i', ACT_FILE_DETAILS},
{'w', toggle_show_icons, {0}}, {'w', ACT_SHOW_ICONS},
{'f', create_file, {0}}, {'f', ACT_CREATE_FILE},
{'n', create_dir, {0}}, {'n', ACT_CREATE_DIR},
{'r', rename_file, {0}}, {'r', ACT_RENAME_FILE},
{':', goto_dir, {0}}, {':', ACT_GOTO_DIR},
{'X', toggle_executable, {0}}, {'X', ACT_TOGGLE_EXE},
{'!', start_shell, {0}}, {'!', ACT_START_SHELL},
{'y', yank_clipboard, {0}}, {'y', ACT_COPY_FILENAME},
{'o', open_with, {0}}, {'o', ACT_OPEN_FILE},
{'O', open_detached, {0}}, {'O', ACT_OPEN_FILE_DETACHED},
{'x', view_file_attr, {0}}, {'x', ACT_VIEW_FILE_ATTR},
{'e', show_history, {0}}, {'e', ACT_SHOW_HIST},
{'1', open_fav, {.i = 1}}, {'1', ACT_FAV1},
{'2', open_fav, {.i = 2}}, {'2', ACT_FAV2},
{'3', open_fav, {.i = 3}}, {'3', ACT_FAV3},
{'4', open_fav, {.i = 4}}, {'4', ACT_FAV4},
{'5', open_fav, {.i = 5}}, {'5', ACT_FAV5},
{'6', open_fav, {.i = 6}}, {'6', ACT_FAV6},
{'7', open_fav, {.i = 7}}, {'7', ACT_FAV7},
{'8', open_fav, {.i = 8}}, {'8', ACT_FAV8},
{'9', open_fav, {.i = 9}}, {'9', ACT_FAV9},
{' ', mark_file, {0}}, {' ', ACT_MARK_FILE},
{'a', mark_all, {0}}, {'a', ACT_MARK_ALL},
{'d', delete_files, {0}}, {'d', ACT_DELETE},
{'m', move_files, {0}}, {'m', ACT_MOVE},
{'c', copy_files, {0}}, {'c', ACT_COPY},
{'s', symbolic_link, {0}}, {'s', ACT_SYM_LINK},
{'b', bulk_rename, {0}}, {'b', ACT_BULK_RENAME},
}; };