Commit graph

155 commits

Author SHA1 Message Date
3e95b7ab9c
Make file content clear when meet a dir 2024-10-11 19:42:00 +01:00
a272d4786e
update repo username 2024-04-30 17:09:33 +01:00
de53543675
r to rename, n to create new dir, : to go to dir and some refactor 2024-04-10 13:51:39 +01:00
d6d0fd671a
fix go back doesnt work after going trash + TESTING SORT 2024-04-07 21:25:58 +00:00
00e9ab4555
remove debug line 2024-04-07 17:44:38 +00:00
fd1bd8ef23
fix seg fault when exit file picker/go to trash dir 2024-04-07 17:43:04 +00:00
Palanix
c42b0fef3f
Reduce memory in write_last_d() 2024-04-07 01:30:24 +02:00
Palanix
26eac4f72b
Fix all definitive memory leaks in valgrind 2024-04-07 01:05:36 +02:00
Oscar Fu
e270bf0e14
add comment before arraylist_add 2024-04-07 00:54:47 +02:00
Palanix
10a7663d0b
Last forgotten free removed 2024-04-07 00:54:47 +02:00
Palanix
492a3511c5
oops, forgot some 2024-04-07 00:54:47 +02:00
Palanix
2b9849a9c5
Fix comment about linked lists 2024-04-07 00:54:47 +02:00
Palanix
7b11d5735f
Sort dirs first, then files 2024-04-07 00:54:47 +02:00
c2e6709430
Merge pull request #4 from PalanixYT/fix2free
Fix double free
2024-04-06 22:02:41 +01:00
7afbdafd49
Make file pickers work and add replace_home function 2024-04-06 20:41:36 +00:00
Palanix
859e33c6f9
Fix double free 2024-04-06 20:56:36 +02:00
c9a289c837
update usage 2024-04-05 17:53:45 +00:00
01b16b2d6b
move help to another statement 2024-04-03 19:14:36 +00:00
0c9429ca53
f to create file and d to delete file 2024-04-02 01:30:28 +00:00
a1bc4b80a7
fix mark all resulting empty directory 2024-04-02 00:26:52 +00:00
60d9928459
toggle file icons 2024-04-02 00:18:34 +00:00
4fdeb8c56b
add common alloc functions and handle cli argument 2024-04-01 21:23:10 +00:00
3969ddc7dc
fix seg faults by strcat of paths and filenames 2024-04-01 20:53:19 +00:00
Piotr Marendowski
56ac48e596 Separate filename and path into two parts, changes all over 2024-03-31 22:44:05 +02:00
da2e1ee144
open file with argument 2024-03-31 00:20:29 +00:00
93c1e5f8c2
fix change directory from argument 2024-03-31 00:01:29 +00:00
53dd0e16c5
Reduce magic numbers, calculating size_size correctly, adding commtents at config.h, add more icons 2024-03-30 23:13:14 +00:00
Piotr Marendowski
721cbfff35 Add decimal places macro and fuck around config.h 2024-03-30 22:00:57 +01:00
1f0f19174a
fix icons not showing and segfault when size not properly formatted 2024-03-30 13:00:16 +00:00
575d873efe
make icons show in dir content via hash table dynamically 2024-03-30 03:39:02 +00:00
438bfd0f75
merge 2024-03-29 22:36:00 +00:00
b470b7b286
icons and fix goto trash dir and fix preview 2024-03-29 22:34:26 +00:00
Piotr Marendowski
9979966610 Lay the groundwork for deleting files 2024-03-29 22:43:28 +01:00
5fcd671013
merge 2024-03-29 14:06:48 +00:00
83d3eb64be
make toggle file details work 2024-03-29 14:05:01 +00:00
10f4bef9da
edit make flags for alpine 2024-03-29 14:02:52 +00:00
Piotr Marendowski
62ab2f88aa Add toggle file details to help 2024-03-28 19:10:59 +01:00
92d5bb3368
toggle executable and show file mode string and change wpprintw to valist arg 2024-03-28 13:05:00 +00:00
4342300e56
use argv[1] as argument for cwd 2024-03-28 09:12:25 +00:00
95fd5fb964
toggle file details 2024-03-25 21:49:25 +00:00
a7e9f9ea14
fix border not showing 2024-03-21 19:32:53 +00:00
c9cfda54c3
refactor code 2024-03-20 22:43:34 +00:00
d723be72ff
fix show hidden logic and fix cannot navigate to root 2024-03-20 22:18:07 +00:00
aa32f9593e
use arraylist instead of linked list 2024-03-20 20:29:04 +00:00
1251bc9aed
use '.' to toggle hidden files 2024-03-20 18:21:02 +00:00
b459866236
use '?' to show usage and update readme with usage 2024-03-20 16:03:54 +00:00
d429cbe594
use '-' to go back previous dir 2024-03-20 14:45:01 +00:00
6ee92025a0
refactor 2024-03-20 12:28:08 +00:00
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
30c70e119e
fix get_file returning null 2024-03-09 19:46:15 +00:00
dca031c1f3
adding file.c file.h and fix ccc.c %s is null 2024-03-09 19:18:19 +00:00