diff options
| author | verdant <im@verdant.ee> | 2026-07-22 13:15:23 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-22 13:15:23 +0800 |
| commit | 0eafa7a213c0922d358e452aead0f001fb98c487 (patch) | |
| tree | 0a0ce3da82ae5df5733b9ef0d91844fc8638389a /fm.h | |
| parent | a394375b5fbd870c1920b9a3487db45b40b5c90b (diff) | |
| download | sf-0eafa7a213c0922d358e452aead0f001fb98c487.tar.gz sf-0eafa7a213c0922d358e452aead0f001fb98c487.zip | |
Add file manager state struct with dual-pane support
Diffstat (limited to 'fm.h')
| -rw-r--r-- | fm.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -12,5 +12,15 @@ typedef struct { void fm_getdir(fm_info* f); fm_info* fm_init(terminal* t); +typedef struct { + file_item *items; + int count; + int cap; + int selected_idx; + window *fm_l, *fm_r; + char **cur_contents; + char **next_dir_contents; + char cwd[PATH_MAX]; +} fm_info; #endif /* SF_FM_H */ |
