tablacus / TablacusExplorerAddons

Add-ons for Tablacus Explorer
http://tablacus.github.io/TablacusExplorerAddons/
MIT License
86 stars 12 forks source link

Folder Settings Addon filter order and subfolders #65

Open duarteframos opened 5 years ago

duarteframos commented 5 years ago

I have a few questions about filters for the Folder Settings Addon, not sure if these are bugs or I don't fully understand how it works. As usual I intent to use any info I gather here to help you improve the wiki.

1. Does the Folder Settings Addon support multiple filter per entry separate by a semicolon ; like other addons?

2. How does one define if subfolders are affected by a filter?

3. If a folder matches more than one conflicting entry in the addon filters, which one is used? Does the topmost take precedence, or are filters evaluated from top to bottom and the last one that matches overrides all others?

4. Can a folder setting also store zoom level/icon size (the one changed with Ctrl+ MouseWheel scroll). It currently seems to be ignored, or at least stored on a per-tab basis.

5. Can CSS be used in folder settings to customize the appearance of a folder?

6. Is it possible to define filetype filters based on folder contents? Say if a folder contains a certain extension like *Documents*\*.doc ?

ccfs commented 5 years ago
  1. Yes Gaku have just fixed that problem in "Folder settings" add-on.

  2. TE uses the full path of a folder (and a result list) to match with the filter you specified. Therefore *Photos* will match any folder (and its sub-folders) with its full path containing the word Photos.

Other examples: C:\Program Files* matches "C:\Program Files" and "C:\Program Files (x86)" as well as their sub-folders C:\Program Files matches "C:\Program Files" only C:\Program Files;C:\Program Files\* matches "C:\Program Files" and its sub-folders

I think you want to specify C:\Program Files\ to do the last case above. It is a good idea. However I think we have to consider this enhancement carefully before we go. Since "filter matching" is a core part of TE, any incorrect amendment will cause TE break down.

  1. Matching is from bottom to top. The first match wins.

  2. Yes Gaku have just fixed that problem in "Remember folder view settings" add-on.

  3. No. Try add-ons under "Highlight" and "Application Appearance" categories to do so.

  4. Don't understand what you mean. Please give more details.

duarteframos commented 5 years ago

@Gaku thanks for all the fixes. @ccfs As usual very informative post, thanks for all the info. Definitely cleared some things up, appreciate it.

  1. Yes I see what you mean, I understand
  2. Good to know, will update the wiki based on this info
  3. I meant to use a filter based on folder content rather that its name. Say if I specify a filter with *.jpg and open a folder with a bunch of jpeg files Tablacus would automatically switch to a Folder Setting for images (say with thumbnail view and image detail columns); but I fear this is not practical since a folder may contain any number of files it would be easy to create conflicts.
duarteframos commented 5 years ago

Updated wiki in light on clarifications made here. Feel free to fix any incoherences.

@ccfs Do you happen to know CSS classes for the User Style addon? I manage to find a few IDs and classes here, but some still elude me, like general application background, listview colors and fonts.

Would you mind sharing some settings you may have discovered?

ccfs commented 5 years ago
  1. This feature is termed "Automatic Folder Type Discovery" of Windows Explorer. I don't find it in any way in TE.

I am not familiar with CSS, so I cannot help. You can look at "index.css" and "options.css" files in TE "script" folder to find some hints.

ccfs commented 5 years ago
  1. Just find out that this feature can be turned on by opting for "Auto" in "Tools > Options > List". But it just works in the same way as that in Windows Explorer. You cannot control it by specifying a filter. It cannot work together with Folder Settings add-on, too.
duarteframos commented 5 years ago
  1. Just find out that this feature can be turned on by opting for "Auto" in "Tools > Options > List". But it just works in the same way as that in Windows Explorer. You cannot control it by specifying a filter. It cannot work together with Folder Settings add-on, too.

Nice find, too bad it can't be customized.

Tablacus really needs a tootip system, "Auto" is pretty obscure name. Wonder if it is too hard to implement. I'd love to contribute some tooltips for options and addons.

You can look at "index.css" and "options.css" files in TE "script" folder to find some hints.

I'll definitely look into this thouroughly. Seems to shed some indepth light into classes and UI elements.

Once again thanks for the tips, very helpful