changing files orders in project panel

SamC
Posts: 207
Joined: 12.08.2023 00:49

changing files orders in project panel

Post 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 4486 times
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: changing files orders in project panel

Post 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?
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: changing files orders in project panel

Post 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
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: changing files orders in project panel

Post by SamC »

I see the change dialog,it's included in new version, thanks!
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: changing files orders in project panel

Post 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!
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: changing files orders in project panel

Post 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.
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: changing files orders in project panel

Post 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
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: changing files orders in project panel

Post 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.
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: changing files orders in project panel

Post 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?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: changing files orders in project panel

Post 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.
Post Reply