aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* main: simplify render loop and use xsnprintfverdant2026-08-061-36/+31
| | | | | | | Refactor the event loop in main.c: - Replace duplicated snprintf checks with xsnprintf() wrapper - Restructure render logic and ensure need_redraw is reset properly - Handle user input when redraw is not immediately required
* utils: implement xsnprintf functionverdant2026-08-062-0/+18
| | | | Check the return value of (v)snprintf
* Introduce error code systemverdant2026-08-063-15/+44
| | | | | Refactor spawn function, use return error code, provide more clearly error handling.
* Add key handling for fm_rmverdant2026-08-051-0/+19
|
* fixup! Implement remove file or directoryverdant2026-08-051-0/+2
|
* cd down when current item is not a directory and enter is pressedverdant2026-08-051-2/+1
|
* Implement remove file or directoryverdant2026-08-052-0/+18
|
* Modify function callverdant2026-08-051-1/+2
|
* Implement rename featureverdant2026-08-052-5/+43
|
* Remove unnecessary log function callverdant2026-08-051-1/+1
|
* Implement a yes-or-no functionverdant2026-08-052-0/+15
| | | | If y is pressed, return true, or return false
* Print prompt at the beginning of function and use len instead of builtin ↵verdant2026-08-052-11/+7
| | | | variable
* Add Emacs and Vim keybindings for navigationverdant2026-08-051-0/+28
| | | | | | | Add basic Control key combinations to handling_keys() for scrolling: - C-n / C-p for line navigation (Emacs style) - C-d / C-v for half-page down (Vim/Emacs style) - C-u / M-v for half-page up (Vim/Emacs style)
* Remove timeout call before event loop in mainverdant2026-08-031-1/+1
|
* Add width character and icon supportverdant2026-08-034-4/+71
|
* Sort directory items with directories first and case-insensitive name orderverdant2026-08-031-0/+26
|
* Print "empty" when preview a empty directoryverdant2026-08-031-0/+4
|
* Fix crash when scrolling in a empty directoryverdant2026-08-031-0/+3
| | | | Disable scrolling when it is a empty directory.
* Add else to handle other keysverdant2026-08-031-2/+3
|
* Return -1 to avoid creating directory when esc is pressedverdant2026-08-031-1/+1
|
* Print promptverdant2026-08-031-0/+3
|
* Implement directory creatingverdant2026-08-033-0/+30
|
* Add utils.h utils.c to provide get_input()verdant2026-08-032-0/+59
| | | | | Print the prompt at the status bar, handle character, backspace, enter and escape. Modify the variable buf in place.
* Refactor main loop to reduce unnecessary redraw operationsverdant2026-08-031-30/+32
|
* Add global variable status_windowverdant2026-08-032-1/+6
|
* Initialize variable enveditorverdant2026-08-031-0/+1
|
* Add prototype definitaion to fix -Wmissing-prototypes warningverdant2026-07-281-0/+1
|
* Remove unused variable to fix -Wunused-variable warningverdant2026-07-281-2/+0
|
* Simplify directory preview logic with fm_preview_dirverdant2026-07-281-11/+2
|
* Reformat keys.cverdant2026-07-281-1/+2
|
* Remove unused commentverdant2026-07-281-1/+0
|
* Refactor open_with_editor()verdant2026-07-281-13/+3
| | | | | Use spawn() instead of fork child process and execute external commands manually.
* Add spawn wrapper for executing external commandsverdant2026-07-282-0/+34
| | | | | | | Inctroduce process.c and process.h providing spawn() function to fork a child process and execute commands via execvp(). Return -1 on invalid arguments or fork failure, and 0 on success.
* Reset view state only on successful directory loadverdant2026-07-281-9/+12
|
* Remove unused definitionverdant2026-07-281-1/+0
|
* Add preview path caching to prevent redundant I/Overdant2026-07-282-9/+44
|
* Move source files to src/verdant2026-07-2819-0/+1231