Commit graph

57 commits

Author SHA1 Message Date
f82d8044ae
write last directory before quit 2024-03-19 22:07:05 +00:00
1d702cd386
Revert "write last directory to a file configured in config.h"
This reverts commit a2321d5488.
2024-03-19 21:58:17 +00:00
a2321d5488
write last directory to a file configured in config.h 2024-03-19 21:57:25 +00:00
255e09c18d
make mark all work correctly as expected 2024-03-17 23:21:58 +00:00
0f52bd265f
remove win struct as it is not used 2024-03-17 22:58:31 +00:00
82ccba51cb
revert to use units for 1024 bytes instead for 1000 bytes 2024-03-17 22:19:19 +00:00
0ed3ca858e
format issue 2024-03-17 22:17:46 +00:00
Piotr Marendowski
6d0b2d3321 Add more options in config 2024-03-17 13:28:27 +01:00
Piotr Marendowski
86e8733e08 Revert some stuff 2024-03-17 11:09:22 +01:00
Piotr Marendowski
e80f9ccd7f 'Minor refactoring + a change in keybindings'2 2024-03-16 22:46:21 +01:00
Piotr Marendowski
b01b5a2279 Add mark all operation 2024-03-16 22:09:47 +01:00
Piotr Marendowski
fcab4e35dd Minor refactoring + a change in keybindings 2024-03-16 21:59:49 +01:00
Piotr Marendowski
b2b682e96c Minor refactoring and changes in config.h 2024-03-16 21:37:56 +01:00
716efb6014
a key to toggle dir_modes, DISK_USAGE and BLOCK_SIZE 2024-03-16 19:26:35 +00:00
e15caee8d0
print marked files with cyan
introduce free file method

remove strip from makefile as -s already did
2024-03-15 18:28:37 +00:00
e7640b5768
if file has more lines than preview window, rest of lines will not be printed 2024-03-15 14:02:52 +00:00
cf5cc41034
fix mark files printing at panel 2024-03-14 19:56:36 +00:00
3ac8fad187
use macros for keys 2024-03-14 19:47:46 +00:00
bd855396be
remove unncessary color attron 2024-03-14 15:41:31 +00:00
53da8722f8
forget to remove a line after merging 2024-03-14 15:36:52 +00:00
437f0e8cf5
merge upstream 2024-03-14 15:31:58 +00:00
b7bd570ed1
change type to ftype in add_file_stat 2024-03-14 15:29:31 +00:00
d29dd3ed5f
change list_files to populate_files and not print the file, only in highlight
add ftype to add_file_stat to add marked/file
2024-03-14 15:29:03 +00:00
Piotr Marendowski
fa1eb500ac Add colored filenames based on file types 2024-03-14 16:09:31 +01:00
373ce06175
use z to reload, t to go to trash dir, create trash dir if not exist
print empty directory at preview if directory is empty

add wpprintw to print panel easier
2024-03-14 14:46:06 +00:00
b93b1bcda1
use ~ to go to home 2024-03-14 12:46:38 +00:00
b8a51aef02
enable arrow keys, backspace, enter, and space to do respective actions 2024-03-14 10:52:01 +00:00
071961befa
better file size format 2024-03-13 23:59:08 +00:00
5c3c0bf07f
use nftw rather than calculating apparent size manually 2024-03-13 23:51:05 +00:00
c6e65fb0dc
add keybinding to commit to know it is ctrl u/d 2024-03-13 19:46:25 +00:00
3a40477b0c
Merge branch 'feature' of github.com:piotr-marendowski/ccc into feature 2024-03-13 19:38:26 +00:00
74d5bda857
fix on preview scrolling and error handling when no permission to stat
prevent preview if it is on directory
2024-03-13 19:37:26 +00:00
Piotr Marendowski
ee9523989e Delete config.def.h and edit Makefile 2024-03-13 20:19:28 +01:00
e9871ec733
use correct comment syntax 2024-03-13 18:40:39 +00:00
1616b2a10b
remove debug code 2024-03-13 18:29:28 +00:00
4dcfda0167
handle other file type 2024-03-13 18:28:04 +00:00
a4161aff04
enable scrolling for directory if too many files 2024-03-13 15:51:52 +00:00
6757faf9a6
add type field in file and calculate real folder size 2024-03-13 10:18:35 +00:00
bf3cbe71d1
merge with upstream 2024-03-12 21:01:11 +00:00
adae6f87fb
make h and l key to navigate different directory
use 2 more window to display content

slight refactor and better variable names
2024-03-12 20:59:36 +00:00
Piotr Marendowski
6b2eb35601
Merge pull request #11 from piotr-marendowski/feature
add stats and add key binds and fix preview
2024-03-12 19:27:12 +00:00
b497735ee6
add stats beside filename 2024-03-11 21:54:14 +00:00
Piotr Marendowski
7ab7641572 Add ctrl + u/d jumps 2024-03-11 21:24:54 +01:00
2acda7768c
use 'e' key to edit file and fix file content showing in preview 2024-03-11 15:57:41 +00:00
44d8df66d1
fix usage on arg -h 2024-03-10 21:38:26 +00:00
bf6923d24c
fix redundant space and using ftell twice 2024-03-10 21:31:33 +00:00
Piotr Marendowski
7b58f36b39 Added bottom panel, other smaller changes 2024-03-10 21:23:15 +01:00
d2b85b6f88
suckless code style 2024-03-10 10:54:08 +00:00
a8595d0aae
fix preview remove border 2024-03-09 19:55:32 +00:00
e90fac2c2f
added keybinding for 'G' to scroll to end of list 2024-03-09 19:52:22 +00:00