FolderViewPainter icon indicating copy to clipboard operation
FolderViewPainter copied to clipboard

[Feature request] Set default import for individual folders

Open cow1337killer3 opened this issue 4 months ago • 2 comments

Let's say I have a folder named FFF, and I typically always want it to use the previously exported view named VVV.

But in some rare instances, I want to add/resize/re-sort some columns, only temporarily, then revert everything back to how it was. The problem is that I might forget the name of the exported view I always use for this folder, or maybe I have a ton of exported views and it's inconvenient to find it in the menu.

So the idea:

  • Store a map of folder path -> default view name as a file in the same location as the exported views.
  • Right click menu option for each folder like Set default view > {pick from your available exported views}.
  • Right click menu option for each folder like Revert to default view (if none is set, could either ignore or reset it to its folder type's default).
  • Global right click menu option like Reset all default views, which iterates the map and sets the view of every folder that has a default view specified.

cow1337killer3 avatar Aug 10 '25 03:08 cow1337killer3

Thought of an improvement on the idea.

Moving a folder would make it lose its chosen default view, since its path has been changed. So instead of the folder path -> default view name map, you could instead use Windows' desktop.ini system to store a folder's default view name. Coincidentally, this is exactly what desktop.ini is supposed to be used for (not sure why they chose to store view data in the registry).

Documentation: https://hwiegman.home.xs4all.nl/desktopini.html https://learn.microsoft.com/en-us/windows/win32/lwef/-search-2x-wds-schematable?redirectedfrom=MSDN

I think you could just make your own field/record in desktop.ini, but I think there's also some legacy ones that aren't used anymore in the newer versions of Windows.

cow1337killer3 avatar Aug 11 '25 12:08 cow1337killer3

The second idea sounds better and easier to implement.

There are some issues to be resolved though. First, the term "default" would be confused with the Windows default view for that folder type. I would suggest a a new term, such as "preferred" view. Next, there is the issue of how to specify a preferred view. The first time a view is imported, the selected view file could be written to the desktop.ini file, but there would also need to be a way to change it. A checkbox labelled something like "Set as preferred view" might work, but I'm sure a lot of users would look at that say "isn't that what I'm already doing?". Maybe a label such as "Save current view name as the preferred view in the desktop.in file". Well, no, that's too wordy. Anyhow, moving on to the next issue... there would need to be a new item labelled something like "Revert to preferred view" which would need to throw an error if the preferred view can no longer be found (because it was renamed or deleted). So, it's doable, but it comes with some interface challenges.

But that's all academic. Currently, I'm very busy renovating a 1950s house (down to the frame), along with a couple of out buildings, on a rural property. It's a lot of work and a long drive there and back home each day. I may have some time for programming in the winter when it's too miserable to work on the house, but I have a few other projects that are higher priority for me, so I can't say when or if I'll get to this request.

I'll leave this open as a reminder, should I find time to work on it. Feel free to refine the requirements. Thanks.

LesFerch avatar Aug 12 '25 00:08 LesFerch