TiddlyDesktop icon indicating copy to clipboard operation
TiddlyDesktop copied to clipboard

TiddlyDesktop does not remember location (directory) of last open file

Open vuktw opened this issue 10 months ago • 2 comments

TiddlyDesktop-linux64-v0.0.20

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

When importing a file from single file TiddlyWiki opened in TiddlyDesktop, a file picker dialog gets displayed. It defaults to Recent, which contains items from different locations. I don't know if it relies on upstream functionality, or can be tuned, but I would find it much more convenient if the file picker dialog opened in the directory of last imported file. My use case is manually importing a couple of plugins as JSON files, they are stored in a directory that is quite deep in my home directory, and for each file I have to manually navigate there from HOME over and over.

vuktw avatar Feb 15 '25 10:02 vuktw

Hi @vuktw that does seem feasible: nw.js offers a nwworkingdir attribute that allows the initial directory to be set, and we could keep the previous directory in the app settings.

Jermolene avatar Feb 15 '25 11:02 Jermolene

While fiddling around more, I have found a somewhat acceptable workaround which mitigates the severity of my inconvenience, I'll share it here:

When the file dialog opens, if Recent contains a previously opened file, which I know to be close to the location (directory) I currently need - I can right click on it and select Visit File - then it goes to the directory where that file lives - exactly the behavior I wanted initially. It's a couple more mouse clicks but it is much better than many more clicks to navigate deep into subdirectories from Home 👍

vuktw avatar Feb 15 '25 12:02 vuktw