Menu

#958 deleted files/projects remain in Recent lists

open
nobody
None
5
2013-05-18
2013-05-18
Adam Dingle
No

I'm running Geany 1.24 (git >= cd390c0).

Even when a file or project has been deleted, it remains in the File->Recent Files or Project->Recent Projects menus. I think those menus should not show files/projects which no longer exist.

Discussion

  • Kevin Cox

    Kevin Cox - 2013-05-23

    The issue with this is that it would require checking each project file every time the menu is opened. This is probably fast enough not to worry about but it is a consideration.

     
  • Lex Trotman

    Lex Trotman - 2013-05-24

    There are too many reasons why files can temporarily disappear, remote server glitches, version control system actions and user actions. Just because a file is no longer there on one opening on the Recent list does not mean it isn't there on the next. Deleting non-existent files from the recent list would be annoying in these circumstances.

    Also as @youarefunny noted this can be slow, especially if a lot of remote files are involved (my MRU is 40 long).

     
  • Kevin Cox

    Kevin Cox - 2013-05-24

    As for the unavailable projects there is no reason why they can't just be hidden from the list as opposed to permanently removed. Of course the trade off is that your list would appear to be shorter to what you have it set to. (You have 40 but two are deleted, so it appears to be 38 but when you open a new project the oldest one gets evicted even though it looks like there is space for it). This could also be annoying when you are searching the list for two minutes before you realize that the project you want is on an unavailable network location.

     

Log in to post a comment.