Initial directory for opening files

main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Let's test beta,
win64 .exe file
http://uvviewsoft.com/c/

Write new option to user.json:

Code: Select all

  //Sub-option of "ui_open_dir".
  "ui_initial_dir": "",

  //Initial folder of Open/Save-as dialog.
  //Has character(s), each character is a step to detect the folder.
  //  'p': If project is opened: selected folder in the Project Manager,
  //       or folder of the "projectname.cuda-proj" file.
  //  'f': Folder of focused ui-tab, if it's named.
  //  'l': Last user-chosen folder in the Open/Save-as dialog.
  //  'i': Value of option "ui_initial_dir", if not empty.
  //  'h': OS home folder.
  "ui_open_dir": "pflih",

friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

I tested the "f" option by itself it works.
But "pf" to first consider an open project still remembers the last selected folder path after removing the root.
I've been opening folders (File -> Open folder...), then removing the root node to close them, but not saving project files. Saved projects do the same thing it seems.

Thanks friend Ἀλέξιος.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

>I've been opening folders (File -> Open folder...), then removing the root node to close them, but not saving project files.
Pls don't do this; but do this: to clear opened project, call in its context menu: project file / new project. With this Cud must forget about last project dir.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I made a fix for ProjManager. Pls download files from
https://github.com/Alexey-T/CudaText/tr ... roject_man
and replace them in (cudatext)/py/cuda_project_man.
now you can ignore this: 'to clear opened project, call in its context menu:... '
it helped?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I mean now you can clear project via removing its root nodes, and ProjMan must forget about last chosed dir then.
friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

Oh, didn't try that option before.
Indeed it helps, friend.
Thank you friend Alessio and the other friends for this beautiful program.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

not Alessio, write just 'Alex'.
friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

I'm just kidding friend Алексей. It's your name written in different languages (Alexander is similar but different, my mistake).
Thank you friends.
Post Reply