File extensions

Features wanted...
Post Reply
gazac
Posts: 2
Joined: 07 Nov 2014 09:53

File extensions

Post by gazac »

Can we have away of hiding file extensions you don't want to show,
you could enter the file extensions to hide in a list box
like

.Lnk
.URL
.eml

or any other ones you want to hide

Thank you for a great program

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: File extensions

Post by highend »

Welcome to the club.

Visual filters can already do that. See Main Topics - Visual Filters in the help file
One of my scripts helped you out? Please donate via Paypal

gazac
Posts: 2
Joined: 07 Nov 2014 09:53

Re: File extensions

Post by gazac »

highend wrote:Welcome to the club.

Visual filters can already do that. See Main Topics - Visual Filters in the help file
I have tried the Visual Filters but all I could get it to do is hidden the file, I want the file to show with no .ext like
Arma 3.lnk shows now but I want only Arma 3

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: File extensions

Post by highend »

I see. I though you don't want to show them at all.
This can't be done without scripting atm (imho)...

A workaround would be:

Using a custom column with a script:

Code: Select all

 if (strpos("lnk|url|eml", "<cc_ext>") != -1) {
    return regexreplace("<cc_item>", "^(.*(?=\.))(.*?$)", "$1");
 } else {
    return "<cc_item>";
 }
But you can't click on that custom column so you would need to use
Menu - Tools - Customize List - Full Row Select to do so
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: File extensions

Post by bdeshi »

no icons, and not possible on any view other than details.

I only mention because I think gazac wants to create a "names-only iconic" launcher...
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: File extensions

Post by bdeshi »

(a belated followup)
" I only mention because I think gazac wants to create a "names-only iconic" launcher... "
if that is indeed the case, gazac, you should look into the Portable File Icons & Portable File Association features.
Basically,
you create a file and name it "Arma 3" only (no extension),
give it the same icon as the game via PFI,
and make pressing Enter/double-clicking on the file trigger launching the game via PFA.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

gb007
Posts: 12
Joined: 14 Nov 2018 00:35

Re: File extensions

Post by gb007 »

Hello, i got the same problem as gazac.
i made 2 columns to remove this .lnk extension :
- one with this script :

Code: Select all

 if (strpos("lnk|url|eml", "<cc_ext>") != -1) {
    return regexreplace("<cc_name>", "^(.*(?=\.))(.*?$)", "$1");
 } else {
    return "<cc_name>";
 }
- and another to get the icon :

Code: Select all

return <cc_item_ds>;
But my icon doesn't have the shortcut overlay.
And i loose too the onedrive sync overlay.

is there a workaround ?

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

Re: File extensions

Post by admin »

1. Tick this: Tools | Customize List | Hide Extensions

2. Then tweak this (how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak):

Code: Select all

ListHideExtShortcutsOnly=1
This will hide "lnk", "url", "pif" extension. Almost what you wanted. :)

Post Reply