dpradov / keynote-nf

Tabbed notebook with RichText editor, multi-level notes and strong encryption.
Mozilla Public License 2.0
241 stars 56 forks source link

Mechanism to clean the File Manager window #682

Open s427 opened 2 months ago

s427 commented 2 months ago

When a KN file disappears from the disk for whatever reason, it nonetheless remains visible in the File Manager window, with a "warning" icon next to it. Ultimately such files seem to be automatically purged from the list, but it can take a while (out of curiosity: how long? how does this work?).

I understand that this may be a good thing, as a file might be only temporarily unavailable and come back later for a number of reasons.

However it can also be annoying when the files have simply been deleted. The File Manager stays "polluted" for a while and there's no easy or obvious way to clean it.

Suggestion: when a user tries to open a file that isn't available from the File Manager window, ask them whether they want to remove that file from the list or not.

Alternatively, add a "Clean up list" button to the File Manager window, with a confirmation such as "All the files that are not currently available on disk will be removed from this list. Do you want to proceed?"

dpradov commented 2 months ago

Help file: <<File Manager

KeyNote has a simple file manager which allows you to quickly open a file you have used previously. Press F12 to open the file manager window.

The File Manager dialog box displays a list of all KeyNote files you have used, where missing files are automatically removed, as registered in the associated file (.MGR). See also Auxiliary Files>>

Ultimately such files seem to be automatically purged from the list, but it can take a while (out of curiosity: how long? how does this work?).

I just tested it and it works normally. When you open the application, starting the session, KeyNote reads the .MGR file and identifies those that are still available as files to be offered in File Manager. If one no longer exists, it deletes it and does not offer it, and will save it in the .MGR file when you exit the application, closing the session. If any of the files identified as available during the session are moved or deleted, it will continue to be offered in File Manager but with the warning symbol.

s427 commented 2 months ago

OK, thanks for the clarification. I did not realize it was as simple as exiting/restarting KN, as it is not something I do often.

(I assumed it was time-based, e.g. unavailable files removed after N days.)