Page 1 of 1

File extensions

Posted: 07 Nov 2014 14:47
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

Re: File extensions

Posted: 07 Nov 2014 14:55
by highend
Welcome to the club.

Visual filters can already do that. See Main Topics - Visual Filters in the help file

Re: File extensions

Posted: 07 Nov 2014 15:15
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

Re: File extensions

Posted: 07 Nov 2014 15:47
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

Re: File extensions

Posted: 07 Nov 2014 16:27
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...

Re: File extensions

Posted: 10 Nov 2014 16:26
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.

Re: File extensions

Posted: 06 Jul 2020 02:41
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 ?

Re: File extensions

Posted: 24 Sep 2020 11:00
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. :)