Initial directory for opening files

friend
Posts: 10
Joined: 13.02.2022 22:13

Initial directory for opening files

Post by friend »

Hi friends.
Sorry if this is stupid or if I am retarded, I couldn't find what I'm looking for anywhere.

Is it possible to have the path of the active tab's file as the initial directory when opening/saving files ?
It seems that after opening a folder, the opened folder's path is saved and used as the initial path for open dialogs; opening other files will not change the initial directory.
But the 'Save As' dialog has the initial path I expect.

Sometimes we work with stupid directory structures that make kind of annoying to navigate to them manually each time.
Since this is the standard in many programs since forever in Window$$ we get used to it.

Thanks friends.
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

> Is it possible to have the path of the active tab's file as the initial directory when opening/saving files?

possible for Untitled tabs…
Attachments
Untitled.png
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

>It seems that after opening a folder, the opened folder's path is saved and used as the initial path for open dialogs; opening other files will not change the initial directory.

I made the test on Linux. Opened 'cudatext tests/' and folder 'tests' opened in ProjManager. now I drag-dropped 20 files from different dir. activated one of them. 'open' dlg shows dir of CURRENT FILE even if it's not in the 'tests'. even if current file is from e.g. /home/user/lazarus.

For 'save' dialog. Use CudaExt plugin and its command:
Cuda-Ext: File: new file and save in current folder
(command palette)
friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

Friend Alexander, I checked again, it works that way, but only if I don't select a file or folder in the Project window. Otherwise, the currently highlighted folder in the Project window is the initial directory for opening files, not the active file's path. The 'Save As...' dialog goes as expected always.
If I close the project (Root nodes -> Clear project / Remove node, either option) it keeps going to the last selected folder in that window. Selecting the 'temporary' node does not change this.

Thanks friends.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

not 'Alexander', but Alexey.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

yes, right, ProjectManager overrides current folder for 'open' dlg, and i feel it is OK. it is needed when I work with opened project. not sure we need the option here.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

main Alexey wrote:yes, right, ProjectManager overrides current folder for 'open' dlg, and i feel it is OK. it is needed when I work with opened project. not sure we need the option here.
The thing is, if we close the folder, it keeps going there ('Open', but not 'Save As'). Saving a file somewhere else will not change that. Untitled tabs, both 'Open' and 'Save' use that last folder as well, instead of the option our friend mentioned.
It keeps remembering the folder.
main Alexey wrote:my proposal for new option. agree?
Yes, that option would be nice. I believe it would be convenient to many friends.
Thank you friend Alexius.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added the proposal option. what OS do you use? I will give the beta to test.
friend
Posts: 10
Joined: 13.02.2022 22:13

Post by friend »

I'm using M$ Windows friend.
Post Reply