Open Shine753 opened 4 years ago
Can you clarify? Hidden items are just files renamed to .mohidden
.
Probably means that you don't get preview on hidden items since the extension does not match .dds for example
That's it
As a suggestion, instead of mohidden(ing) these files by suffix, you could mohidden them by prefix. That way, they can still be opened, and don't loose their icon.
I wouldn't prefer a prefix, the current system is very safe but when using a prefix system there is always the possibility of a mod or game using that same prefix as something that should normally just work. It also makes it hard to order the files right in an explorer like tool.
I've not looked at the code but I assume there is logic that results in the context menu options present, it could just use a dumb workarround by doing a regex replace like \.mohidden$ and then consider the file extension that remains to be the real extension and determine the options from there. The same approach might be used for one of the requests I put in #1029
I fully understand that. The only problem I can see using a suffix by file extension is that the file cannot be anymore opened by the explorer, nor found by file indexers. Also it comes then with a blank icon.
https://github.com/ModOrganizer2/modorganizer/labels/area%3A%20file-hiding for all our stuff related to hiding.
Another option would be to put the .mohidden. before the extension (like ahiddenfile.mohidden.nif) and let MO2 ignore files based on that pattern. I read that the vfs solution in #760 is not a small feature to implement, if those plans are nowhere near completion than this might be something of a quick-win instead for the time being?
It's not that hard to do in theory. Changing to .mohidden.ext still has half the of the same changes to make, changing all hiding/unhiding functions, making all the relevant code treat those files accordingly etc. It's a better idea to just aim for VFS hiding directly instead.
Into the informations page, being able to open a hidden item by double clicking it.