diff options
| author | verdant <im@verdant.ee> | 2026-08-05 21:10:16 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-08-05 21:10:16 +0800 |
| commit | 99e9be91869be143ad183b2d9b788f99233014e0 (patch) | |
| tree | bc5dd4840aa6207636da2dcd84366636a60d9bb3 /src/keys.c | |
| parent | e4721e300cde7b64a850165380cba1a99ecbfbbf (diff) | |
| download | sf-99e9be91869be143ad183b2d9b788f99233014e0.tar.gz sf-99e9be91869be143ad183b2d9b788f99233014e0.zip | |
Implement rename feature
Diffstat (limited to 'src/keys.c')
| -rw-r--r-- | src/keys.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,16 +1,18 @@ #include "keys.h" -#include <linux/limits.h> -#include <ncurses.h> -#include <stdio.h> -#include <stdlib.h> - #include "display.h" #include "err.h" #include "fm.h" #include "log.h" #include "mem.h" +#include "utils.h" #include "wm.h" +#include <errno.h> +#include <linux/limits.h> +#include <ncurses.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> bool keymap = false; @@ -91,6 +93,11 @@ handling_keys(int ch, fm_info *i) case '+': new_dir(i); break; + case 'R': + case 'r': { + fm_rename(i); + break; + } default: return; } |
