Page 1 of 2
Initial directory for opening files
Posted: 13.12.2022 01:37
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.
Posted: 14.12.2022 06:21
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…
Posted: 14.12.2022 14:13
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)
Posted: 15.12.2022 03:12
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.
Posted: 15.12.2022 11:56
by main Alexey
not 'Alexander', but Alexey.
Posted: 15.12.2022 11:58
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.
Posted: 15.12.2022 12:19
by main Alexey
Posted: 15.12.2022 14:35
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.
Posted: 15.12.2022 16:17
by main Alexey
Added the proposal option. what OS do you use? I will give the beta to test.
Posted: 15.12.2022 18:06
by friend
I'm using M$ Windows friend.