implemented delete and rename

This commit is contained in:
nova
2025-07-02 22:59:47 +02:00
parent aedfdd1ed5
commit 0a6509310d
6 changed files with 152 additions and 40 deletions

View File

@@ -19,6 +19,8 @@ static mimetype mimetype_default_cmd[] = {
static binding key_binding[] = {
/*key action */
{ "q", quit_program },
{ " ", toggle_selection }, /* on hovered file/directory */
{ "h", move_right }, /* moves one dir up */
{ "t", move_down },
{ "n", move_up },
@@ -26,6 +28,8 @@ static binding key_binding[] = {
{ "\n", open_with }, /* opens the hovered file with an arbitrary command */
{ "r", rename_hovered }, /* renames currently hovered file/directory */
{ "d", delete }, /* deletes currently hovered OR selected file/directory
* this means that it does not delete the hovered files if files are already selected */
{ "gg", jump_top },
{ "G", jump_bottom },