How to sort project panel by last modified?

jay_m
Posts: 2
Joined: 28.12.2022 22:42

How to sort project panel by last modified?

Post by jay_m »

Is it possible?
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Plugin don't support this (and changing sort order).
jay_m
Posts: 2
Joined: 28.12.2022 22:42

Post by jay_m »

Thanks for the quick response. Just to clarify: there is no ability to do this (native or plugin)? ("and changing..." is a bit confusing)
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Yes, no ability to do this(yet).
freecicero
Posts: 14
Joined: 11.07.2024 11:51

Re: How to sort project panel by last modified?

Post by freecicero »

To prove I actually search for answers before asking, I found this thread from three years ago, which asks exactly my current question. I suspect this feature has not (yet) been added, but if there is a "wish list" I would like to see this added.

To explain my use case, one of my major uses for a text editor is to work with my set of markdown files without using the huge and bloated programs like Obsidian or Logseq or Qownnotes. I don't need to see live markdown formatting like Obsidian or Qownnotes (sort of) offers -- the highlighting in the Cudatext Lexer is more than enough for 99% of my needs. I use Nextcloud to sync my notes files to my different computers, and that's really all that I need.

It's much quicker and easier to use Cudatext to work through my collection of markdown files rather than use one of those other programs.

However what I find is that I would like the project tree to show the "most recently modified" files at the top, and I can't find a way to do that. [Actually, I am not sure why programmers would not also want that project list in "last modified" order too. I guess there is something about the way programmers work that I don't understand. The note referenced below indicates that they may actually be in some kind of unsorted / random order. If so, that seems surprising.] It would be ideal to be able to switch between date order and alphabetical order, and between ascending and descending.

I see this was discussed at sublime here: https://forum.sublimetext.com/t/sort-se ... ed/54876/5

Any hope for getting the program to sort, or for a plugin that might do the same?

Again, thanks in advance!
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: How to sort project panel by last modified?

Post by main Alexey »

good that you reminded me about this wish. yes, I can reconsider this wish, and maybe soon I will try to implement sorting order

- by name
- by mod. date
- ascending/descending
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: How to sort project panel by last modified?

Post by main Alexey »

"Sorting order" option was added.
pls test from Git:

- download last .py files from https://github.com/Alexey-T/CudaText/tr ... roject_man
- put them to folder py/cuda_project_man

Option is added in the dialog called by "Options / Settings-plugins / Project Manager / Config".
freecicero
Posts: 14
Joined: 11.07.2024 11:51

Re: How to sort project panel by last modified?

Post by freecicero »

Thank you! So far when I try to drop those files in my project manager directory, the project manager goes away when I restart the program, so I must be doing something wrong. Should i just try to reinstall the whole program using the git version rather than Arch?
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: How to sort project panel by last modified?

Post by main Alexey »

>Should i just try to reinstall the whole program using the git version

no. Only updated git files of ProjMan is ok with Cudatext binary 1.215.x.
but please show the bottom 'console' panel (click sidebar icon) when ProjManager is broken - it may show some userful python errors.
paste them here.

git files were updated again (after my last reply).
freecicero
Posts: 14
Joined: 11.07.2024 11:51

Re: How to sort project panel by last modified?

Post by freecicero »

My console currently shows:

Code: Select all

Python 3.12.4
Init: cuda_config_toolbar
Loading toolbar config (2ms)
Init: cuda_project_man
  File "/mnt/DriveD/Nextcloud/Cudatext/py/cuda_project_man/__init__.py", line 112
    <title>CudaText/app/py/cuda_project_man/__init__.py at master · Alexey-T/CudaText</title>
                                                                  ^
SyntaxError: invalid character '·' (U+00B7)
ERROR: Exception in CudaText for cuda_project_man.on_start: SyntaxError: invalid character '·' (U+00B7) (line 112, offset 65): '<title>CudaText/app/py/cuda_project_man/__init__.py at master · Alexey-T/CudaText</title>'
Init: cuda_breadcrumbs
Init: cuda_project_man
  File "/mnt/DriveD/Nextcloud/Cudatext/py/cuda_project_man/__init__.py", line 112
    <title>CudaText/app/py/cuda_project_man/__init__.py at master · Alexey-T/CudaText</title>
                                                                  ^
SyntaxError: invalid character '·' (U+00B7)
ERROR: Exception in CudaText for cuda_project_man.on_open: SyntaxError: invalid character '·' (U+00B7) (line 112, offset 65): '<title>CudaText/app/py/cuda_project_man/__init__.py at master · Alexey-T/CudaText</title>'
Init: cuda_tabs_list
Loaded session: "history session.json", 50ms, 1 file(s)
Startup: 780ms, plugins: 100ms (config_toolbar 51ms, project_man 14ms, breadcrumbs 15ms, tabs_list 15ms)
Saved session: "history session.json", 1 file(s), by timer at 07:02:58
Post Reply