PFA/POM - Duplicate Removal

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

PFA/POM - Duplicate Removal

Post by TheQwerty »

This might not be worth fixing, as it's just as much user error as it is a bug, but I thought I'd bring it up anyhow.

If you have two portable file associations that point to the same program, but one is in quotes and the other isn't, it will display both, even if the quoted one has no arguments.

For instance:

Code: Select all

+"Open In Textpad" bat;ini;java;syn;tcl;txt;xml;xsl;xys>C:\Program Files\TextPad 4\Textpad.exe
-
+"Default (Windows)" *>::Open("<curitem>","w");
+"Open In Textpad" *>"C:\Program Files\Textpad 4\Textpad.exe"
+"Open In Textpad [New Instance]" *>"C:\Program Files\Textpad 4\Textpad.exe" -m
Now if I select an ini file, it would display all four of these patterns in the POM.

Ideally, it should recognize that item 3 has no additional parameters and is thus the same as item 1 and not show both.


SIDE-WISH: If you noticed my PFA has a line of just "-", anyway we could use such things to create separators in the POM?

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: PFA/POM - Duplicate Removal

Post by admin »

Yes, fixed.
TheQwerty wrote:SIDE-WISH: If you noticed my PFA has a line of just "-", anyway we could use such things to create separators in the POM?
Hmm, the POM is very variable. I don't see seps here making much sense.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: PFA/POM - Duplicate Removal

Post by TheQwerty »

admin wrote:Yes, fixed.
Fantastic!
admin wrote:Hmm, the POM is very variable. I don't see seps here making much sense.
Perhaps not as user defined, since that would conflict with the order of importance, but what about some separating with the matched results?

I'm thinking something like:

Code: Select all

First Match (Default XY Action)
----------
Exact Matches
----------
Wildcard Matches
----------
Windows Action
----------
Customize PFA

Then again, maybe the messy look of my POM would best be avoided by not trying to abuse it and including all my Catalog app items. :lol:

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: PFA/POM - Duplicate Removal

Post by jacky »

admin wrote:
TheQwerty wrote:SIDE-WISH: If you noticed my PFA has a line of just "-", anyway we could use such things to create separators in the POM?
Hmm, the POM is very variable. I don't see seps here making much sense.
Actually, it might make sense if something like this was supported :

Code: Select all

|"-"*.txt
So one could define separator, using a pattern and locate it as wanted.

I'm definitely against the order TheQwerty suggested though, I want to order my POM !
Proud XYplorer Fanatic

Post Reply