olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.71k stars 226 forks source link

Recent projects duplicates and option to remove them #1228

Open FastusNumen opened 9 months ago

FastusNumen commented 9 months ago

The issue came up when I saved my project in another location with the same name and deleted the original.

Now, when I start Manuskript, on "Recent projects" I have two projects with the same name that somehow point to the same project. I mean, one of them should point to the deleted one.

Also, I would like to have the option to delete projects from "Recent projects".

TheJackiMonster commented 9 months ago

I think "Recent projects" should rely on the functionality of recently used files with a certain file extension. That's something multiple operating systems implement differently, I assume. With the current work on changing the UI toolkit from Qt to GTK, I definitely know it will use the feature from the UI toolkit. If this issue sticks then we need to manually filter the list getting rid of that, otherwise it might be an implementation issue inside the toolkit or the operating system.

Anyway I don't think a function to delete entries should be necessary. Ideally the entry will be removed automatically once the file it points to gets moved or deleted. Also duplicate entries should get sorted out automatically.

I leave this issue open until confirmation it's solved. But I would assume it should get solved implicitly once we're using GTK.

FastusNumen commented 9 months ago

Ah, maybe I should have made a separate issue. Deleting projects from the "Recent projects" is something that I think would be useful anyway, in case I just want to have a few shown there.

It's not my case right now, but if I have dozens of projects, I wouldn't like to have all of them there; I'd want to keep just a few.

As for the duplicate project, I'll let you know.