How to suppress *.url and *.lnk file name extensions in DetailsView?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pstein
Posts: 57
Joined: 11 Dec 2021 21:11

How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by pstein »

Currently all extensions are shown in DetailsView.
This is ok in general.

But for 2 extension .url and .lnk it should be suppress.

How can I achieve this?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by highend »

Currently all extensions are shown in DetailsView.
Where, in the extension column? If yes, use a custom column with a script instead

Code: Select all

$ext = gpc(<cc_item>, "ext");
    if (regexmatches($ext, "(url|lnk)")) { return ""; }
    return $ext;
If inside the Name column? Either use a custom column as well or: forget it, you can't modify that
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by jupe »

It is possible, if you set this tweak:

ListHideExtShortcutsOnly=1

and then enable this:

Tools | Customize List | Hide Extensions

Additionally if you only want them hidden in details view, you'll need to also set this tweak:

ListHideExtInDetailsOnly=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

pstein
Posts: 57
Joined: 11 Dec 2021 21:11

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by pstein »

jupe wrote: 17 Dec 2021 20:13 It is possible, if you set this tweak:

ListHideExtShortcutsOnly=1

and then enable this:

Tools | Customize List | Hide Extensions

Additionally if you only want them hidden in details view, you'll need to also set this tweak:

ListHideExtInDetailsOnly=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
Ok, thank you - But this works only partially.
*.url shortcut extensions seem to be hidden. Good!
*.png.lnk shortcut extensions seem to be hidden. Good!

But if I place a shortcut to a *. pdf somewhere else on the partition then the shortcut file name show still

foobar.pdf.lnk

Curiosly Shortcuts to some but not all *.pdf.lnk hide really the *.lnk part.
But other *.pdf.lnk do not work

Any other idea?
Last edited by pstein on 17 Dec 2021 20:37, edited 1 time in total.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by jupe »

Have you set this setting globally:

Tools | Customize List | Hide Extensions

by default it is per tab.

pstein
Posts: 57
Joined: 11 Dec 2021 21:11

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by pstein »

jupe wrote: 17 Dec 2021 20:37 Have you set this setting globally:

Tools | Customize List | Hide Extensions

by default it is per tab.
I set it in the tab where .pdf.lnk is still shown.

How do I set it globally?

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by jupe »

pstein wrote: 17 Dec 2021 20:35 Curiosly Shortcuts to some but not all *.pdf.lnk hide really the *.lnk part.
Just noticed your edit where you said this, I would try renaming the file slightly, maybe it had a double lnk extention?. Anyway it sounds like it is mostly working properly for you, and that is the best you can achieve currently.

pstein
Posts: 57
Joined: 11 Dec 2021 21:11

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by pstein »

It works now (after Restart)
thank you

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by mikeshick »

Sorry, where do I add that tweak?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by highend »

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
One of my scripts helped you out? Please donate via Paypal

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Post by mikeshick »

very kind, thank you.

Post Reply