Page 1 of 2

changing files orders in project panel

Posted: 25.08.2024 12:33
by SamC
Hello,
Is it possible to add an option or API to sort the files by creating time in project panel?

Thanks!
Snipaste_2024-08-25_20-30-54.png
Snipaste_2024-08-25_20-30-54.png (11.19 KiB) Viewed 4611 times

Re: changing files orders in project panel

Posted: 25.08.2024 14:18
by main Alexey
In the "Project Manager options" dialog, we have option "Sorting order": it has value "by date". It is modification date. Do you need 'creation' date?

Re: changing files orders in project panel

Posted: 25.08.2024 14:33
by SamC
It's used in the new version of cuda? In CudaText 1.214.6.6,it seems not included in dialog?
main Alexey wrote: 25.08.2024 14:18 In the "Project Manager options" dialog, we have option "Sorting order": it has value "by date". It is modification date. Do you need 'creation' date?
Snipaste_2024-08-25_22-32-12.png

Re: changing files orders in project panel

Posted: 25.08.2024 14:36
by SamC
I see the change dialog,it's included in new version, thanks!

Re: changing files orders in project panel

Posted: 25.08.2024 14:54
by SamC
main Alexey wrote: 25.08.2024 14:18 In the "Project Manager options" dialog, we have option "Sorting order": it has value "by date". It is modification date. Do you need 'creation' date?
Add 'creation' date is an good idea, it would be usefull.
BTW, any api to set the option for quickly changing the sorting pattern?
Thanks!

Re: changing files orders in project panel

Posted: 25.08.2024 17:46
by main Alexey
i will think about adding 'creation date', it is supported on Win and on Unix 'ctime' means different thing,
https://docs.python.org/3/library/os.ht ... tat_result
see 'st_ctime' here.

>any api to set the option for quickly changing the sorting pattern?
no API, sorry.
and no context menu item.

Re: changing files orders in project panel

Posted: 26.08.2024 03:38
by SamC
Hello Alexey,
For file manager, is it possible to add a hotkey for context menu "focus in file manager"(like Ctrl+Enter) and "find in folder"(like Ctrl+F)?
Also, is it possible to add a hotkey to fold the select node in project panel?
Thanks!
S2024-08-26-11-29-09.png

Re: changing files orders in project panel

Posted: 26.08.2024 06:51
by main Alexey
>is it possible to add a hotkey for context menu "focus in file manager"(like Ctrl+Enter) and "find in folder"(like Ctrl+F)?
I added these 2 commands now to Cmd Palette. Plugin is updated in our Github repo. download it, update, test.
https://github.com/Alexey-T/CudaText ,
there find the 'py/cuda_project_man' folder.
>possible to add a hotkey to fold the select node in project panel?
Currently no such command. please give the patch to plugin.

Re: changing files orders in project panel

Posted: 26.08.2024 07:32
by SamC
main Alexey wrote: 26.08.2024 06:51
>is it possible to add a hotkey for context menu "focus in file manager"(like Ctrl+Enter) and "find in folder"(like Ctrl+F)?
I added these 2 commands now to Cmd Palette. Plugin is updated in our Github repo. download it, update, test.
https://github.com/Alexey-T/CudaText ,
there find the 'py/cuda_project_man' folder.
>possible to add a hotkey to fold the select node in project panel?
Currently no such command. please give the patch to plugin.
Plugin is updated,but side bar seems became empty.
S2024-08-26-15-28-44.png
In API page,I didn't find the function to handle project panel node fold/unfold, could you please provide more information?

Re: changing files orders in project panel

Posted: 26.08.2024 07:38
by main Alexey
>but side bar seems became empty.

Must be some python error. see it in the Console in the bottom. copy/paste it here.