creating new files and dirs possile, dedicated update screen key

This commit is contained in:
nova
2025-07-03 01:24:57 +02:00
parent f320449572
commit 539af5fd65
3 changed files with 59 additions and 1 deletions

View File

@@ -18,8 +18,14 @@ static mimetype mimetype_default_cmd[] = {
static binding key_binding[] = {
/*key action */
/*you cannot add bindings that include other bindings in its entirety
* possible: mk, mf
* not possible: gg, ggg
* trying to use ggg will always fail as it will execute gg first instead, resetting the input buffer, thus never
* reaching ggg */
{ "q", quit_program },
{ " ", toggle_selection }, /* on hovered file/directory */
{ "u", update }, /* executes the entire backend and redrawing of the screen */
{ "h", move_right }, /* moves one dir up */
{ "t", move_down },
@@ -34,6 +40,9 @@ static binding key_binding[] = {
{ "gg", jump_top },
{ "G", jump_bottom },
{ "mk", makedir },
{ "mf", makefile },
{ "a", toggle_hidden_files },
};
static unsigned long binding_count = sizeof(key_binding) / sizeof(binding);